Portable version for Ubuntu

Having trouble installing or compiling FreeCAD? Get help here.
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
cydone
Posts: 8
Joined: Tue Jul 19, 2016 8:38 am

Portable version for Ubuntu 16.04

Post by cydone »

Hello,

I would like to install FreeCAD-software ( 0.16 ) but I have NO internet connexion available on my computer ( linux ubuntu 16.04 xenial - x 64 bits).

So I would like to download from internet ON a USB-key the FreeCAD-Software and all the dependencies ( package for Ubuntu 16.04 ).

Can I find anywhere a portable version of FreeCAD for Ubuntu ? A link ?

Thanks,
---------------------------------------------------------------------------------------------------------------
french native speaker :-)
User avatar
r-frank
Veteran
Posts: 2180
Joined: Thu Jan 24, 2013 6:26 pm
Location: Möckmühl, Germany
Contact:

Re: Portable version (no admin priviliges to run needed)

Post by r-frank »

Hello.

Have you tried looking into the correct package and download the package files manually transferring them per usb-stick to your offline computer ?

Roland
Deutsche FreeCAD Tutorials auf Youtube
My GrabCAD FreeCAD-Projects
FreeCAD lessons for beginners in english

Native german speaker - so apologies for my english, no offense intended :)
User avatar
NormandC
Veteran
Posts: 18589
Joined: Sat Feb 06, 2010 9:52 pm
Location: Québec, Canada

Re: Portable version (no admin priviliges to run needed)

Post by NormandC »

r-frank wrote:Have you tried looking into the correct package and download the package files manually transferring them per usb-stick to your offline computer ?
Roland, on Ubuntu (or any Linux distro) FreeCAD has a massive list of cascading dependencies (dependencies of dependencies of dependencies), for a simple program with few dependencies it can be done but for FreeCAD it would be a nightmare. What you see on the Launchpad PPA is only a fraction of the packages needed by FreeCAD, the rest is downloaded from the Ubuntu servers at install.

cydone, the computer with Internet access you plan on downloading from, is it a PC running Windows or Ubuntu? Can you use a liveUSB key to run Ubuntu on that machine? (For that you need access to the BIOS and change the boot device sequence)
User avatar
r-frank
Veteran
Posts: 2180
Joined: Thu Jan 24, 2013 6:26 pm
Location: Möckmühl, Germany
Contact:

Re: Portable version (no admin priviliges to run needed)

Post by r-frank »

Thanks for reminding me Normand, i really forgot about the dependecies.
Well, on Windows you could make a completely portable app with cameyo.
On Linux creating an appimage seems to an alternative ?

Roland
Deutsche FreeCAD Tutorials auf Youtube
My GrabCAD FreeCAD-Projects
FreeCAD lessons for beginners in english

Native german speaker - so apologies for my english, no offense intended :)
User avatar
NormandC
Veteran
Posts: 18589
Joined: Sat Feb 06, 2010 9:52 pm
Location: Québec, Canada

Re: Portable version (no admin priviliges to run needed)

Post by NormandC »

r-frank wrote:On Linux creating an appimage seems to an alternative ?
This was discussed some time ago in the Open Discussion forum, there are now two alternatives to AppImage. Until someone volunteers to take charge of such a project, it will remain in the useless discussion area. :roll:

vejmarie made a snap package (new Ubuntu version of a self-contained package) of FreeCAD, but it's of the 0.17 development version. I have no idea if snap packages can be downloaded for an offline PC. In any case I don't recommend 0.17 to beginners.

Would a moderator kindly split this discussion starting with cydone's post into a separate topic? I suggest the title "How to install FreeCAD 0.16 on offline PC (Ubuntu 16.04)?"
Last edited by NormandC on Tue Jul 19, 2016 8:35 pm, edited 1 time in total.
User avatar
NormandC
Veteran
Posts: 18589
Joined: Sat Feb 06, 2010 9:52 pm
Location: Québec, Canada

Portable version for Ubuntu

Post by NormandC »

I've been trying to get a full list of dependencies and downloaded them, then installed FreeCAD 0.16.6703 that way on a laptop running Ubuntu 16.04 64-Bit. Unfortunately I still missed 6 packages it seems. I'm up to 56 packages so far.

Code: Select all

apt-source depends freecad
gives the list, but it must be formatted afterwards. Then it needs to be done for freecad-doc, graphviz, calculix-ccx.

After that:

Code: Select all

apt-get download <list of packages>
Yep, a snap package of 0.16.6703 would be very useful.

Must go for now...
User avatar
sgrogan
Veteran
Posts: 6499
Joined: Wed Oct 22, 2014 5:02 pm

Re: Portable version (no admin priviliges to run needed)

Post by sgrogan »

NormandC wrote:I've been trying to get a full list of dependencies and downloaded them, then installed FreeCAD 0.16.6703 that way on a laptop running Ubuntu 16.04 64-Bit. Unfortunately I still missed 6 packages it seems. I'm up to 56 packages so far.
Wow! Surprised your so close :)
Does

Code: Select all

apt-source depends freecad
get the runtime only dependencies(ie runtimes that don't depend on buildtime)
http://askubuntu.com/questions/212027/g ... by-default
How did you determine 6 packages were missing.
"fight the good fight"
User avatar
NormandC
Veteran
Posts: 18589
Joined: Sat Feb 06, 2010 9:52 pm
Location: Québec, Canada

Re: Portable version (no admin priviliges to run needed)

Post by NormandC »

sgrogan wrote:Does

Code: Select all

apt-source depends freecad
get the runtime only dependencies(ie runtimes that don't depend on buildtime)
I'm not sure I understand the question, and I confess I'm fuzzy on what a runtime is (typical Windows expression I'll bet :D ). Your link does not mention this "buildtime" you talk about. And that link is for getting build dependencies which is a different thing. Or is that what you mean by buildtime?

Build dependencies are only required to build/compile the software/package, the debian packaging process generates a set of dependencies needed by the package to function. They are not the same, and they're what's listed by the above command.
sgrogan wrote:How did you determine 6 packages were missing.
The terminal told me. Once I downloaded the packages into a folder, I navigated to the folder in the terminal and installed them all with

Code: Select all

sudo dpkg -i *.deb
I don't like using dpkg because it's a low-level tool which I'm not very used to. But AFAIK it's the only way to install a bunch of local .debs.

The output I got was similar to this for a few packages (my system is French so I translated the comments below as I best could):

Code: Select all

dpkg: error processing package libatlas3-base (--install) :
 dependency problems - left unconfigured
dpkg: dependency problems prevent configuration of libopenblas-base :
 libopenblas-base depends on libblas-common ; however :
  Package libblas-common is not installed.
At the end I got

Code: Select all

Errors were encountered while processing :
 libatlas3-base
 libopenblas-base
 libspooles2.2:amd64
 python-pivy
 python-pyside.qtsvg
 python-pyside.qtuitools
 calculix-ccx
 freecad
 libarpack2
 liblapack3
Then I did

Code: Select all

sudo apt-get upgrade
And the output told me what were the missing dependencies.

But when I did

Code: Select all

sudo apt-get -f install
As the terminal suggested, it installed 15 new packages rather than 6! Bringing up the total to 71 packages.

So it looks like the apt-source depends command does not supply a real complete list of dependencies. But I have to add that of those I got, I removed a few packages that I knew were system libraries installed by default, like lbc6.

Oh, and apt-source is not recognized on my Ubuntu 14.04 system. It seems it's a tool that was added to the apt package later.
Last edited by NormandC on Tue Jul 19, 2016 11:24 pm, edited 1 time in total.
User avatar
NormandC
Veteran
Posts: 18589
Joined: Sat Feb 06, 2010 9:52 pm
Location: Québec, Canada

Re: Portable version (no admin priviliges to run needed)

Post by NormandC »

Anyway, I believe I've got the whole list of packages necessary to install FreeCAD 0.16.6703 for Ubuntu 16.04 LTS 64-Bit on a PC without an Internet connection. (It's a 174MB download by the way)

My idea was to make an archive and share it on my Dropbox account. But I'm a little concerned about doing it, I feel that for people not used to the terminal there's a potential to break things that way...

EDIT: hey, just looked at Synaptic package manager, and it's possible to install a bunch of packages from a folder. IMO this is more user-friendly than the terminal command. Stay tuned, cydone. ;)
User avatar
sgrogan
Veteran
Posts: 6499
Joined: Wed Oct 22, 2014 5:02 pm

Re: Portable version for Ubuntu

Post by sgrogan »

NormandC wrote:I'm not sure I understand the question, and I confess I'm fuzzy on what a runtime is (typical Windows expression I'll bet :D ). Your link does not mention this "buildtime" you talk about. And that link is for getting build dependencies which is a different thing. Or is that what you mean by buildtime?
Yea, always trying to translate in my head. I'm like a baby, kinda understand linux, kinda can speak windows. I can't find the right reference to make me understand (I have been reading the debian documentation) dpkg or apt must get the information somewhere. In the debian control file we have the Build-Depends: and the Depends: The build depends are the dev packages that are necessary to compile but they pull in the runtime dependencies for that package, the .so files on linux (.dll files in my windows mind). The depends pulls in the .so files necessary at runtime but not compile time. When a user installs the binary package the package manager is smart enough to know that the full -dev package is not required.
NormandC wrote: I don't like using dpkg because it's a low-level tool which I'm not very used to. But AFAIK it's the only way to install a bunch of local .debs.
I don't like running commands I don't fully understand either, but I guess that's how we learn. Not very comfortable though.
"fight the good fight"
Post Reply