message = '''NOTE:''' This is for Fedora-based systems ONLY.<br />Guidance may not work for Amahi 7 or greater. Sorry, but if you break your HDA we cannot provide support}}{{NeedsUpdate}}
'''NOTE: there is now a ''' The one-click [httphttps://www.amahi.org/apps/vnc VNC App]'''has been discontinued for Amahi 7 or greater. The reason is that it pulls a lot of packages, including desktop and that breaks DNS in Fedora.</div><br /div>
:'''NOTE:''' See [[TigerVNC]] for Amahi 8/9 (Fedora 21/23) guidance.__TOC__ = Using VNC to use a remote desktop in the HDA =
Using [http://realvnc.com/ VNC] is useful if:
There are various ways to get the server going in your HDA. All of them require the server software.
# Amahi [http://www.amahi.org/apps/VNC VNC]: one-click installapplication.# Manually as described below (notes may require some revision).
=== Manual Install ===
* Complete the steps in [[GUI_Install_for_Express_Disc|Express Disc Desktop]] guidance (Amahi 7 ONLY).
* As root, install the server:
== Method 1 ==
* Open a terminal, become root and install the VNC server (tigervnc-server) as stated in the Manual Install section.
When the install has completed, press ctrl-D to end the root session. Leave the terminal open, or open one now.
*The following commands are entered as '''User'''.
Starting applications specified in /home/user/.xauthority
Log file is /home/user/.vnc/host.localdomain:1.log
* You can edit the configuration files using your choice of editor. Nano is used below.
Press the Y key. The prompt will change, showing you the file name.
Press the enter key, this will store your change and exit Nano.
*The following commands are entered as '''Root'''.
* It does involve the dreaded CLI.
* Since my HDA does not get rebooted often, this is not a huge problem
== Ubuntu Method ==
This is just what I found on how to install a VNC for Ubuntu 12.04LTC after figuring out that TigerVNC (the above methods) do not work for Ubuntu. The method is copied from [http://coddswallop.wordpress.com/2012/05/09/ubuntu-12-04-precise-pangolin-complete-vnc-server-setup/ here]. This will result in the gnome GUI, not Unity.
* First we need to update our repositories and install gnome.
* Next we install VNC4Server. Follow the instructions.
sudo apt-get install vnc4server
* We need to test the VNC, and then close the session. In the process we are prompted for a password to use everytime we try to connect using our [[VNC| VNC client]].
vncserver
vncserver -kill :1
* We open the startup file that we need to edit to make gnome show up in the VNC, and not just a terminal:
cp .vnc/xstartup .vnc/xstartup.bak
nano .vnc/xstartup
* We edit the file to uncomment the second line, and add "gnome-session -session=gnome-classic &". So it will look like this:
{{Code|Code=
#!/bin/sh
# Uncomment the following two lines for normal desktop:
y (for confirmation that yes, we do want the file to be overwritten with the new information)}}
* To start the VNC just type the following into a terminal (using something like [[Putty|Key-based SSH Logins With Putty]]. This will start a new VNC session.
vncserver
= General Instructions =
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]