Configuring TightVNC server on lubuntu

Share your how-tos and guides with other users

Moderators: ChrisThornett, LXF moderators

Configuring TightVNC server on lubuntu

Postby Jonathanwri73 » Sun Jul 17, 2011 3:02 pm

For those who may want to use lubuntu on a lower powered desktop and access this remotely. I found out some simple steps to acheive this which are as follows:

1. Get the tightvncserver package using the command:

apt-get install tightvncserver

2. Open LXTerminal in your login session

3. Run the command vncpasswd to define a vncpasswd

4. cd $HOME/.vnc

5. vi (or nano) xtstartup and then:
- Comment out the last line of the file which should be /etc/X11/Xsession
- Add the following line as the last line of the file
/usr/bin/lxsession -s Lubuntu -e LXDE

6. Save the file

7. Start the VNC server using command tightvncserver and then connect from your client.

Best regards,
Jonathan
User avatar
Jonathanwri73
 
Posts: 13
Joined: Mon Aug 22, 2005 7:12 pm
Location: UK

Postby lewisgard » Mon Apr 16, 2012 12:52 am

when I try to "vi xtstartup" it looks like is opening a new file, there is nothing to edit. I'm a newbe to lunix and been trying hard to get a vnc server going. Do you know what I might be doing wrong? Thanks!
lewisgard
 
Posts: 1
Joined: Sun Apr 15, 2012 11:42 pm

Postby wyliecoyoteuk » Mon Apr 16, 2012 3:24 pm

you need the path to the file, which should be in the .vnc directory in your home folder:

sudo vi ~/.vnc/xtstartup

however, if nano is installed, you might find that more user friendly than vi

sudo nano ~/.vnc/xtstartup
The sig between the asterisks is so cool that only REALLY COOL people can even see it!

*************** ************
User avatar
wyliecoyoteuk
LXF regular
 
Posts: 3452
Joined: Sun Apr 10, 2005 10:41 pm
Location: Birmingham, UK

Postby zzzooo » Thu Jun 07, 2012 7:34 am

lewisgard wrote:when I try to "vi xtstartup" it looks like is opening a new file, there is nothing to edit. I'm a newbe to lunix and been trying hard to get a vnc server going. Do you know what I might be doing wrong? Thanks!


According to the page linked below, tightvncserver only creates the configuration file the first time it is run. So if you have not yet run tightvncserver the configuration file will not have been created. Run it once from the command line (e.g. type "tightvncserver :1") and it should give you a configuration file to edit. (To kill the session you created with that command, type "tightvncserver -kill :1".)

http://help.ubuntu.com/community/VNC/Se ... tvncserver
zzzooo
 
Posts: 2
Joined: Thu Jun 07, 2012 7:29 am

Re: Configuring TightVNC server on lubuntu

Postby zzzooo » Thu Jun 07, 2012 7:42 am

Jonathanwri73 wrote:5. vi (or nano) xtstartup and then:
- Comment out the last line of the file which should be /etc/X11/Xsession
- Add the following line as the last line of the file
/usr/bin/lxsession -s Lubuntu -e LXDE


The following line also works if you have all the Lubuntu packages installed (I'm using Ubuntu 12.04):

Code: Select all
/usr/bin/startlubuntu


In case it helps anyone, here's my complete xstartup file:

Code: Select all
#!/bin/sh

xrdb $HOME/.Xresources
xsetroot -solid grey
# Fix to make GNOME work
export XKL_XMODMAP_DISABLE=1

# Start an LXDE session.
/usr/bin/startlubuntu


This gives me a nice desktop with LXDE and a fully populated menu, panel, etc.
zzzooo
 
Posts: 2
Joined: Thu Jun 07, 2012 7:29 am


Return to Hints and tips

Who is online

Users browsing this forum: No registered users and 2 guests