Installing LinuxCNC on Debian 12 BookWorm, quick and easy

More
17 Sep 2023 00:12 - 23 Sep 2023 15:06 #280961 by tommylight
Download the Debian 12.1 ISO from here, chose the Desktop Environment as you wish:
-For new-ish PC's with 8GB of RAM or more > choose Cinnamon or Mate or KDE or GNOME
-For older or under 8GB of RAM > chose XFCE, LXQT, LXDE
cdimage.debian.org/debian-cd/current-live/amd64/iso-hybrid/
Write it to a USB, REMOVE INTERNET CONNECTION, boot the PC from that USB, start the installer from the desktop, reboot after finishing.
Connect to internet,
-Open a terminal from the menu or CTRL+SHIFT+T and type or copy below one by one line:
sudo apt update
sudo apt upgrade
sudo apt install linuxcnc-uspace
Reboot,
Enjoy
-
If you need the development parts and/or mesaflash:
sudo apt install linuxcnc-uspace-dev mesaflash
No need to reboot.
Last edit: 23 Sep 2023 15:06 by tommylight. Reason: more info
The following user(s) said Thank You: hhogendoorn, tivoi, Jensner

Please Log in or Create an account to join the conversation.

More
17 Sep 2023 06:13 #280982 by rodw
This is more or less the same approach as the docs use here, just starts with a different ISO
linuxcnc.org/docs/2.9/html/getting-start...etting-linuxcnc.html
The version of linuxcnc you get is as of February this year so its quite dated in relation to qt-dragon et al
To get the latest version of linuxcnc, you need to follow the steps in the docs
So its not particularly quick and easy.

Also, there is a reason why we use the live installer. Using one of the CD or DVD images (as per here) can end up with references to the CD/DVD in sources.list so if you don't comment them out you don't get access to the full Debian repository.

The installer I built (also stickied here) does all of that for you and I did a pull request to linuxcnc to adopt it.
It also installs repositories for ethercat and qtpyvcp for those users who want them.

While waiting for feedback on it I started work on the raspberry pi installer.
Now I got the feedback, I don't have time to update either... Sorry about that.
I will get to it.
 

Please Log in or Create an account to join the conversation.

More
17 Sep 2023 21:21 #281021 by tommylight
Yes it is the same approach, but for beginners, easy and simple.
-
12.1 does not leave cd rom repos, installed it several times in a single day, no issues.
-
And why is there stuff for RPI on the same section with AMD64 stuff on the page you linked?
Those should be kept separate.

Please Log in or Create an account to join the conversation.

More
18 Sep 2023 00:04 #281029 by rodw
Tommy the docs are how I was asked to do them and that is what was approved.
The link in the docs has been updated to Debian 12.1 so the funky rpi error is fixed.
The only difference between the pi and the pc is the pi needs the RT kernel installed seperately.
If you want the Docs changed, send in your Pull request.

The only reason the installer leaves CD ROM repos is if there is no network connection to the internet. The image you have suggested probably will do the same thing.

Please Log in or Create an account to join the conversation.

More
22 Sep 2023 19:39 #281411 by marq_torque
I'm trying to install Bookworm

This is what i'm getting when i try to update or install linuxcnc

sudo apt install linuxcnc-uspace-dev
[sudo] password for vcam:
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
E: Unable to locate package linuxcnc-uspace-dev




$ sudo apt update
Ign:1 cdrom://[Official Debian GNU/Linux Live 12.1.0 xfce 2023-07-22T09:48:34Z] bookworm InRelease
Err:2 cdrom://[Official Debian GNU/Linux Live 12.1.0 xfce 2023-07-22T09:48:34Z] bookworm Release
Please use apt-cdrom to make this CD-ROM recognized by APT. apt-get update cannot be used to add new CD-ROMs
Reading package lists... Done
E: The repository 'cdrom://[Official Debian GNU/Linux Live 12.1.0 xfce 2023-07-22T09:48:34Z] bookworm Release' does not have a Release file.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.

Please Log in or Create an account to join the conversation.

More
23 Sep 2023 02:02 #281419 by rodw
This is what I said can happen if you use the one of the CD images. It only looks on the CD/USB if something goes wrong
try 
sudo geany /etc/apt/sources/list
if geany is not found try 
sudo nano /etc/apt/sources/list
Comment out the line that refers to cdrom
If that is the only line in the file, delete that line, paste in the contents of the attached file.
to save a file in nano Ctrl-O, Y, Ctrl-X
 
Attachments:

Please Log in or Create an account to join the conversation.

More
23 Sep 2023 02:04 #281421 by rodw
You MUST be conected to the internet to install Debian.

Please Log in or Create an account to join the conversation.

More
23 Sep 2023 02:22 - 23 Sep 2023 15:04 #281423 by tommylight

The only reason the installer leaves CD ROM repos is if there is no network connection to the internet. The image you have suggested probably will do the same thing.

It does not, no matter how many times i tried, over 10 now.
NO INTERNET WHILE INSTALLING DEBIAN!!! NEVER.
Only after reboot, connect to internet.
-
Rod, stop this.
Fix the RPI issue in the docs.
Last edit: 23 Sep 2023 15:04 by tommylight. Reason: more info

Please Log in or Create an account to join the conversation.

More
23 Sep 2023 04:02 #281425 by rodw

The only reason the installer leaves CD ROM repos is if there is no network connection to the internet. The image you have suggested probably will do the same thing.
It does not, no matter how many times i tried, over 10 now.
NO INTERNET WHILE INSTALLING!!! NEVER.
 

How has your post helped the user?
If you look at either the log of the CD ISOs or the contents on the link you provided, linuxcnc-uspace is not included so it needs the internet connected to get it. But the sources.list is clearly not set up to allow that.

Please Log in or Create an account to join the conversation.

More
23 Sep 2023 05:02 #281434 by marq_torque
Many thanks. update is working now
The following user(s) said Thank You: rodw

Please Log in or Create an account to join the conversation.

Time to create page: 0.283 seconds
Powered by Kunena Forum