Install LinuxCNC

The easy way is to SSH into the Rpi4 from another PC so you can copy and paste.

The easy way…

Download the latest armhf deb from buildbot

sudo dpkg -i linuxcnc-uspace_2.8.1.13.ga22256354_armhf.deb sudo apt update sudo apt –fix-broken install

sudo dpkg -i linuxcnc-uspace-dev_2.8.1.13.ga22256354_armhf.deb sudo apt update sudo apt –fix-broken install

The old way…

sudo apt install software-properties-common

linuxcnc.org key sudo apt-key adv –keyserver hkp://keys.gnupg.net –recv-key 3cb9fd148f374fef

sudo nano /etc/apt/sources.list

buildbot.linuxcnc.org key sudo apt-key adv –keyserver hkp://keys.gnupg.net –recv-key EF1B07FEE0EE663E sudo add-apt-repository “deb http://buildbot.linuxcnc.org/ buster 2.8-rtpreempt”

http://buildbot.linuxcnc.org/dists/buster/scratch-rtpreempt/

From a terminal

sudo apt update
sudo apt install devscripts
sudo apt install dh-python libudev-dev tcl8.6-dev tk8.6-dev asciidoc dblatex
sudo apt install libreadline-gplv2-dev docbook-xsl dvipng ghostscript graphviz
sudo apt install groff imagemagick inkscape python-lxml source-highlight
sudo apt install texlive-extra-utils texlive-font-utils texlive-fonts-recommended
sudo apt install texlive-lang-cyrillic texlive-lang-french texlive-lang-german
sudo apt install texlive-lang-polish texlive-lang-spanish texlive-latex-recommended
sudo apt install w3c-linkchecker xsltproc python-dev python-tk libxmu-dev
sudo apt install libglu1-mesa-dev libgtk2.0-dev intltool libboost-python-dev
sudo apt install libmodbus-dev libusb-1.0-0-dev desktop-file-utils yapps2
sudo apt install python-yapps bwidget libtk-img mesa-utils tclx8.4
sudo apt install tcl-tclreadline python-configobj python-gtkglext1
sudo apt install python-gtksourceview2 python-xlib gstreamer0.10-plugins-base
sudo apt install python-pil python-glade2 python-pil.imagetk
sudo apt install python-gst-1.0

git clone https://github.com/LinuxCNC/linuxcnc.git emc
cd emc
git checkout 2.8

sudo apt-get update
sudo apt-get dist-upgrade

If your doing this via SSH then you can use nano to edit the configure file

nano debian/configure

Edit debian/configure and change the following

Debian-10|Debian-10.*)
to
Debian-10|Debian-10.*|Raspbian-10|Raspbian-10.*)

Now edit debian/control.bottom.in and remove the following lines

python-gtksourceview2,
python-vte,

This does break gscreen and sourceview in gladevcp but oh well…

Now run configure

debian/configure uspace

Configure should report back

successfully configured for 'uspace-Raspbian-10'-'uspace'..

Now check build dependencies

dpkg-checkbuilddeps

Now build and install LinuxCNC

debuild -uc -us
cd ..
sudo dpkg -i linuxcnc-uspace_2.8.0~pre1_armhf.deb
sudo dpkg -i linuxcnc-doc-en_2.8.0~pre1_all.deb

Updated Dec 25, 2020