Debian 12

System > Adminstration > Synaptic Package Manager Search for linux-image and make sure that the following is installed


When booting up select Advanced options for Debian GNU/Linux and pick the rt kernel.

After booting up open a terminal (Ctrl Alt t) and make sure you have the rt kernel.

uname -a
Debian 12 Uname

Now you can remove the non-rt kernel and header by opening the Synaptic Package Manager and search for linux-image. This will make sure the PC boots up to the Preempt_RT kernel every time.

If your not using a Mesa 7i96S you can install LinuxCNC from the Debian repo. Open a terminal with (Ctrl Alt t)

sudo apt update
sudo apt dist-upgrade
sudo apt install linuxcnc-uspace
sudo apt install linuxcnc-uspace-dev

If you have a Mesa 7i96S don’t install LinuxCNC or Mesaflash from the Debian repository, they are not new enough to know about the 7i96S. If you have installed LinuxCNC from Debian remove it in the Synaptic Package Manager.

Open a terminal (Ctrl Alt t) to build and install LinuxCNC clone into the ~/emc directory. Install the depenencies then build the deb and install it.

When you get a blue screen just press Enter for the default.

sudo apt install -y devscripts build-essential gdebi git
sudo apt install -y dh-python bwidget intltool libboost-python-dev libepoxy-dev
sudo apt install -y libgl1-mesa-dev libglu1-mesa-dev libgtk2.0-dev libgtk-3-dev
sudo apt install -y libmodbus-dev libeditreadline-dev libxmu-dev po4a
sudo apt install -y python3-dev  python3-xlib tcl8.6-dev tclx tk8.6-dev yapps2
sudo apt install -y dvipng groff imagemagick inkscape python3-lxml
sudo apt install -y source-highlight w3c-linkchecker texlive-font-utils
sudo apt install -y texlive-lang-cyrillic texlive-lang-french netcat-openbsd
sudo apt install -y texlive-lang-german texlive-lang-polish texlive-lang-spanish
sudo apt update

git clone emc

cd emc
debuild -uc -us

Left click on linuxcnc-uspace_2.9.0~pre0_amd64.deb and open with Gdebi and install. Ignore the older version popup.

Left click on linuxcnc-uspace_dev_2.9.0~pre0_amd64.deb and open with Gdebi and install. Ignore the older version popup.

Left click on linuxcnc-doc_en_2.9.0~pre0_amd64.deb and open with Gdebi and install. Ignore the older version popup.

Reboot is needed to apply the menus.

Update everything

sudo apt dist-upgrade
sudo apt autoremove
sudo apt clean

Left click on Applications and select Edit Menus. Select Accessories from the Menus: column then uncheck all the LinuxCNC items in the Items: column.


To install the latest Mesaflash download it from github

sudo apt install libpci-dev libmd-dev pkg-config build-essential git
git clone

Open a terminal in the mesaflash directory and build and install mesaflash.

cd mesaflash
sudo make install
mesaflash --version

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 NIC