Login to GUI through Command Line?

Hello All,

Operating System: OpenSuSE 12.1 (Asparagus), KDE4

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?

Thanks in Advance,
Matt

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.

Jim


Jim Henderson
openSUSE Forums Administrator
Forum Use Terms & Conditions at http://tinyurl.com/openSUSE-T-C

Hey Jim, thanks for the reply!

Awesome, that worked perfect… Didn’t think of that before to use THAT auth file.

Great, thanks Again Jim…!

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…?

Thanks AGAIN,
Matt

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. :slight_smile:

> 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).

Jim

Jim Henderson
openSUSE Forums Administrator
Forum Use Terms & Conditions at http://tinyurl.com/openSUSE-T-C

Jim,

Ok cool, thanks! I’ll have to check it out tomorrow when I get in, but that sounds about right.
Thanks again for the help…!

Thanks,
Matt

On Mon, 05 Aug 2013 02:16:01 +0000, mmartin0926 wrote:

> Jim,
>
> Ok cool, thanks! I’ll have to check it out tomorrow when I get in, but
> that sounds about right.
> Thanks again for the help…!

No problem, glad I was able to. :slight_smile:

Jim


Jim Henderson
openSUSE Forums Administrator
Forum Use Terms & Conditions at http://tinyurl.com/openSUSE-T-C