LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   VNC into display 0 in fluxbox (Ubuntu Feisty) (https://www.linuxquestions.org/questions/linux-software-2/vnc-into-display-0-in-fluxbox-ubuntu-feisty-591605/)

xmrkite 10-13-2007 09:14 PM

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
That starts it just fine for display 1

But when i run this:
Code:

vncserver -geometry 1024x768 -depth 16 :0
It says:

Code:

Warning: ubuntu:0 is not taken because of /tmp/.X0-lock
Remove this file if there is no X server ubuntu:0
A VNC server is already running as :0

I remove that file and still get the same error.

I have tried disabling the remote desktop through gnome, but that didn't make a difference.

Any ideas?

Brian1 10-14-2007 10:03 AM

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

xmrkite 10-14-2007 01:21 PM

I did exactly as you recommended, but it didn't do anything. Still can't get in.

Any other ideas?

Brian1 10-14-2007 04:27 PM

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

xmrkite 10-14-2007 04:31 PM

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

xmrkite 10-14-2007 04:56 PM

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
2) Modify /etc/X11/xorg.conf
Code:

      sudo nano /etc/X11/xorg.conf
In the "Module" section, add:

Code:

                  Load "vnc"
In your "Screen" section add:

Code:

  Option "SecurityTypes" "VncAuth"
                  Option "UserPasswdVerifier" "VncAuth"
                  Option "PasswordFile" "/root/.vnc/passwd"

Replace root with /home and then any user. ie. /home/joesmith/.vnc/psaswd

3) Create a VNC password

Code:

    sudo -H vncpasswd
4) Restart GDM

Code:

      sudo /etc/init.d/gdm restart
I found this on the ubuntu docs site.

Thanks for all the help. I searched google for Option "passwordFile" and that is how i found that.

Brian1 10-14-2007 05:00 PM

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

xmrkite 10-14-2007 05:49 PM

yes, the password file existed already, so that was nice.

Brian1 10-15-2007 04:31 PM

oh well you have it working. I would make notes on all you did just incase to reinstall or something.

Brian

xmrkite 10-15-2007 04:57 PM

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.