The best Server

Rashkae ubuntu at tigershaunt.com
Wed Jul 9 23:33:47 UTC 2008


NoOp wrote:

> 
> Thanks! That works; I just did a sudo mv /etc/rc2.d/S##gdm x-S##gdm-x
> and did a restart.
> 
> I found that I can 'ssh -X username at hostIP' into the machine and run
> startx and then gdm applications. This test machine has ubuntu-desktop
> also on it. But the odd part is that I get startx errors yet can still
> run a gdm app (in this case I ran gedit):
> 
> ~$ gksu gedit
> The program 'gksu' received an X Window System error.
> This probably reflects a bug in the program.
> The error was 'BadAccess (attempt to access private resource denied)'.
>   (Details: serial 186 error_code 10 request_code 145 minor_code 5)
>   (Note to programmers: normally, X errors are reported asynchronously;
>    that is, you will receive the error a while after causing it.
>    To debug your program, run it with the --sync command line
>    option to change this behavior. You can then get a meaningful
>    backtrace from your debugger if you break on the gdk_x_error() function.)
> 
> OK, so I startx:
> 
> ggserver2 at userver:~$ startx
> 
> X: user not authorized to run the X server, aborting.
> giving up.
> xinit:  No such file or directory (errno 2):  unable to connect to X server
> xinit:  No such process (errno 3):  unexpected signal 2.
> 
> But then I try gedit again:
> 
> ggserver2 at userver:~$ gksu gedit
> 
> and that works just fine. as does $firefox $soffice $nautilus etc.
> 
> 
> 
> 
> 

Oh, I see what you did here... Sorry for my earlier responses.  I've
somehow failed at reading comprehension. (just don't call me Karl, k?)

You do not need to, nor should you, run startx on the remote computer.
For any X application to work, including gedit, you need to have
"Xserver" running on the computer that will display the application.
This is confusing, as it flips terminology around.  Xserver needs to run
on the "Client" computer, not the Server computer.. got it?  The
application that runs on the application server, like gedit, is called a
client application..... (don't look at me, this terminology was invented
by egg heads in the 70's.)




So, for example


Application                   Thin Client
Server
  |                                |
Headless                     Monitor + Keyboard

  |                                |
X Client App.                  Xserver Display
(ex. gedit)

As for why gksu didn't work until you tried to run startx is a bit of a
mystery, it is probably a gksu specific problem.  Try sudo gedit.






More information about the ubuntu-users mailing list