Install LinuxCNC

Installing LinuxCNC 2.9 on Debian 11

The 5.10.0-18-rt-amd64 linux-image has been found to work well with Mesa ethernet cards. Later kernels have latency issues with the ethernet port.

Open a terminal (Ctrl Alt t) and install libraries needed to build a deb

sudo apt install build-essential devscripts gdebi

Open a terminal (Ctrl Alt t) and clone LinuxCNC

git clone https://github.com/LinuxCNC/linuxcnc.git build

Download the po4a deb and install it with Gdebi.

Open a terminal and change to the build directory then checkout the 2.9 branch

cd build
git checkout 2.9
debian/configure
sudo apt install debhelper dh-python libudev-dev autoconf automake bwidget
sudo apt install intltool libboost-python-dev libepoxy-dev libgl1-mesa-dev
sudo apt install libglu1-mesa-dev libgtk2.0-dev libgtk-3-dev libmodbus-dev
sudo apt install libeditreadline-dev libxmu-dev netcat po4a python3-dev
sudo apt install python3-tk python3-xlib tcl8.6-dev tclx tk8.6-dev yapps2
sudo apt install asciidoc dblatex docbook-xsl dvipng groff imagemagick inkscape
sudo apt install python3-lxml source-highlight w3c-linkchecker xsltproc
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-xetex
sudo apt install texlive-latex-recommended asciidoc-dblatex
sudo apt update
sudo apt autoremove
sudo apt dist-upgrade

dpkg-checkbuilddeps
debuild -uc -us

Left click on linuxcnc-uspace_2.9.0~pre0_amd64.deb and open with Gdebi and install.

Left click on linuxcnc-uspace_dev_2.9.0~pre0_amd64.deb and open with Gdebi and install.

Left click on linuxcnc-doc_en_2.9.0~pre0_amd64.deb and open with Gdebi and install.

Mesaflash

Note

The 7i96S Mesa board requires Mesaflash version 3.4.3 or newer

Note

The 7i92T series of Mesa boards require Mesaflash 3.4.4 or newer

Debian now has Mesaflash 3.4.6 so it can be installed with:

sudo apt install mesaflash

To install the latest Mesaflash download it from github

git clone https://github.com/LinuxCNC/mesaflash.git

Install required libraries

sudo apt install libpci-dev libmd-dev pkg-config

Change to the mesaflash directory and build and install

cd mesaflash
sudo make install

Mesa Configuration Tool

Mesa Configuration Tool

. Read Pin Descriptions, Read HMID, Flash Firmware, Reload Firmware, Verify Firmware . Open Mesa documents for most boards, View board images . Build a LinuxCNC configuration where changes to the ini file are not lost . Configure Smart Serial Cards . Check PC and NIC timing