Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I want to set up a vncserver on my machine. I need each remote user to start separate session - so they see the login screen after connecting, log in, and so on - without interrupting another users.

How this can be done?

share|improve this question

1 Answer 1

up vote 3 down vote accepted

VNC Server does not show you the login screen - instead it takes you straight to the desktop, after you have logged in. If your goal is make sure that the users can log in remotely with a GUI without interrupting the other users who are already logged in, here is what you need to do.

First, install vnc onto your machine.

sudo apt-get install vnc4server

For each user, you can make them set a vnc password

vncpasswd

that asks for a password. Afterwards, each user can log in remotely (via the command line) and set up their own VNC server:

vncserver

This will output something like

New 'machine:1 (user)' desktop is machine:1

Creating default startup script /home/user/.vnc/xstartup Starting applications specified in /home/user/.vnc/xstartup Log file is /home/user/.vnc/machine:1.log

Once this is done, each user can log in to the GUI of their respective accounts using your machine's ip address and the desktop session number. In the above example, if the IP address of the machine is 10.0.0.1 then you can can put 10.0.0.1:1 as the server to connect to in the VNC client.

share|improve this answer
    
The problem is, that I saw exactly what I described - user just typed "vncviewer host" and got a full login screen. The problem is that admin in that place was not very helpful - he failed to describe how it works, seems he just forgot. –  Rogach Aug 18 '11 at 6:48
    
Possibly the vncpasswd would work then instead of the regular password? Or did the above solve your problem? –  Sudipta Chatterjee Aug 18 '11 at 18:28
    
Actually, this thread nearly solved my problem: ubuntuforums.org/showthread.php?t=122402 But it does not work on 10.10 - gdm login greeter hangs :( It seems to be fixed in 11.04, though. –  Rogach Aug 19 '11 at 9:25

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.