Lubuntu 18.04 LinuxCNCΒΆ

sudo apt update
sudo apt install devscripts build-essential
git clone https://github.com/LinuxCNC/linuxcnc.git emc
cd emc

Pick the branch you want to build 2.7, 2.8, or for Master (2.9pre) skip this step.

git checkout 2.7
or
git checkout 2.8

Enable Source Code Repositories

Menu > System Tools > Synaptic Package Manager

Settings > Repositories Check Source Code on the Ubuntu Software Tab

On the Updates tab set Notify me of new Ubuntu version: to Never

Reload and close the Synaptic Package Manager.

sudo apt update
sudo apt dist-upgrade

sudo apt install -y debhelper dh-python libudev-dev libxenomai-dev
sudo apt install -y tcl8.6-dev tk8.6-dev libreadline-gplv2-dev
sudo apt install -y asciidoc  dvipng graphviz groff imagemagick
sudo apt install -y inkscape python-lxml source-highlight
sudo apt install -y texlive-font-utils texlive-lang-cyrillic
sudo apt install -y texlive-lang-french texlive-lang-german
sudo apt install -y texlive-lang-polish texlive-lang-spanish
sudo apt install -y w3c-linkchecker python-dev python-tk  libxmu-dev
sudo apt install -y libgtk2.0-dev intltool autoconf libboost-python-dev
sudo apt install -y libmodbus-dev libusb-1.0-0-dev yapps2

sudo apt update

sudo apt-get install -y asciidoc-dblatex
sudo apt-get install -y libglu1-mesa-dev libgl1-mesa-dev

debian/configure uspace
dpkg-checkbuilddeps