BioComputing
July 22nd, 2009, 10:33 AM
I found a working solution (this works 100 % on fresh instalation):
Ubuntu menu:
"System" -> "Administration" -> "Login window"
On "Remote" tab:
- choose: "Same as local"
- button: "Configure XDMCP" and uncheck "honor indirect request"
1.) install xinetd, tight vncserver & viewer:
sudo apt-get update
sudo apt-get install xinetd
sudo apt-get install tightvncserver
sudo apt-get install xtightvncviewer
------------------
2.) Start vncserver and enter vnc password:
sudo vncserver :1
------------------
3.) Stop vncserver:
sudo vncserver -kill :1
------------------
4.) Open GDM.conf in editor:
sudo gedit /etc/gdm/gdm.conf
...make sure these two lines in [XDMCP] section are uncommented and looks like this:
[XDMCP]
Enabled=true
Port=177
-------------------
5.) Open "/etc/services" in editor:
sudo gedit /etc/services
To add vnc to services list, add this line at the end of file:
vnc 5901/tcp # Xvnc
-------------------
6.) To add vnc service to xinetd:
sudo gedit /etc/xinetd.d/vnc
...Add following lines:
# description: The vnc server provides remote desktop connections
#
service vnc
{
disable = no
socket_type = stream
protocol = tcp
wait = no
user = nobody
server = /usr/bin/Xvnc
server_args = :1 -inetd -once -query localhost -depth 24 -geometry 1024x768 -ac
}
-------------------
7.) Reboot server:
sudo reboot
-------------------
At last! Remote desktop works! Try login from other computer with any VNC client (I'm using RealVNC VNC viewer free edition on MS Windows Vista) and you'l get GDM login screen. For example, if your ubuntu server is at 192.168.0.8 enter this into vnc viewer: 192.168.0.8:5901
Ubuntu menu:
"System" -> "Administration" -> "Login window"
On "Remote" tab:
- choose: "Same as local"
- button: "Configure XDMCP" and uncheck "honor indirect request"
1.) install xinetd, tight vncserver & viewer:
sudo apt-get update
sudo apt-get install xinetd
sudo apt-get install tightvncserver
sudo apt-get install xtightvncviewer
------------------
2.) Start vncserver and enter vnc password:
sudo vncserver :1
------------------
3.) Stop vncserver:
sudo vncserver -kill :1
------------------
4.) Open GDM.conf in editor:
sudo gedit /etc/gdm/gdm.conf
...make sure these two lines in [XDMCP] section are uncommented and looks like this:
[XDMCP]
Enabled=true
Port=177
-------------------
5.) Open "/etc/services" in editor:
sudo gedit /etc/services
To add vnc to services list, add this line at the end of file:
vnc 5901/tcp # Xvnc
-------------------
6.) To add vnc service to xinetd:
sudo gedit /etc/xinetd.d/vnc
...Add following lines:
# description: The vnc server provides remote desktop connections
#
service vnc
{
disable = no
socket_type = stream
protocol = tcp
wait = no
user = nobody
server = /usr/bin/Xvnc
server_args = :1 -inetd -once -query localhost -depth 24 -geometry 1024x768 -ac
}
-------------------
7.) Reboot server:
sudo reboot
-------------------
At last! Remote desktop works! Try login from other computer with any VNC client (I'm using RealVNC VNC viewer free edition on MS Windows Vista) and you'l get GDM login screen. For example, if your ubuntu server is at 192.168.0.8 enter this into vnc viewer: 192.168.0.8:5901