Howto Setup VNC with LTSP 5 (Edubuntu)
Jim Kronebusch
jim at winonacotter.org
Tue Jul 10 14:22:31 BST 2007
On Tue, 10 Jul 2007 13:01:10 +0200 (CEST), Kenny Lindholm wrote
> Do you have some more detailed information about this that you could share?
Hi Kenny, I set this up as follows:
1) Install Tight Vnc Server
2) set up inetd and services:
modify /etc/services and at the bottom of file add this:
# Local services
#VNC On-Demand
vnc-1024x768x16 5900/tcp
(here you have a screen of 1024x768 px and 16bits of colors via port 5901)
Modify /etc/inetd.conf and at the bottom of file add this (all on one line):
# VNC On-Demand
vnc-1024x768x16 stream tcp nowait nobody.tty /usr/bin/Xvnc Xvnc -inetd -query localhost
-once -geometry 800x600 -depth 16
Now:
3) restart inetd daemon:
/etc/init.d/inetd restart
You should be able to connect with any VNC viewer. Note the name vnc-1024x768x16 is not
important, you can name this whatever you want (ie: vnc or vnc-1024), I just kept it
specific so I know the details of that connection. You just need to make sure whatever
you call it in /etc/services you use the same name in /etc/inetd.conf. Also if you want
you can duplicate this in both files and just change the name of the service and port in
/etc/services (ie: vnc-800x600x8 5901/tcp) and the -geometry and -depth switches in
/etc/inetd.conf (ie: -geometry 800x600 -depth 8) and now you can connect with different
resolutions and screen depths. For every port higher you go in /etc/services you will
need to add a : to your ip in your vnc client along with a 1 or 2 etc. (ie: to connect
on port 5900 use 192.168.1.1, to connect on port 5901 use 192.168.1.1:1, port 5902 use
192.168.1.1:2 and so on). I hope this helps you out.
There is a bug in Feisty where when you connect your keyboard mappings are screwed up.
I was able to fix this with gconf-editor and hard code the mappings to model pc105 and
layout us and it fixed my vnc connections, but now when I log in with the client I get
an error wondering if it should use the X Settings or Gnome Settings. I tried adding
the proper settings to /etc/skel to fix this but that doesn't seem to be working. I
plan on fixing this with a new user creation script that copies the proper settings to
the users /home/user folder on creation.
> ----- Original Message -----
> From: Jim Kronebusch <jim at winonacotter.org>
> To: Jim Kronebusch <jim at winonacotter.org>, edubuntu-users at lists.ubuntu.com
> Sent: Monday, July 2, 2007 9:55:33 PM GMT+0100 Europe/Berlin
> Subject: Re: Howto Setup VNC with LTSP 5 (Edubuntu)
>
> On Mon, 2 Jul 2007 14:23:56 -0500, Jim Kronebusch wrote
> > Just wondering if anyone here has set LTSP 5 (I am using the Edubuntu 7.04
> > version) to allow login via VNC without a password and still use the proper
> > login windows (Not sure if it should call on ldm, gdm or XDMCP)?
> >
> > Thanks,
>
> I was able to get this set up using inetd and not xinetd as per instructions
> from the k12osn at redhat.com list.
>
> thanks,
> Jim
--
This message has been scanned for viruses and
dangerous content by the Cotter Technology
Department, and is believed to be clean.
More information about the edubuntu-users
mailing list