Re: HOWTO: Set up VNC server with resumable sessions
Thanks, this works fine on Hardy 8.04.01 after a fresh install
Originally Posted by
popie
Here are the instructions I use, and they work in v8.04.
VNC Server w/Resumable Sessions on Ubuntu
Works in Ubuntu 7.04, 7.10, 8.04, and Mint 4 (Daryna)
Make these changes while logged into gnome:
- Go to System -> Administration -> Login Window (General tab) and uncheck "Disable multiple logins for a single user."
- Now go to the Remote tab. Change Style: to "Same as Local"
- Still on the Remote tab, click "Configure XDMCP," then uncheck "Honor indirect requests."
- Enable Universe repositories in Synaptic. (this wasn't necessary in Ubuntu 8.04)
The remaining changes can be made while SSH'd into the system, or in a terminal window:
- Edit /etc/gdm/gdm.conf-custom
Code:
sudo nano /etc/gdm/gdm.conf-custom
add the following two lines to the existing [security] and [xdmcp] sections:
Code:
[security]
DisallowTCP=false
[xdmcp]
Enable=true
Code:
sudo apt-get install vnc4server xinetd
Code:
sudo vncpasswd /root/.vncpasswd
- Create a new file Xvnc to add the vnc service to xinetd:
Code:
sudo nano /etc/xinetd.d/Xvnc
Paste these contents into the file:
Code:
service Xvnc
{
type = UNLISTED
disable = no
socket_type = stream
protocol = tcp
wait = yes
user = root
server = /usr/bin/Xvnc
server_args = -inetd :1 -query localhost -geometry 1024x768 -depth 16 -once -fp /usr/share/fonts/X11/misc -DisconnectClients=0 -NeverShared passwordFile=/root/.vncpasswd -extension XFIXES
port = 5901
}
That's it. I've used these exact instructions on three Ubuntu 8.04 installs without a hitch, as well as 7.04, 7.10, and Mint 4. Good luck.
Thanks, this works fine on Hardy 8.04.01 after a fresh install
No longer participating......
Bookmarks