Page 1 of 1

How do i upgrade a remote machine over ssh X forwarding?

Posted: Tue Jul 25, 2023 1:58 pm
by whsergent
MX-packageinstaller wont start as root and if i run it as a user on the remote machine the authentication window cant be drawn.
If i run synaptic as root, X forwarding from the remote machine, it lists no upgrades.

I know the remote machine needs upgrades to be current because im running an MX linux desktop machine that has different versions of, for instance, the kernel.

So, anyway to upgrade the remote machine over ssh X forwarding without actually being logged in and in front of it with monitor, mouse and keyboard?

Or just being able to remotely upgrade it from the command line during an ssh login without x forwarding would be great too.

Thanks

Re: How do i upgrade a remote machine over ssh X forwarding?  [Solved]

Posted: Tue Jul 25, 2023 2:15 pm
by timkb4cq

Code: Select all

sudo apt update

Code: Select all

sudo apt upgrade
Obviously, drop the sudos if you're logged in as root.

Re: How do i upgrade a remote machine over ssh X forwarding?

Posted: Tue Jul 25, 2023 2:18 pm
by whsergent
Thanks, i appreciate the quick reply. I was thinking something like that but was afraid that it might lead to trouble with the installer not using official mx linux repos.

Re: How do i upgrade a remote machine over ssh X forwarding?

Posted: Tue Jul 25, 2023 2:20 pm
by timkb4cq
I have an old MX-16 install where this works:

Code: Select all

dbus-launch sudo /usr/bin/mx-packageinstaller
I don't have a recent MX version available via ssh at the moment to test whether that still works.

Re: How do i upgrade a remote machine over ssh X forwarding?

Posted: Tue Jul 25, 2023 2:25 pm
by whsergent
The first method worked nicely thank you.
Logging in as a user and trying the second method returned this:

"[sudo] password for $USER:
X11 connection rejected because of wrong authentication.
qt.qpa.xcb: could not connect to display localhost:11.0
qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "" even though it was found.
This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.

Available platform plugins are: eglfs, linuxfb, minimal, minimalegl, offscreen, vnc, xcb.

Aborted"