LinuxCNC on Linux Mint 20 quick and nearly easy install

More
25 Jul 2020 23:27 - 27 Jun 2021 00:38 #175816 by tommylight

Please use the official release found here:
linuxcnc.org/downloads/
Use this tutorial only if you have issues with dirvers, be it WiFi or graphic or else, ..



To install LinuxCNC and the real time kernel on Linux Mint 20 with Mate of XFCE desktop environment ( should also work for Ubuntu 20.4 ) some packages from the official Debian repositories have to be downloaded and installed, as follows:
- Download Linux Mint ISO from here:
https://www.linuxmint.com/download.php
- Write the ISO to a USB drive using win32imager on windows or DD on Linux
- Boot the PC from the USB, make sure that is set in BIOS or press F8 or F9 or F11 or F12 when booting and choose USB
- Install Linux Mint to the HDD or SSD
- Reboot
- Open a terminal from the menu or on the lower left side of the panel
- Copy and paste the following lines, one by one
wget http://ftp.us.debian.org/debian/pool/main/l/linux/linux-image-4.9.0-13-rt-amd64_4.9.228-1_amd64.deb
wget http://ftp.us.debian.org/debian/pool/main/b/boost1.62/libboost-python1.62.0_1.62.0+dfsg-4_amd64.deb
wget http://ftp.us.debian.org/debian/pool/main/p/pygtk/python-glade2_2.24.0-5.1_amd64.deb
wget http://ftp.us.debian.org/debian/pool/main/p/pygtksourceview/python-gtksourceview2_2.10.1-3_amd64.deb
wget http://ftp.us.debian.org/debian/pool/main/p/pygtk/python-gtk2_2.24.0-5.1_amd64.deb
wget http://ftp.us.debian.org/debian/pool/main/p/python-gtkglext1/python-gtkglext1_1.1.0-9.1_amd64.deb
wget http://ftp.us.debian.org/debian/pool/main/g/gst-python1.0/python-gst-1.0_1.10.4-1_amd64.deb
wget http://ftp.us.debian.org/debian/pool/main/c/configobj/python-configobj_5.0.6-2_all.deb
-
sudo gdebi linux-image-4.9.0-13-rt-amd64_4.9.228-1_amd64.deb
sudo gdebi libboost-python1.62.0_1.62.0+dfsg-4_amd64.deb
sudo gdebi python-gtk2_2.24.0-5.1_amd64.deb
sudo gdebi python-glade2_2.24.0-5.1_amd64.deb
sudo gdebi python-gtksourceview2_2.10.1-3_amd64.deb
sudo gdebi python-gtkglext1_1.1.0-9.1_amd64.deb
sudo gdebi python-gst-1.0_1.10.4-1_amd64.deb
sudo gdebi python-configobj_5.0.6-2_all.deb
-
sudo apt-key adv --keyserver hkp://keys.gnupg.net:80 --recv-key EF1B07FEE0EE663E
-
-For Master version, unstable, still under development
sudo apt-add-repository 'deb http://buildbot.linuxcnc.org/ stretch master-rtpreempt'
-OR, not both.
-For 2.8 version, stable, to be current release
sudo apt-add-repository 'deb http://buildbot.linuxcnc.org/ stretch 2.8-rtpreempt'
-
sudo apt-get update
-
sudo apt-get -y install linuxcnc-uspace
-
---
If the above keyserver does not work, try these:
sudo apt-key adv --keyserver hkp://keys.openpgp.org --recv-key EF1B07FEE0EE663E
OR
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com --recv-key EF1B07FEE0EE663E
OR
sudo apt-key adv --keyserver hkp://pgpkeys.eu --recv-key EF1B07FEE0EE663E
---
-
Editing the GRUB menu
sudo add-apt-repository ppa:danielrichter2007/grub-customizer
sudo apt-get update
sudo apt-get install grub-customizer
How to use:
itsfoss.com/grub-customizer-ubuntu/
It is for Ubuntu, same applies for Mint.
-
WARNING : DO NOT INSTALL THIS!!!
ONLY In case you need to build other kernel modules the installation of the below listed packages is required.


After download, double click on each of the files and install as usual with Gdebi. The order of links might be off, so try the next and the next and.....
Last edit: 27 Jun 2021 00:38 by tommylight. Reason: More info
The following user(s) said Thank You: beatnic, akb1212, elovalvo, rodw, anfänger, riversvic, RoberCNC, hilo90mhz

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

More
26 Jul 2020 02:52 #175845 by BeagleBrainz
Jolly good show Old bean, a Tip O' The Hat to you.

How long did you spend working it out ?

Sorry I've been a bit quiet of late, been into another couple of projects.
The following user(s) said Thank You: tommylight

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

More
26 Jul 2020 06:40 #175860 by Clive S

Jolly good show Old bean, a Tip O' The Hat to you.

How long did you spend working it out ?

Sorry I've been a bit quiet of late, been into another couple of projects.


Now all you have to do is work your magic and turn it into an ISO :)
The following user(s) said Thank You: tommylight

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

More
26 Jul 2020 09:14 #175872 by tommylight


How long did you spend working it out ?

In total about 4 hours plus upgrade from beta, so not bad at all.
Will add the 5.4 kernel and try to do a script as soon as i can.
The following user(s) said Thank You: zack

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

More
03 Aug 2020 21:16 - 03 Aug 2020 21:17 #177096 by rootboy
Thanks! I had a few hiccups, but it is running on both of my PCs.


I first installed it on my home PC (no mill attached to it) and ran into three problems. I just finished installing it on my friend's PC and had the first and last problem (the last not really being a problem so much as a requirement).


Installing python-gtk2 failed with a "Dependency is not satisfiable" error. This was fixed by going to pkgs.org/download/python-gtk2 and downloading the "Debian 9 (Stretch)" version. Installing the newer version will not work.

Download the file, let the installer do its thing including installing extra files that it requires to complete the installation.

Don't forget to run (or re-run) the "sudo gdebi python-glade2..." command.

This could probably be avoided by installing the python-gtk2 package first. But if not, this is how I fixed it.


I also had a "multiarch-support" issue with my Ryzen processor, but not with the Intel i5 on the target PC. I fixed this by installing multiarch-support_2.24-11+deb9... on my Ryzen PC.


And this is not a bug, just a friendly reminder. If your apt-get update fails on LinuxCNC buildbot, go to: buildbot.linuxcnc.org and add the signing key to your apt keychain.
Last edit: 03 Aug 2020 21:17 by rootboy. Reason: Missing punctuation
The following user(s) said Thank You: tommylight

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

More
03 Aug 2020 21:23 #177104 by tommylight

If your apt-get update fails on LinuxCNC buildbot, go to: buildbot.linuxcnc.org and add the signing key to your apt keychain.

Dang, i forgot to add that, will remedy immediately !
Thanks for the report.

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

More
04 Aug 2020 06:58 #177187 by rootboy

If your apt-get update fails on LinuxCNC buildbot, go to: buildbot.linuxcnc.org and add the signing key to your apt keychain.

Dang, i forgot to add that, will remedy immediately !
Thanks for the report.


No problem! And thank you for the Mint 20 option. :)
The following user(s) said Thank You: tommylight

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

More
04 Aug 2020 12:21 #177225 by tommylight
It has become an obsession ! :)
You are welcomed.

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

More
07 Aug 2020 09:49 #177590 by Tady
Did anyone try compiling run in place? I wad unsuccessful. There seems to be a problem with python versions. Some packages require 2.7.15 but python 2.7.18 is installed. Everything brakes. I have downgraded to 19.3 and there was no problem.

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

More
07 Aug 2020 11:17 #177592 by tommylight

Did anyone try compiling run in place?

Not that i am aware of.
Everything is moving to Python 3 and that is causing some major headaches .

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

Time to create page: 0.107 seconds
Powered by Kunena Forum