Difference between revisions of "VNC"
Line 88: | Line 88: | ||
Replace <username> with the username that you want to automatically login to the GNOME desktop. | Replace <username> with the username that you want to automatically login to the GNOME desktop. | ||
+ | |||
+ | If you want to have a script help you to accomplish the task, download [http://wiki.amahi.org/images/a/a3/AutomaticLogin.rb AutomaticLogin.rb] and run the script as root. | ||
+ | |||
+ | Login as root then run the following commands: | ||
+ | <code> | ||
+ | cd /tmp | ||
+ | wget http://wiki.amahi.org/images/a/a3/AutomaticLogin.rb | ||
+ | chmod +x AutomaticLogin.rb | ||
+ | ./AutomaticLogin.rb | ||
+ | </code> | ||
+ | |||
+ | After that follow the prompts to guide you in the setup. | ||
= Troubleshooting for Vista = | = Troubleshooting for Vista = | ||
This helpful page has helped with [http://www.windowsreference.com/internet-explorer/windows-has-blocked-this-software-because-it-cant-verify-the-publisher/ blocking VNC] | This helpful page has helped with [http://www.windowsreference.com/internet-explorer/windows-has-blocked-this-software-because-it-cant-verify-the-publisher/ blocking VNC] |
Revision as of 01:06, 23 May 2009
Contents
Using VNC to use a remote desktop in the HDA
Using VNC is useful if:
- You would like a Linux desktop to the HDA
- You would like to use a GUI to configure printer(s)
- You enjoy using the Linux desktop
What you need
- A server
- A client
Client
- For Windows
- For MAC
- For Linux, you have the vncviewer package, available in most, if not all distros
Remember when you start the server will tell you which session it is running (like :1, :2 ...), so your settin like this:
hda:1
Server
To start the server in your HDA, you need the vnc-server rpm package:
yum -y install vnc-server
When that is installed, type this at the command line
vncserver
The first time it runs it will ask for setting up a password. You can also specify a size, which I typically do a hair smaller than the desktop I plan to use it from. Example for 1280x1024:
vncserver -geometry 1250x1000
To make the VNC server start automatically after a reboot use this command as root:
chkconfig vncserver on
More detailed instructions are available here.
Running the Full Gnome Desktop
In order to run the full gnome desktop in vnc, you have to edit this file in the home directory of the user you want to run vnc on:
First kill the VNC session: vncserver -kill :1
.vnc/xstartup
and make sure it has these two lines uncommented, per the comment there:
# Uncomment the following two lines for normal desktop: unset SESSION_MANAGER exec /etc/X11/xinit/xinitrc
Now restart the vncserver: vncserver
I use remote desktop viewer, hit the connect button and type hda:1
That should be it.
Killing the Server
To kill the server in session :1, you can do:
vncserver -kill :1
Setup Automatic Login
Automatic login is useful if you want to run a headless HDA and enjoy the benefits that VNC provides without having to login from the command line via SSH and manually start X.
Add the following to the file /etc/gdm/custom.conf
#Enable Auto login to the GNOME desktop [daemon] AutomaticLoginEnable=true AutomaticLogin=<username> TimedLoginEnable=true TimedLogin=<username> TimedLoginDelay=0
Replace <username> with the username that you want to automatically login to the GNOME desktop.
If you want to have a script help you to accomplish the task, download AutomaticLogin.rb and run the script as root.
Login as root then run the following commands:
cd /tmp
wget http://wiki.amahi.org/images/a/a3/AutomaticLogin.rb
chmod +x AutomaticLogin.rb
./AutomaticLogin.rb
After that follow the prompts to guide you in the setup.
Troubleshooting for Vista
This helpful page has helped with blocking VNC