#[SOLVED] Trying to connect into another local user with VNC/RDP

1 messages · Page 1 of 1 (latest)

pearl rivet
#

Hello everyone !
Recently have swapped to a vanilla arch running on Plasma KDE.
I am looking to access a secondary local user on the same host through either rdp/vnc. I had tried rdp but i had a blackscreen and ended up losing connection half a second after pressing connect and confirming the certificate (was using KRDC).

I got recommended to use VNC with TigerVNC, however, i ended up having a permanent black screen after the "Plasma Powered by KDE" loading screen. I had tried anything to fix this issue but nothing worked,
I was using "vncserver :1" on the local user i was trying to log into, and logged with tigervnc, but it just happened to have the issue i stated above.
I had tried many other things with VNC but it ended up having the same issue over and over again.

If anyone knows how to do this, whether it is by the use of VNC/RDP (i don't care which one i need to use as long as it works in the long run), i'll be glad to learn how to get it working, or eventually fix my TigerVNC issue.
Thanks in advance !

flint jasper
pearl rivet
flint jasper
pearl rivet
flint jasper
pearl rivet
#

I do remember that i had a bunch of issues with "artifacts" of my root user in XDG_RUNTIME_DIR and other stuff aka /run/user/1000 instead of 1001

#

Tried to fix that but ended up going to sleep before managing to fully fix..

flint jasper
pearl rivet
pearl rivet
# flint jasper don't use su or sudo to switch users because they keep the parent's env variable...

You're actually my life savior, thank you SO MUCH
I had to fully clear vnc configs as it was stuck on openbox-session for testing purposes:
for anyone having the same issue as me (while also being stuck on anything else than x11plasma):

sudo rm -f /etc/tigervnc/vncserver-config-defaults```

Then use ```sudo machinectl shell --uid=[USER] # [User] being the account you want to connect into

Then do vncpasswd, set your password.

once password is set, make sure that your ~/.vnc/xstartup contains exec startplasma-x11 if not, add it and save it.

run this command to make it executable chmod +x ~/.vnc/xstartup

then vncserver :[DISPLAY] (e.g. vncserver :1)

Run tigervnc then connect to localhost:5901

Enter the password from vncpasswd

And it should work

weary sorrelBOT
#

vtwk received a thank you cookie!

pearl rivet
#

[SOLVED] Trying to connect into another local user with VNC/RDP

pearl rivet
#

I have met another issue, trying to use an X11 app but it wasn't starting in the vncserver, i dug into it and the command echo $XDG_SESSION_TYPE tells me tty instead of X11

flint jasper