I had to reboot a PC at the office from home, over VPN…
I can get to the PC through SSH, but I don’t think it automatically logged in the user to the GUI because when I try to VNC to it,
it fails. When I run this command below through the SSH session:
x11vnc -display :0 -auth /home/csr/.Xauthority
I get some errors/warnings from that command, and one of the possibilities is that no one is logged into an X Session yet… Which is what I
think the problem most likely is.
So is it possible to login a user to an X Session through the command line?
On Sun, 04 Aug 2013 20:36:02 +0000, mmartin0926 wrote:
> I get some errors/warnings from that command, and one of the
> possibilities is that no one is logged into an X Session yet… Which is
> what I think the problem most likely is.
>
> So is it possible to login a user to an X Session through the command
> line?
Nope, but if you use the auth database used by the Xorg server (you can
find that out using “ps ax | grep Xorg”, that will grant you access to
the display to login.
You will (however) have to run x11vnc as root, because the auth
database is only accessible to root by default. This won’t run the
display manager session as root, just x11vnc.
On Sun, 04 Aug 2013 21:36:01 +0000, mmartin0926 wrote:
> Awesome, that worked perfect… Didn’t think of that before to use THAT
> auth file.
>
> Great, thanks Again Jim…!
No problem, I ran into that myself and had to chase it down.
> I thought I had setup that PC to NOT prompt you to login when you boot
> up, but apparently not… Where is that set? Somewhere in YaST…?
Yeah, in YaST, under “User and Group Management”->“Expert Options”->“Login
Settings” (I’m using GNOME here, but it should be the same place in KDE
if that’s the DE you’re using).