- LinuxCNC
- Installing LinuxCNC
- Script to update 2.9.x ISO to use Linuxcnc Version 2.10 (master branch)
Script to update 2.9.x ISO to use Linuxcnc Version 2.10 (master branch)
- rodw
-
Topic Author
- Offline
- Platinum Member
-
Less
More
- Posts: 11138
- Thank you received: 3703
23 Mar 2025 12:43 - 23 Mar 2025 12:45 #324652
by rodw
Script to update 2.9.x ISO to use Linuxcnc Version 2.10 (master branch) was created by rodw
This script installs linuxcnc master branch (2.10) after you have installed the ISO on the downloads page.
This is still abit untested so it would be good if somebody with some Linux experience and familarity with apt tests this.
You may want to move to version 2.10 to get the latest QtPlasmac for example as the version in 2.9.4 is no longer maintained.
Instructions:
1. Download attached script
2. Delete the .txt.extension
3. Check permisssions are executible (Right click, Properties and check Permissions tab)
4. Run the script from the folder it is downloaded to: sudo ./master.sh
The script deletes and modifies some files in the /etc/apt folder and sub-folders. It does make a copy of the /etc/apt folder into your home folder
I tried on one PC and it worked. On another PC it didn't. If it fails, open the file and run each line individually
after the apt upgrade is complete, running linuxcnc should show version 2.10 on startup in the console and the splash screen.
To update down the track
sudo apt update && sudo apt upgrade
should do the trick (and update Debian too)
Enjoy.
This is still abit untested so it would be good if somebody with some Linux experience and familarity with apt tests this.
You may want to move to version 2.10 to get the latest QtPlasmac for example as the version in 2.9.4 is no longer maintained.
Instructions:
1. Download attached script
2. Delete the .txt.extension
3. Check permisssions are executible (Right click, Properties and check Permissions tab)
4. Run the script from the folder it is downloaded to: sudo ./master.sh
The script deletes and modifies some files in the /etc/apt folder and sub-folders. It does make a copy of the /etc/apt folder into your home folder
I tried on one PC and it worked. On another PC it didn't. If it fails, open the file and run each line individually
after the apt upgrade is complete, running linuxcnc should show version 2.10 on startup in the console and the splash screen.
To update down the track
sudo apt update && sudo apt upgrade
should do the trick (and update Debian too)
Enjoy.
Last edit: 23 Mar 2025 12:45 by rodw.
Please Log in or Create an account to join the conversation.
- tommylight
-
- Away
- Moderator
-
Less
More
- Posts: 19960
- Thank you received: 6770
23 Mar 2025 13:32 #324663
by tommylight
Replied by tommylight on topic Script to update 2.9.x ISO to use Linuxcnc Version 2.10 (master branch)
That file contains:1. it does not add the repository, it only adds the key
2. deleting stuff on user PC's is never a good idea, at least add a warning for them to confirm the risk.
#! /bin/bash
mkdir ~/apt
sudo cp -r /etc/apt/*.* ~/apt
sudo wget http://buildbot2.highlab.com/buildbot-archive-key.gpg /etc/apt/trusted.gpg.d
sudo rm -f /etc/apt/preferences.d/99linuxcnc-uspace.pref
sudo rm -f /etc/apt/sources.list.d/linuxcnc-uspace.list
sudo apt update
sudo apt upgrade
2. deleting stuff on user PC's is never a good idea, at least add a warning for them to confirm the risk.
Please Log in or Create an account to join the conversation.
- rodw
-
Topic Author
- Offline
- Platinum Member
-
Less
More
- Posts: 11138
- Thank you received: 3703
23 Mar 2025 22:02 #324701
by rodw
Replied by rodw on topic Script to update 2.9.x ISO to use Linuxcnc Version 2.10 (master branch)
Oops, revised script attached
The files I deleted, I created via the Linuxcnc installer I wrote, hence the backup.
The files I deleted, I created via the Linuxcnc installer I wrote, hence the backup.
Please Log in or Create an account to join the conversation.
- tommylight
-
- Away
- Moderator
-
Less
More
- Posts: 19960
- Thank you received: 6770
23 Mar 2025 22:27 #324704
by tommylight
Replied by tommylight on topic Script to update 2.9.x ISO to use Linuxcnc Version 2.10 (master branch)
Does not work, permission denied, and yes used sudo.
Repositories should be added using
apt-add-repository
echo most probably does not work for system files.
and this is wrong,
echo "deb buildbot2.highlab.com/debian/ bookworm master-uspace 2.9-uspace" >> /etc/apt/sources.list
That is adding master and 2.9 so apt will complain about it.
And the key is not installed properly, it is left in the home folder so it has to be imported manually.
Repositories should be added using
apt-add-repository
echo most probably does not work for system files.
and this is wrong,
echo "deb buildbot2.highlab.com/debian/ bookworm master-uspace 2.9-uspace" >> /etc/apt/sources.list
That is adding master and 2.9 so apt will complain about it.
And the key is not installed properly, it is left in the home folder so it has to be imported manually.
Please Log in or Create an account to join the conversation.
- rodw
-
Topic Author
- Offline
- Platinum Member
-
Less
More
- Posts: 11138
- Thank you received: 3703
23 Mar 2025 23:57 - 31 Mar 2025 08:22 #324710
by rodw
Replied by rodw on topic Script to update 2.9.x ISO to use Linuxcnc Version 2.10 (master branch)
Thats what happens on the way out the door to work
Run these commands one by one
if the echo command does not work then
and add the text in "" manually at the end of the file
Run these commands one by one
cd ~
mkdir ~/apt
sudo cp -r /etc/apt/*.* ~/apt
sudo wget http://buildbot2.highlab.com/buildbot-archive-key.gpg /etc/apt/trusted.gpg.d
sudo rm -f /etc/apt/preferences.d/99linuxcnc-uspace.pref
sudo rm -f /etc/apt/sources.list.d/linuxcnc-uspace.list
echo "deb http://buildbot2.highlab.com/debian/ bookworm master-uspace 2.9-uspace" >> /etc/apt/sources.list
sudo apt update
sudo apt upgrade
if the echo command does not work then
sudo geany /etc/apt/sources.list
and add the text in "" manually at the end of the file
Last edit: 31 Mar 2025 08:22 by rodw.
Please Log in or Create an account to join the conversation.
- tommylight
-
- Away
- Moderator
-
Less
More
- Posts: 19960
- Thank you received: 6770
24 Mar 2025 00:33 #324711
by tommylight
Replied by tommylight on topic Script to update 2.9.x ISO to use Linuxcnc Version 2.10 (master branch)
sudo apt-add-repository "deb http://buildbot2.highlab.com/debian/ bookworm master-uspace 2.9-uspace"
The following user(s) said Thank You: rodw
Please Log in or Create an account to join the conversation.
- H-S-W
- Away
- New Member
-
Less
More
- Posts: 4
- Thank you received: 0
31 Mar 2025 08:14 #325364
by H-S-W
Replied by H-S-W on topic Script to update 2.9.x ISO to use Linuxcnc Version 2.10 (master branch)
Hi guys!
New user here with limited knowledge. Trying to convert an old mill, have a rpi5 and a 7i97T for the job. Planned to use MesaCT to help me with the start of the config, but there is states the 7i97T needs LinuxCNC 2.10.
I've already installed the "Raspberry Pi 5 OS based on Debian Bookworm " from the website, which i'm now trying to update using this post. No luck so far for me!
seems to fail from;
sudo cp -r /etc/apt/*.* ~/aptsudo wget buildbot2.highlab.com/buildbot-archive-key.gpg /etc/apt/trusted.gpg.d
returns;
cp: cannot copy a directory, '/etc/apt/trusted.gpg.d', into itself, '/etc/apt/trusted.gpg.d/trusted.gpg.d'
cp: cannot stat '/home/cnc/aptsudo': No such file or directory
cp: cannot stat 'wget': No such file or directory
cp: cannot stat 'buildbot2.highlab.com/buildbot-archive-key.gpg': No such file or directory
New user here with limited knowledge. Trying to convert an old mill, have a rpi5 and a 7i97T for the job. Planned to use MesaCT to help me with the start of the config, but there is states the 7i97T needs LinuxCNC 2.10.
I've already installed the "Raspberry Pi 5 OS based on Debian Bookworm " from the website, which i'm now trying to update using this post. No luck so far for me!
seems to fail from;
sudo cp -r /etc/apt/*.* ~/aptsudo wget buildbot2.highlab.com/buildbot-archive-key.gpg /etc/apt/trusted.gpg.d
returns;
cp: cannot copy a directory, '/etc/apt/trusted.gpg.d', into itself, '/etc/apt/trusted.gpg.d/trusted.gpg.d'
cp: cannot stat '/home/cnc/aptsudo': No such file or directory
cp: cannot stat 'wget': No such file or directory
cp: cannot stat 'buildbot2.highlab.com/buildbot-archive-key.gpg': No such file or directory
Please Log in or Create an account to join the conversation.
- rodw
-
Topic Author
- Offline
- Platinum Member
-
Less
More
- Posts: 11138
- Thank you received: 3703
31 Mar 2025 08:23 #325366
by rodw
Replied by rodw on topic Script to update 2.9.x ISO to use Linuxcnc Version 2.10 (master branch)
Sorry, the forum broke it.
I edited the post above
I edited the post above
Please Log in or Create an account to join the conversation.
- rodw
-
Topic Author
- Offline
- Platinum Member
-
Less
More
- Posts: 11138
- Thank you received: 3703
31 Mar 2025 08:25 #325367
by rodw
Replied by rodw on topic Script to update 2.9.x ISO to use Linuxcnc Version 2.10 (master branch)
Ooops, I don't think this will work on the Pi5
Please Log in or Create an account to join the conversation.
- H-S-W
- Away
- New Member
-
Less
More
- Posts: 4
- Thank you received: 0
31 Mar 2025 08:56 #325368
by H-S-W
Replied by H-S-W on topic Script to update 2.9.x ISO to use Linuxcnc Version 2.10 (master branch)
Maybe not.. now it stops at:
cnc@raspberrypi:~$ sudo echo "deb buildbot2.highlab.com/debian/ bookworm master-uspace 2.9-uspace" >> /etc/apt/sources.list
bash: /etc/apt/sources.list: Permission denied
cnc@raspberrypi:~$ sudo echo "deb buildbot2.highlab.com/debian/ bookworm master-uspace 2.9-uspace" >> /etc/apt/sources.list
bash: /etc/apt/sources.list: Permission denied
Please Log in or Create an account to join the conversation.
- LinuxCNC
- Installing LinuxCNC
- Script to update 2.9.x ISO to use Linuxcnc Version 2.10 (master branch)
Time to create page: 0.073 seconds