Ubuntu Server: Need to Remote desktop

NoOp glgxg at sbcglobal.net
Sat Jul 12 00:56:59 UTC 2008


On 07/10/2008 03:37 PM, Robert Dailey wrote:
> On Thu, Jul 10, 2008 at 4:30 PM, Robert Dailey <rcdailey at gmail.com> wrote:
> 
>> On Thu, Jul 10, 2008 at 3:58 PM, Bud Roth <junk at taiotoshi.org> wrote:
>>
>>> Rob:
>>>
>>> On your server, you need to "sudo apt-get install openssh vnc4server".
>>> On your Linux client, ssh and vncviewer are standard parts of Ubuntu
>>> installs.
>>>
>>> Openssh is a Telnet-like command line terminal program that has security
>>> built-in.  It uses an encrypted session, unlike telnet, to send data
>>> back and forth.  That should be your command-line way to visit your
>>> server.
>>>
>>> Vnc-server provides a secure, GUI desktop based on the X server
>>> installed on your server (xubuntu) to remote clients that request a
>>> connection.  It eats up much less bandwidth than running a remote X
>>> session.
>>>
>>> Read up on both of them.  After you install, post your issues and
>>> someone will be able to solve them.
>>
>>
>> Thanks for your response.
>>
>> I did the following from my ubuntu server:
>>
>> vnc4server
>>
>> after running that command, it asked me for a password. However, I cannot
>> figure out what port it listens to nor how to configure that. How can I
>> configure the port for the server to listen on?
>>
>> Also, I'm using TightVNC Viewer on my windows machine to connect to my
>> linux server. Is this okay too?
>>
>> Do I have to do anything additional on my server to get VNC working? For
>> example, do I have to start the xubuntu desktop or something? Thanks for the
>> help.
>>
> 
> Aside from not being able to specify the port, I have a whole different
> issue. For some reason VNC doesn't seem to be using the X11 windowing
> system, it's using some other default thing that has trouble rendering the
> title bars of all the windows (so I can't close windows or drag them). How
> can this be fixed? Thanks.
> 
> 

On the server:

sudo apt-get install tightvncserver
sudo apt-get install xtightvncviewer

Now start your putty into the server from the XP machine and issue:

vncserver :1

That will put xdisplay on video. You can now close the putty session as
running and open tightvnc (I much prefer UltraVNC) and give the
serveripaddresss:1

That will start the vnc on 1 and should work. In the VNC client (again I
highly recommend UltraVNC) you will get a standard terminal X window. In
that window just enter firefox & off you go.

That said, I very much prefer running an NX NoMachine on the server. The
server is set up to only enter in cli, but you can NX into the machine
and get a full gdm desktop using the NX client on Windows. It you'd like
to know how to do that let me know. NX uses ssh by default into the
machine and give you a full working desktop while the session is open.
In addition, you do not need to run the tightvncserver etc to do this.









More information about the ubuntu-users mailing list