Ask Your Question

Revision history [back]

If your Win machine and your F18 machine are both behind a firewall, then VNC is pretty easy. Here's the quick guide:

  1. Install VNCserver ('yum install vncserver')
  2. Edit /etc/sysconfig/vncservers on the Linux box to add the user/display number you want
  3. Create an xstartup file for that user: ~/.vnc/xstartup - it should contain the kickoff line for their chosen environment, e.g. 'startkde' or whatever.
  4. Use the vncpasswd command to set that user's vnc access password
  5. Open the vnc port on the Linux firewall (if running), remember it's port 590X where X is the screen number
  6. Start vncserver on your Linux box with 'chkconfig vncserver on' followed by 'service vncserver start'.
  7. Install tightvnc, realvnc or your chosen package on Windwos, run it, and connect to your Linux machine by its hostname/ip and screen number

Seems complicated, but it gives you a desktop session over vnc. If you're using this alongside the ssh server stuff proposed in other answers, then you can forward your vnc session port over the ssh session. Then you don't have to expose your vnc port on your Linux firewall.

If your Win machine and your F18 machine are both protected from the internet, i.e. they're both behind a firewall, firewall or router which does firewalling, then VNC is pretty easy. Here's the quick guide:

  1. Install VNCserver on your Fedora machine ('yum install vncserver')
  2. Edit /etc/sysconfig/vncservers on the Linux box to add the user/display user and display number you wantwant to use
  3. Create an xstartup file for that user: ~/.vnc/xstartup - it should contain the kickoff line for their chosen environment, e.g. 'startkde' or whatever.
  4. Use the vncpasswd command to set that user's vnc access password
  5. Open the vnc port on the Linux firewall (if running), remember it's port 590X where X is the screen number
  6. Start vncserver on your Linux box with (as root) 'chkconfig vncserver on' followed by 'service vncserver start'.
  7. Install tightvnc, realvnc or your chosen package on Windwos, run it, and connect to your Linux machine by its hostname/ip and screen number

Seems It might seem complicated, but each step is pretty straightforward and at the end it gives you a desktop session over vnc. VNC. If you're using this alongside the ssh server stuff proposed in other answers, then you can forward your vnc session port over the ssh session. Then you don't have to expose your vnc port on your Linux firewall.