**This is an old revision of the document!** ----
====== FreeCAD on LMDE2 ====== As described on the [[http://www.freecadweb.org|FreeCAD website]]: "FreeCAD is a parametric 3D modeler made primarily to design real-life objects of any size". The easiest way to install it on Debian Jessie / LMDE2 is to use the **//Menu > Software Manager//** search for ''FreeCAD'' and install the software. Unfortunately, the current version in the Debian repos is 0.14, while the latest available version is, as of this writing, 0.16 (or even pre-0.17)... What we'll try to do here is use an LMDE2 Virtual Machine to compile the latest release version (0.16), and create a .deb package that will be used to install this FreeCAD version on a workstation. In case you ask yourself why so much complication, and not compile immediately on the workstation, here are 2 reasons. * Compiling often requires installation of a lot of complementary packages that we do not always want installed on the workstation. * Once a .deb package is available, (re)installation becomes an easy task. The following is based on [[http://www.falkotimme.com/howtos/checkinstall/|this article]] explaining how to create a .deb package using checkinstall. ===== Virtual Machine ===== We assume that a clean LMDE2 Virtual Machine is available as our starting platform. If you don't know what VM's are or how to use them, you can refer to [[http://wiki.strategicz.com/vhyper/doku.php?id=vms|this other wiki]]. ==== SSH ==== As we intend to mainly (exclusively) use the command line interface to compile FreeCAD, we'll activate an SSH server on our VM, making sure it uses at least one **Bridged Adapter**, so we'll be able to access it //via// ssh to carry out all operations. <Code:bash |VM CONSOLE: Install openssh-server> > sudo apt-get install openssh-server </Code> We'll also transfer our public ssh key to the VM so we'll be able to log into it without entering a password: <Code:bash |WORKSTATION CONSOLE: Transfer public SSH key> > ssh-copy-id root@your.vm.ip.address </Code> ===== FreeCAD .deb Compilation ===== Let's now ssh into the VM to start our operations: <Code:bash |WORKSTATION CONSOLE: Login to VM> > ssh root@your.vm.ip.address </Code> From here on, all commands will be executed in our VM's console, as you can see we also assume that we'll be acting as **root** on the VM. ==== Install checkinstall ==== As our objective is to generate a .deb file, our first step will be to install ''checkinstall'': <Code:bash |Install checkinstall> > </Code>