- 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: 11123
- Thank you received: 3689
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
-
- Online
- Moderator
-
Less
More
- Posts: 19931
- Thank you received: 6749
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: 11123
- Thank you received: 3689
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
-
- Online
- Moderator
-
Less
More
- Posts: 19931
- Thank you received: 6749
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: 11123
- Thank you received: 3689
23 Mar 2025 23:57 #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 commnad 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/*.* ~/aptsudo 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 commnad does not work then
sudo geany /etc/apt/sources.list
and add the text in "" manually at the end of the file
Please Log in or Create an account to join the conversation.
- tommylight
-
- Online
- Moderator
-
Less
More
- Posts: 19931
- Thank you received: 6749
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.
- LinuxCNC
- Installing LinuxCNC
- Script to update 2.9.x ISO to use Linuxcnc Version 2.10 (master branch)
Time to create page: 0.067 seconds