The best Server

NoOp glgxg at sbcglobal.net
Wed Jul 9 22:47:48 UTC 2008


On 07/09/2008 02:14 PM, epuster wrote:
> NoOp wrote:

>>
>> Can you advise on how to remove gdm from runlevel 2? I'd like to give
>> this a try. Thanks.
>>
>>
>>   
> The way I've always done this is to simply (re)move /etc/rc2.d/S##gdm
> Perhaps this is the wrong way to go about it, but it has worked for me with other programs (such as nagios and samba).
> 
> -- Eric
> 
> 

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.








More information about the ubuntu-users mailing list