Debian 13

Installing LinuxCNC 2.9 (Master)

System > Adminstration > Synaptic Package Manager Search for linux-image and install the following packages.

linux-headers-5.18.0-3-rt-amd64
linux-image-5.18.0-3-rt-amd64

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 13 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.

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

sudo apt install -y devscripts build-essential gdebi
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
sudo apt autoremove
sudo apt dist-upgrade

cd emc
debian/configure
dpkg-checkbuilddeps
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.

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 https://github.com/LinuxCNC/mesaflash.git

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

cd mesaflash
sudo make install
mesaflash --version