Script to update 2.9.x ISO to use Linuxcnc Version 2.10 (master branch)

  • rodw
  • rodw's Avatar Topic Author
  • Offline
  • Platinum Member
  • Platinum Member
More
23 Mar 2025 12:43 - 23 Mar 2025 12:45 #324652 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.
Last edit: 23 Mar 2025 12:45 by rodw.

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

More
23 Mar 2025 13:32 #324663 by tommylight
That file contains:
#! /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
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.

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

  • rodw
  • rodw's Avatar Topic Author
  • Offline
  • Platinum Member
  • Platinum Member
More
23 Mar 2025 22:02 #324701 by rodw
Oops, revised script attached

The files I deleted, I created via the Linuxcnc installer I wrote, hence the backup.
 
Attachments:

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

More
23 Mar 2025 22:27 #324704 by tommylight
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.

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

  • rodw
  • rodw's Avatar Topic Author
  • Offline
  • Platinum Member
  • Platinum Member
More
23 Mar 2025 23:57 #324710 by rodw
Thats what happens on the way out the door to work

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.

More
24 Mar 2025 00:33 #324711 by tommylight
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.

Time to create page: 0.067 seconds
Powered by Kunena Forum