Linux Format forums Forum Index Linux Format forums
Help, discussion, magazine feedback and more
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Configuring TightVNC server on lubuntu

 
Post new topic   Reply to topic    Linux Format forums Forum Index -> Hints and tips
View previous topic :: View next topic  
Author Message
Jonathanwri73



Joined: Mon Aug 22, 2005 8:12 pm
Posts: 13
Location: UK

PostPosted: Sun Jul 17, 2011 4:02 pm    Post subject: Configuring TightVNC server on lubuntu Reply with quote

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
View user's profile Send private message
lewisgard



Joined: Mon Apr 16, 2012 12:42 am
Posts: 1

PostPosted: Mon Apr 16, 2012 1:52 am    Post subject: Reply with quote

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
View user's profile Send private message
wyliecoyoteuk
LXF regular


Joined: Sun Apr 10, 2005 11:41 pm
Posts: 3446
Location: Birmingham, UK

PostPosted: Mon Apr 16, 2012 4:24 pm    Post subject: Reply with quote

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
View user's profile Send private message
zzzooo



Joined: Thu Jun 07, 2012 8:29 am
Posts: 2

PostPosted: Thu Jun 07, 2012 8:34 am    Post subject: Reply with quote

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
View user's profile Send private message
zzzooo



Joined: Thu Jun 07, 2012 8:29 am
Posts: 2

PostPosted: Thu Jun 07, 2012 8:42 am    Post subject: Re: Configuring TightVNC server on lubuntu Reply with quote

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 user's profile Send private message
View previous topic :: View next topic  
Display posts from previous:   
Post new topic   Reply to topic    Linux Format forums Forum Index -> Hints and tips All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Linux Format forums topic RSS feed 


Powered by phpBB © 2001, 2005 phpBB Group


Copyright 2011 Future Publishing, all rights reserved.


Web hosting by UKFast