Linuxcnc on Debian Bookworm - a shortcut to master branch

More
23 Apr 2022 00:43 - 24 Apr 2022 21:09 #240947 by tommylight
This is for testing purposes only, use at your own risk!!!

This procedure uses the "testing" branch of Debian Linux, so as it's name implies it can be unstable, hence it is not advisable to use it for running production machines.
This procedure also uses the "Master" or 2.9 version of LinuxCNC that is still in development and subject to issues and changes without prior notice.

-
-For a short version, go to second post
-
-Thank you to RodW for pointing me in the right direction.
-Thank you to the Debian developers and community for their amazing work on improving Linux and for including LinuxCNC into the Debian repositories.
-Thank you to LinuxCNC developers and community for their amazing work on the LinuxCNC project and moving it to Python 3, i am sure it was anything but easy.
-
-Download the Debian non free image from here:
https://cdimage.debian.org/cdimage/unofficial/non-free/cd-including-firmware/weekly-builds/amd64/iso-dvd/
-Download the .ISO.
-Write the image to a USB memory stick or a DVD, use DD or win32diskimager or Rufus or Ubuntu disk creator or Image writer or any similar software. Warning: Do not copy the ISO file to USB, it will not work!
-Boot the PC from USB, make sure the PC is set to boot from the USB in BIOS. If it does not normally boot from USB, repeatedly press F8 or F9 or F11 or F12 after pressing the power button.
-When the GRUB menu is shown, press enter
-Follow the instructions to install onto the hard drive or SSD
-Reboot.
-Open a terminal and type:
sudo apt update

-Hit "enter"

-Type in the password you gave when you installed Debian
-Again in a terminal:
sudo apt install linuxcnc-uspace linuxcnc-uspace-dev mesaflash
-press Y
-reboot
-Enjoy
-
-Just in case you want to have useful stuff installed:
sudo apt install inkscape gimp vlc freecad librecad blender darktable kino kdenlive
-press Y
-Enjoy.
Attachments:
Last edit: 24 Apr 2022 21:09 by tommylight. Reason: edited link
The following user(s) said Thank You: BigJohnT, Ac1dburn

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

More
23 Apr 2022 00:48 - 24 Apr 2022 21:13 #240948 by tommylight
--This is the short version of the above:

-Download the Debian non free image from here:
https://cdimage.debian.org/cdimage/unofficial/non-free/cd-including-firmware/weekly-builds/amd64/iso-dvd/
-Write image to USB
-Boot from USB
-Installing Debian
-Reboot.

-Open a terminal and type:
sudo apt update
sudo apt install linuxcnc-uspace linuxcnc-uspace-dev mesaflash
-reboot
-
-Just in case you wan to have useful stuff installed:
sudo apt install inkscape gimp vlc freecad librecad blender darktable kino kdenlive
-press Y
-Enjoy.
Last edit: 24 Apr 2022 21:13 by tommylight. Reason: correction

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

More
23 Apr 2022 03:42 - 24 Apr 2022 19:26 #240963 by rodw
Tommy,

Sorry you are out of date as its now migrated from unstable to testing,
This is on my agenda to test.
You should now use the testing non-free iso which you can download from here so you only have one step.
cdimage.debian.org/cdimage/unofficial/no...weekly-builds/amd64/
On Windows, burn it to a USB stick  using rufus
Last time I burnt to a real DVD using imgburn on windows

Then it should be just a matter of doing
sudo apt update 
sudo apt install linuxcnc-uspace linuxcnc-uspace mesaflash 

One thing I have noticed is that when installing the ISOs sometimes it wants to look on the dvd first.
You can fix that by 
sudo apt install nano 
sudo nano /etc/apt/sources.list
and then commenting out lines containing cd or dvd by placing a # 
Then do sudo apt update again.

To enable auto logon, follow these instructions
www.how2shout.com/linux/enable-or-disabl...-debian-11-bullseye/

Disabling the screen lock can be done from settings/Privacy/Screenlock (click on the region at top right to get to settings)

That sets everything up nicely

Note also that if you do need to get to the latest version of QTplasmac or use some of the very recent features of  V 2.9, you still need to build from source. The dependencies are much reduced. I have a screenshare walking through the process here
Last edit: 24 Apr 2022 19:26 by rodw.
The following user(s) said Thank You: hhogendoorn, johnmc1, Ac1dburn

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

More
23 Apr 2022 03:47 #240964 by rodw
I also forgot to mention is that the debian buildbots a compiling from source so this should be available on about 9 platforms including arm64 which should cover the pi 4 as well.

You can get that here forDebian 12 Testing (Bookworm)
raspi.debian.net/daily-images/
The following user(s) said Thank You: tommylight

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

More
23 Apr 2022 12:36 #240987 by tommylight
Well, that did not last! :)
Thank you RodW, i will update the original post.

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

More
23 Apr 2022 12:53 #240989 by tommylight
Rod,
The link you provided has a single image so i added the weekly live builds, there are all the versions there and there is no version number, so no need for updating this guide.
Thank you for everything.

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

More
23 Apr 2022 21:15 - 23 Apr 2022 21:17 #241027 by rodw
Tommy,  I think the difference is the live build you used allows you to boot the CD image live without installing on the HDD.
I think the different live versions eg xfce, mate etc refer to the desktop used by the live image.

When you run the  installer, you always seem to get an option to choose which desktop to use so I don't think it matters which ISO you start from. 

Because the objective is  to install linuxcnc, the live image is useless to us.

I may be wrong, but just what I think is going on.
Last edit: 23 Apr 2022 21:17 by rodw.

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

More
23 Apr 2022 22:01 #241031 by tommylight

When you run the  installer, you always seem to get an option to choose which desktop to use so I don't think it matters which ISO you start from. 

The default was a trimmed down GNOME DE, for every other choice it will have to download packages making the install much longer and requiring network setup. Also the non graphical and graphical install wizards are hard to use for novices.

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

More
23 Apr 2022 23:54 #241040 by rodw
Tommy, it would be good if you could amend the title because its no longer considered unstable when it gets to Debian testing aka Bookworm. There are a number of distributions that are based on Debian testing so it can hardly be called "Unstable"!

Should be something like:  Linuxcnc on Debian Bookworm - a shortcut to master branch.
The following user(s) said Thank You: tommylight

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

More
23 Apr 2022 23:58 #241041 by tommylight
Yeah, forgot about that. :(
Done, thank you.

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

Time to create page: 0.348 seconds
Powered by Kunena Forum