| View previous topic :: View next topic |
| Author |
Message |
Jonathanwri73

Joined: Mon Aug 22, 2005 8:12 pm Posts: 13 Location: UK
|
Posted: Sun Jul 17, 2011 4:02 pm Post subject: Configuring TightVNC server on lubuntu |
|
|
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 |
|
| Back to top |
|
 |
lewisgard
Joined: Mon Apr 16, 2012 12:42 am Posts: 1
|
Posted: Mon Apr 16, 2012 1:52 am Post subject: |
|
|
| 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! |
|
| Back to top |
|
 |
wyliecoyoteuk LXF regular

Joined: Sun Apr 10, 2005 11:41 pm Posts: 3369 Location: Birmingham, UK
|
Posted: Mon Apr 16, 2012 4:24 pm Post subject: |
|
|
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!
*************** ************ |
|
| Back to top |
|
 |
zzzooo
Joined: Thu Jun 07, 2012 8:29 am Posts: 2
|
Posted: Thu Jun 07, 2012 8:34 am Post subject: |
|
|
| 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/Servers#tightvncserver |
|
| Back to top |
|
 |
zzzooo
Joined: Thu Jun 07, 2012 8:29 am Posts: 2
|
Posted: Thu Jun 07, 2012 8:42 am Post subject: Re: Configuring TightVNC server on lubuntu |
|
|
| 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: | | /usr/bin/startlubuntu |
In case it helps anyone, here's my complete xstartup file:
| Code: | #!/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. |
|
| Back to top |
|
 |
| View previous topic :: View next topic |
|