Re: [Hampshire] Ubuntu LTS server problems

Top Page

Reply to this message
Author: Tim
Date:  
To: daniel.spain, Hampshire LUG Discussion List
Subject: Re: [Hampshire] Ubuntu LTS server problems
On Friday 20 August 2010 15:51:13 Daniel Spain wrote:
> > OK not so much problems but more of how do I do it
> >
> > I have just installed Ubuntu 10.04 LTS Server onto a new server, it boots
>
> to
>
> > CLI, I then sudo"user" startx to get a gui interface (yes I know gui and
>
> server
>
> > are not everybody cup of tea but for me it is).
> >
> > But as the server won't be next to me I need to access it remotely, now
> > if
>
> the
>
> > server is up and running (and X is running) I can run TightVNC and access
>
> the
>
> > server. But if the server goes down (reboot or powercut, I can get
>
> somebody
>
> > to
> > push the button on the front on the server to start it for me), I can
> > then
>
> ssh
>
> > into the server and login as me, but if I try to startX from ssh it won't
>
> I
>
> > think it is trying to run X just to the ssh client I have open and not
>
> start X
>
> > globally on the server. How can I start X globally on the server from an
>
> ssh
>
> > session?
> >
> > Tim
>
> DISPLAY=:0.0 sudo "user" startx?
>
> I may be wrong though....I know that works for launching graphical apps via
> an ssh session, but may not be correct for startx itself.
>
> You could always just have the server start it automatically on boot.
>
> Dan.
>
>
> --
> Please post to: Hampshire@???
> Web Interface: https://mailman.lug.org.uk/mailman/listinfo/hampshire
> LUG URL: http://www.hantslug.org.uk
> --------------------------------------------------------------


OK the command that works is

DISPLAY=:0.0 sudo startx

So running SSH and logging in as me (a user) and then running the above command
starts X on the server, A minor problem is closing the SSH window on the remote
PC shutsdown X on the server. I then have to open a second SSH window to start
the vnc server (although I could do that before I start X or put it in a script
to start on bootup at a later date).

The reason I don't boot to GUI is that the user can't start X, even from the
server its self, I just get authentication failure, yet I am using the same
credentials when I remote in.

Tim