VNC into display 0 in fluxbox (Ubuntu Feisty)
Hello. I have ubuntu feisty running great. To save some ram usage i installed fluxbox. I also installed vncserver so i could vnc in. (I was able to vnc into display 0 just find when using gnome). I can easily vnc into any display except 0.
Here's what i run to start the vnc server: Code:
vncserver -geometry 1024x768 -depth 16 :1 But when i run this: Code:
vncserver -geometry 1024x768 -depth 16 :0 Code:
Warning: ubuntu:0 is not taken because of /tmp/.X0-lock I have tried disabling the remote desktop through gnome, but that didn't make a difference. Any ideas? |
Edit /etc/X11/xorg.conf and add these lines to the sections listed.
Under "Module" ... Load "vnc" EndSection ... Uder Section "Screen" ... Option "passwordFile" "/username/.vnc/passwd" Change username to the user that will make this connection to 5900 or 5800 port. Brian |
I did exactly as you recommended, but it didn't do anything. Still can't get in.
Any other ideas? |
The line is actually.
Option "passwordFile" "/home/username/.vnc/passwd" Those are the only two lines under xorg.conf I have added to make connection directly to display 0:0 I forget where I found this. I have seen a link that adds addtional lines. If I find it I will post. Brian |
Actually, that's what i tried. Still, a no go.
I was thinking...i have vncserver installed, should i be putting vncserver instead of just vnc? -Thanks |
OK, i got it. For anyone else looking for this answer, here is what i did:
1) Install vnc server package Code:
sudo apt-get install vnc4server Code:
sudo nano /etc/X11/xorg.conf Code:
Load "vnc" Code:
Option "SecurityTypes" "VncAuth" 3) Create a VNC password Code:
sudo -H vncpasswd Code:
sudo /etc/init.d/gdm restart Thanks for all the help. I searched google for Option "passwordFile" and that is how i found that. |
That is some of the extra lines I have seen before. Glad to see you have it working. Did the users passwd file exist when using a user instead of root.
Brian |
yes, the password file existed already, so that was nice.
|
oh well you have it working. I would make notes on all you did just incase to reinstall or something.
Brian |
I have a little issue now. Upon bootup, my vnc servers start automatically, so i can login to :1 or :2 and now, :0 no problem. The issue now is that I set a program to start upon login, and since my machine auto logins for me, the program auto opens every time i boot up. That was the idea. However, when i logged into the :1 or :2 vnc connections, that same program had opened up in each of those sessions too.
How can i get the program to load only on the :0 (main screen)? -Thanks |
All times are GMT -5. The time now is 12:34 PM. |