Installing LinuxCNC 2.8 on Debian 11
05 Mar 2022 15:49 #236438
by gitin
Replied by gitin on topic Installing LinuxCNC 2.8 on Debian 11
I installed as mentioned in forum.linuxcnc.org/9-installing-linuxcnc...an-11?start=0#229433. On Dell optiplex works fine, on MSI PRO 16T 10M there are big delays. Thank you.
Please Log in or Create an account to join the conversation.
06 Mar 2022 15:35 #236515
by RJ11
Replied by RJ11 on topic Installing LinuxCNC 2.8 on Debian 11
Hardware support. I had a Dell Optiplex 790 that came with an add-in factory parallel port card. It uses the parport_pc kernel module. That particular card isn't supported by the 4.x kernel that comes with Debian 10. Debian 11 has a newer kernel which supports it out of the box,Apart from Bullseye being the latest stable Debian, what is the issue with using Buster for 2.8.
Please Log in or Create an account to join the conversation.
16 Mar 2022 16:24 - 16 Mar 2022 16:33 #237476
by tripwire
Replied by tripwire on topic Installing LinuxCNC 2.8 on Debian 11
Rodw's script worked well for me. Thank you!
A couple of questions though:
1.) There were the following other lines in sources.list:
deb deb.debian.org/debian-security/ bullseye-security main
deb-src deb.debian.org/debian-security/ bullseye-security main
deb deb.debian.org/debian bullseye-updates main
deb-src deb.debian.org/debian bullseye-updates main
I tried replacing "bullseye" with "unstable" but apt didn't like this so I just commented them out for the install. But should they be uncommented at this point? If so, should they be modified?
2.) How will I know when to change "unstable" to "testing" and then to something else like "bullseye" when the version becomes stable?
Debian is already informing me of available updates. Do I need to make changes to sources.list before installing these updates?
Thanks as always for your advice!
A couple of questions though:
1.) There were the following other lines in sources.list:
deb deb.debian.org/debian-security/ bullseye-security main
deb-src deb.debian.org/debian-security/ bullseye-security main
deb deb.debian.org/debian bullseye-updates main
deb-src deb.debian.org/debian bullseye-updates main
I tried replacing "bullseye" with "unstable" but apt didn't like this so I just commented them out for the install. But should they be uncommented at this point? If so, should they be modified?
2.) How will I know when to change "unstable" to "testing" and then to something else like "bullseye" when the version becomes stable?
Debian is already informing me of available updates. Do I need to make changes to sources.list before installing these updates?
Thanks as always for your advice!
Last edit: 16 Mar 2022 16:33 by tripwire.
The following user(s) said Thank You: rodw
Please Log in or Create an account to join the conversation.
16 Mar 2022 17:47 - 16 Mar 2022 18:01 #237480
by rodw
Replied by rodw on topic Installing LinuxCNC 2.8 on Debian 11
I changed my process and upgraded to the unstable branch by following some instructions on the Debian site
From a basic install of Debian 11 (Bullseye)make sure any lines containing cd are commented out with a #
replace any reference to bullseye, buster or stable with unstable eg:save and exit geany, thenLast line is to check PREEMPT-RT kernel is running as its installed by the install
Linuxcnc should be in the menus or open a terminal and type:
If you need to update to the latest version of master, you need to install from source but there are far fewer dependencies to install.
Note I did not install the docs as thats quite time consuming and we already have a slightly earlier version of them on the system. If you want them, remove the no-docs flag to ./configure
Optionally install the dev package for mesaflash, halcompile, ethercat etc.
This moved my version of QTplasmac from 1.222.178 when I did it.Note that opening an older sim version of QTplasmac generates an error with a missing .so file for the torch simulation.
The solution is to create a new sim by selecting from the Sample Configurations
To subsequently upgrade to the latest version of linuxcnc masteroptionally
From a basic install of Debian 11 (Bullseye)
sudo apt install geany curl
sudo geany /etc/apt/sources.list
replace any reference to bullseye, buster or stable with unstable eg:
deb http://deb.debian.org/debian/ unstable main non-free contrib
deb-src http://deb.debian.org/debian/ unstable main non-free contrib
sudo apt update
sudo apt full-upgrade
sudo apt install linuxcnc-uspace linuxcnc-uspace-dev mesaflash
reboot
type uname -a
Linuxcnc should be in the menus or open a terminal and type:
linuxcnc
If you need to update to the latest version of master, you need to install from source but there are far fewer dependencies to install.
Note I did not install the docs as thats quite time consuming and we already have a slightly earlier version of them on the system. If you want them, remove the no-docs flag to ./configure
cd ~
mkdir /dev
cd dev
git clone https::/github.com/linuxcnc/linuxcnc.git
cd linuxcnc/debian
./configure uspace no-docs
cd ..
sudo apt install debhelper-compat dh-python autoconf gettext intltool libboost-python-dev libgl1-mesa-dev libglu1-mesa-dev libgtk2.0-dev libmodbus-dev libeditreadline-dev libusb-1.0-0-dev libxmu-dev python3-dev tcl8.6-dev tk8.6-dev yapps2
dpkg-buildpackage -b -uc
cd ..
sudo dpkg -i linuxcnc-uspace_ (tab)
Optionally install the dev package for mesaflash, halcompile, ethercat etc.
sudo dpkg -i linuxcnc-uspace-dev(tab)
This moved my version of QTplasmac from 1.222.178 when I did it.Note that opening an older sim version of QTplasmac generates an error with a missing .so file for the torch simulation.
The solution is to create a new sim by selecting from the Sample Configurations
To subsequently upgrade to the latest version of linuxcnc master
cd ~/dev/linuxcnc/src
git pull
cd ..
dpkg-buildpackage -b -uc
cd ..
sudo dpkg -i linuxcnc-uspace_ (tab)
sudo dpkg -i linuxcnc-uspace-dev(tab)
Last edit: 16 Mar 2022 18:01 by rodw.
Please Log in or Create an account to join the conversation.
- robertspark
- Offline
- Platinum Member
-
Less
More
- Posts: 873
- Thank you received: 189
26 Mar 2022 22:41 #238429
by robertspark
Replied by robertspark on topic Installing LinuxCNC 2.8 on Debian 11
may want to add a -j switch for your dpkg-buildpackage for your number of processors as it will spreed up the build time
in my case -j4
ymmv
in my case -j4
ymmv
The following user(s) said Thank You: rodw
Please Log in or Create an account to join the conversation.
Time to create page: 0.142 seconds