This repository contains a script to install LinuxCNC on a freshly installed Debian Buster system.
NOTE: This will install LinuxCNC in run-in-place mode. If you don't want to compile your own version, you should probably use a pre-built package from buildbot instead.
- Download the latest Debian Buster CD image, and copy it to a USB stick:
sudo dd status=progress if=debian-testing-amd64-netinst.iso of=/dev/sdX
-
Do a "Graphical install" on a partition with at least 20 GB space
- Select
Xfce
and/orCinnamon
when asked for Software Selection.
- Select
-
Add your new user to the
sudo
group:su --login adduser cnc sudo reboot
-
Clone this repository
sudo apt install -y git git clone https://github.com/thomask77/linuxcnc-tools
-
Run
./install-from-git.sh
This will essentially do all the steps outlined in http://linuxcnc.org/docs/devel/html/code/building-linuxcnc.html
-
If compiling fails with
Syntax checking python script halcompile Traceback (most recent call last): File "<string>", line 1, in <module> File "objects/hal/utils/halcompile.py", line 26 from __future__ import print_function SyntaxError: from __future__ imports must occur at the beginning of the file make: *** [hal/utils/Submakefile:89: ../bin/halcompile] Error 1 make: *** Waiting for unfinished jobs....
You have to comment out the second
# from __future__ import print_function
(around line 26) in
halcompile.py
:nano linuxcnc/src/objects/hal/utils/halcompile.py
source linuxcnc/scripts/rip-environment
linuxcnc