Installing LinuxCNC 2.8 on Debian 11

More
4 years 7 months ago #236438 by gitin
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 to join the conversation.

More
4 years 7 months ago #236515 by RJ11

 Apart from Bullseye being the latest stable Debian, what is the issue with using Buster for 2.8.
 

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, 
 

Please Log in to join the conversation.

More
4 years 7 months ago #237476 by tripwire
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!

Please Log in to join the conversation.

More
4 years 7 months ago #237480 by rodw
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)
Code:
sudo apt install geany curl sudo geany /etc/apt/sources.list
make sure any lines containing cd are commented out with a #
replace any reference to bullseye, buster or stable with unstable eg:
Code:
deb http://deb.debian.org/debian/ unstable main non-free contrib deb-src http://deb.debian.org/debian/ unstable main non-free contrib
save and exit geany, then
Code:
sudo apt update sudo apt full-upgrade sudo apt install linuxcnc-uspace linuxcnc-uspace-dev mesaflash reboot type uname -a
Last 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:
Code:
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
Code:
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.
Code:
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
Code:
cd ~/dev/linuxcnc/src git pull cd .. dpkg-buildpackage -b -uc cd .. sudo dpkg -i linuxcnc-uspace_ (tab)
optionally
Code:
sudo dpkg -i linuxcnc-uspace-dev(tab)

Please Log in to join the conversation.

More
4 years 7 months ago #238429 by robertspark
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

Please Log in to join the conversation.

More
3 years 11 months ago #257050 by JYves
Hi, I'm jean-yves from France,
I compiled LinuxCNC 2.9  and packaged following the RJ11 and robertsparc recommandations.
Added the -j6 since my cpu is a 6 parts amd : it was fast.
But before going futher  my questions are now :
1/ Would i have to compile into a realtime kernel?
2/ And may i hope a compiled kernel available and recommended for this ?
Thank's very much in advance.

Here my current kernel:
Linux DebianMsrv64 5.16.0-8.2-liquorix-amd64 #1 ZEN SMP PREEMPT liquorix 5.16-7.1~bullseye (2022-02-09) x86_64 GNU/Linux
SMP PREEMPT but not RT.
For now i just need to drive a CH341 machine (Arduino), it's a common 2D + laser light laser. I'll afford soon a drilling machine.
It is pluged on /dev/ttyUSB0
Thank You.
jeanyves.
 

Please Log in to join the conversation.

More
3 years 11 months ago #257062 by rodw
normally, you would just install the PREEMP_RT kernel with something like

sudo apt-get install linux-image-rt-$(uname -r)

But because you are running a non standard kernel, this won't work. So yes, you need to compile the patched prempt_rt kernel or revert to a debian kernel.

Please Log in to join the conversation.

Time to create page: 0.049 seconds
Powered by Kunena Forum