![]() |
VNCServer wierd happenings??
Trying to get VNC Server up and running on one of my Linux box. Due to lack of monitors and space in my room (and plugpoints) it needs to sit elsewhere.
Using RH7.2 Now the problem is when using the built in VNCServer it starts up OK but no display number is assigned (or is it?) hence when trying to connect to it returns an error. Next I tried editing the /etc/sysconfig/vncserver file as appropriately and rebooted machine.. works fine display 1 assigned.. connected..OK Then I rebooted again only to come across an error: Display :1 is already in use There is already afile in /tmp/.X.....blah blah Starting VNC Server.. FAILED Obviously the previous display is still hanging around.. I've also tried not using the built in VNC Server startup and started it in rc.local same error occurs.. Display :<number> is already in use. blah blah.. Is there any solution to this?? |
Go to this file: /tmp/.X11-unix/X1
It will solve your problem |
Yes I've been there and fixed the problem now..
Obviously the vncserver wasn't killing the displays properly on stop/shutdown so I put in this line in the vncserver init script: rm -f /tmp/.X11-unix/X*.* Thanks for replying anyway |
decent temp solution, but you might just notice, did your shutdown script have
vncserver -kill :# where # is the number of the display that was active? perhaps it might have had a variable there? |
yes it does, but for some reason it won't work,
here is the original 'stop' section from ../init.d/vncserver Code:
echo -n $"Shutting down $prog: "I have to add this line in order to remove the X0 and X1 thats left behind. rm -f /tmp/.X11-unix/X*.* |
| All times are GMT -5. The time now is 11:40 AM. |