Changes

From Amahi Wiki
Jump to: navigation, search
58 bytes removed ,  15:37, 5 April 2014
no edit summary
{{NeedsUpdate}}
 
The [[WebVNC]] application sets up a web page to access a Java applet for VNC connections. VNC is graphical remote control desktop software. VNC allows you to connect to a desktop on the the Amahi server from a remote computer via a browser. You must have a desktop session open on your HDA to be able to open a WebVNC session.
# Click the install icon to install the WebVNC server package on your HDA
'''NoteNOTE:''' ''You must have a desktop session open'' on your HDA to be able to open a WebVNC session. If you have a headless HDA server, see below.
==Setup VNC Server==
Sorry, some manual work is needed to run the server:
# 1. Log into the computer running the HDA as a normal user# 2. Launch a command line/terminal session (From the GNOME desktop, select Applications > System Tools > Terminal)# 3. Login as super user:<br />{{Code| su -}}
:password: ''enter root password''<br /><br />
4. Change the permissions of /etc/sysconfig/vncservers to allow editing with the following command:<br />
{{Code| chmod 777 /etc/sysconfig/vncservers}}5. Open the file /etc/sysconfig/vncservers with a text editor (Applications > Accessories > gedit Text Editor on the GNOME desktop) and add the following two lines to the bottom of the file:<br /><br />
VNCSERVERS="0:''yourusername''"
VNCSERVERARGS[0]="-geometry 1024x768 -depth 16"<br /><br />'''NOTE:''' ''yourusername'' is the desktop user you use to login to your HDA desktop. Make sure there is no # comment symbol in front of your entries. This entry will create a 1024 x 768 desktop with 16M colors on your remote machine.<br /><br />:You can set the desktop resolution to any value you want -- see below. You can also setup sessions for multiple users and computers. More detailed instructions are available [http://www.g-loaded.eu/2005/11/10/configure-vnc-server-in-fedora/ here].<br /><br />
6. Change the file permissions back:<br />
{{Code| chmod 244 /etc/sysconfig/vncservers}}
== Turn on Desktop Sharing ==
First, as root, make a copy of your WebVNC webpage configuration in your user folder for EACH desired resolution, with the following commands:
{{Code| cd /var/hda/web-apps/webvnc/html cp index.html /home/%USER%/.amahi.webvnc.800x600.index.html cp index.html /home/%USER%/.amahi.webvnc.1024x768.index.html cp index.html /home/%USER%/.amahi.webvnc.1280x1024.index.html}}
You will need to edit each of these files to change the size of the VNC window inside the web page. The width of the window should match the width of your desktop, however the height of the window should have 22px added to the height of the desktop in order to account for the WebVNC menu. For example, for the resolution 800x600, the html file will look like this:
Next, remove the original index.html file and create a symlink to the appropriate new file:
{{Code| rm index.html ln -s /home/%USER%/.amahi.webvnc.800x600.index.html index.html}}
Now you need a script in order to change the resolution of the desktop AND update the symlink to the correct configuration. Create a file in /home/%USER%/Scripts/ for each desired resolution, for example, amahi.webvnc.reschange.800x600.sh containing the following, making sure to enter your sudo password and the desired resolution:
:To delete:
{{Code| ~/.gnome2/keyrings/default.keyring}}
:or backup:
{{Code| mv ~/.gnome2/keyrings/default.keyring ~/.gnome2/keyrings/default.keyring.bak}}
== Headless Servers ==
You need to modify you xorg.conf to emulation a monitor.
{{Code| cd /etc/X11/ nano xorg.conf}}
:save it as xorg.conf.bak
{{Code| nano xorg.conf}}
:replace everything with
:save and close xorg.conf
{{Code| nano /boot/grub/grub.conf}}
:save it as gru
b.conf.bak
{{Code| nano /boot/grub/grub.conf}}
:add above title Fedora
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash nomodeset"
12,424

edits