I've started to set up a server at my house, where I eventually want to run it headless, and I can just VNC in from my other Desktop. I installed Ubuntu 10.10, setup remote desktop on the server, and from there was able to do any work remotely. That was nice. I turn the computer off at night, and the next day when I was going to work on it, I cannot VNC in anymore. One day passed, and now every time I try to use VNC it comes up with "Failed to connect to server" I also set a static IP address on the server too, so I know the address isn't changing every so often. I did it earlier, so I know I have it set up correctly, but when I restarted the computer, did some magical firewall get setup without my knowledge? Solution: The setup was done almost immediately after a fresh installation of 8.04 desktop on our office internal network. Objective: To have vncserver setup with gdm on the host so that a remote vnc connection to it will be greeted with a gdm login screen for the user to login. Clarification of terms used: Host - refers to the PC you are trying to install vncserver
on.
1. Get required packages installed On the host, run Code:
Code:
2. Enable XDMCP This is the part that is responsible for bring up the gdm login. Code:
Code:
Code:
Code:
Code:
Paste the following into the file and save: Code:
Code:
4. Connect from remote Because I added only_from = localhost in /etc/xinetd.d/Xvnc above, I will need to ssh tunnel and forward my remote port (see term clarification above, as this is actually my local PC that I working from) to the host (this is the 'remote' where vncserver is being installed). If you do not need this step (why not?), just remove the line. I use putty on Windows so just go to Connections >SSH >Tunnels
Then establish a normal ssh connection to the host or use my existing ssh connection. I use UltraVNC, so this is what I do: Open Viewer
5. Done The vnc viewer should open up and a gdm login screen presented
(with a Debian logo).
Have a Linux Problem
Linux Books
Linux Home: Linux System Administration Hints and Tips (c) www.gotothings.com All material on this site is Copyright.
|