Changes

From Amahi Wiki
Jump to: navigation, search
4,721 bytes added ,  01:11, 8 May 2016
no edit summary
{{MessageBox|backgroundcolor = Using #FBB|image =Warning.png|heading =WARNING|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}}  ----  <div style="border: 1px solid #A3B1BF; padding: .8em 1em; background-color: #E6F2FF; margin: 0px 1em;">'''NOTE:''' The one-click [https://www.amahi.org/apps/vnc VNC to use App] has been discontinued for Amahi 7 or greater. The reason is that it pulls a remote lot of packages, including desktop and that breaks DNS in the HDA Fedora.</div><br /> :'''NOTE:''' See [[TigerVNC]] for Amahi 8/9 (Fedora 21/23) guidance.__TOC__ = VNC remote =
Using [http://realvnc.com/ VNC] is useful if:
Download the client software and install:
* Windows: [http://realvnc.comRealVNC], [http:/ For Windows/www.uvnc.com UltraVNC], [http://www.tightvnc.com TightVNC]* MAC: [http://sourceforge.net/projects/chicken/ Chicken], [http://cotvnc.sourceforge.net/ For MACChicken of the VNC](do not use internal vnc client as there are some issues)* For Linux, you have the vncviewer package, available in most, if not all distros = Server: Installation=  * To start the server in your HDA. For Fedora 12, you need install tigervnc-server rpm package: * From do the following as [[Open_Terminal_as_root|'''root''' ]] user: yum -y install tigervnc-server xinetd chkconfig vncserver off service vncserver stop
* Create /etc/gdm/custom.conf file and add the following: #GDM configuration storage [xdmcp] Enable=true [chooser] [security] DisallowTCPServer Installation =false [debug]
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] application.
# 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).
* Create /etc/xinetd.d/vnc1024 file and add As root, install the followingserver: service vnc1024 { disable = no socket_type = stream protocol = tcp group = tty wait = no user = nobody server = /usr/bin/Xvnc server_args = -inetd -query localhost -geometry 1024×768 -depth 16 -once -fp /usr/share /X11/fonts/misc -securitytypes=none }
* Now restart the xinetd service service xinetd restart yum -y install tigervnc-server
== Method 1 ==* Run your Open a terminal, become root and install the VNC Client and enter your HDA IP addressserver (tigervnc-server) as stated in the Manual Install section. You should now see your HDA Desktop login screen. If you do not When the install has completed, a reboot may be requiredpress ctrl-D to end the root session. This can be done via Leave the dashboard terminal open, or by executing the following: reboot open one now.
*The following commands are entered as '''User'''.
<big>'''More detailed instructions are available [http://www* Type vncpasswd and press enter.g-loaded The system will prompt you for a password.eu/2005/11/10/configure-vnc-server-in-fedora/ here]Type a password and press the enter key. The system will prompt you to verify the password. Type the password a second time and press the enter key.'''</big>
= Running * Type vncserver and press the Full Gnome Desktop =enter key. The system will create the configuration files. You should see output similar to this: xauth: creating new authority file /home/user/.xauthority New 'host.localdomain:1 (user)' desktop is host.localdomain:1 Creating default startup script /home/user/.vnc/xstartup Starting applications specified in /home/user/.xauthority Log file is /home/user/.vnc/host.localdomain:1.log
In order * You can edit the configuration files using your choice of editor. Nano is used below. Note that when "user" is shown, you need to run enter your user name. * Type nano /home/user/.vnc/xstartup and press the enter key. Nano will open the full file. Find the following line: twm & Change that line to read: exec gnome -session & This change will open the VNC display with a Gnome desktop , even if the server is starting in vncInit 3 by default. Press ctrl-X to exit Nano. You will see the prompt at the bottom "Save modified buffer (ANSWERING "No" WILL DESTROY CHANGES) ? Press the Y key. The prompt will change, showing you have to edit this the file in name. Press the home directory of the user you want to run vnc on:enter key, this will store your change and exit Nano.
First kill the VNC session: vncserver -kill :1*The following commands are entered as '''Root'''.
.vnc/xstartup* Type su and press the enter key followed by the root password
You can edit the configuration files using your choice of editor. Nano is used below.Note that when "username" is shown, you need to enter your user name. * Type nano /etc/sysconfig/vncservers and make sure it has these two press the enter key. Nano will open the file. Find the following lines uncommented, per the comment there: '#' VNCSERVERS="1:username" '#' VNCSERVERARGS[1]="-geometry 800x600 -nolisten tcp -localhost"
<pre>* Uncomment both lines by removing the # at the beginning of the lines. # Uncomment Edit the following two lines for normal desktopso they appear as follows: VNCSERVERS="1:username"unset SESSION_MANAGER VNCSERVERARGS[1]="-geometry 1024x768 -nolisten tcp"exec /etc/X11/xinit/xinitrc Enter your username in place of "username". After "geometry", you can enter any resolution you desire. You can come back and change this if necessary.</pre> Press ctrl-X to exit Nano. You will see the prompt at the bottom "Save modified buffer (ANSWERING "No" WILL DESTROY CHANGES) ? 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.
Now restart * Finally, type chkconfig vncserver on and press the vncserver: vncserverenter key. This will make the VNC server start when the computer starts.
I use remote desktop viewer* Press ctrl-D to end the root session, hit and then press ctrl-D again to close the connect button and type hda:1<br>That should be itterminal.
= Killing * That's it - Run your VNC Client and enter hda:1 as the Server =host/IP address. You should now see your HDA Desktop screen.*If you are interested in more security for your VNC connection, check the link listed below under "General Instructions"
To kill * Repeat the server in configuration for each user you wish to be able to connect via VNC.* Note you can have displays for users 1-9 and each will connect to their VNC session :1at port 590n (some VNC clients 'know' the 590 part and only have you enter n). Make certain that you have forwarded the correct port(s), or the range 5901 through 5909.* Add -localhost to options if you can do:are connecting through a ssh tunnel or only locally. This adds some security.
== Method 2 ==* To start the server in your HDA, you need install tigervnc-server rpm package:* From the '''root''' user: yum -y install xinetd chkconfig vncserver off service vncserver -kill stop* Create /etc/gdm/custom.conf file and add the following:1 #GDM configuration storage [xdmcp] Enable= Setup Automatic Login true [chooser] [security] DisallowTCP=false [debug]Automatic login is useful if * Create /etc/xinetd.d/vnc1024 file and add the following (you want to run a headless HDA can change the screen resolution by changing the geometry setting): service vnc1024 { disable = no socket_type = stream protocol = tcp group = tty wait = no user = nobody server = /usr/bin/Xvnc server_args = -inetd -query localhost -geometry 1024×768 -depth 16 -once -fp /usr/share/X11/fonts/misc -securitytypes=none }* Edit /etc/services and enjoy comment out the benefits that two lines as listed below: #vnc-server 5900/tcp # VNC provides without having to login from the command line via SSH and manually start X.Server #vnc-server 5900/udp # VNC Server* Add this line below the following to two lines you commented out and save the file changes: vnc1024 5900/etctcp # VNC and GDM* Now restart the xinetd service service xinetd restart* Run your VNC Client and enter your HDA IP address for host/gdm/customIP address. You should now see your HDA Desktop login screen. If you don't see the login screen, a reboot of the HDA may be required.conf This can be done via the dashboard or by executing the following as '''root''' user: reboot now
<pre>#Enable Auto login to the GNOME desktop[daemon]AutomaticLoginEnable=trueAutomaticLogin=<username>TimedLoginEnable=trueTimedLoginMethod 3 (the cpg method) =<username>TimedLoginDelay=0</pre>
Replace <username> with * Every time the username that you want to automatically login HDA is rebooted, when VNC is needed, ssh to the GNOME desktopHDA* The first time without do: vncserver -geometry 1550x1100* After the first time, I type vncs.I have an alias in ~/.bashrc: alias vncs='vncserver -geometry 1550x1100 &> /dev/null &';
If you want to have a script help you to accomplish the task, download [httpNotes://wiki.amahi.org/images/a/a3/AutomaticLogin.rb AutomaticLogin.rb] and run the script as root (directions to accomplish this are below).
Login as root then run * Why that resolution? That fits my monitors with the following commands:<pre>cd /tmpwget http://wiki.amahiVNC window and frame enough to not display scrollbars and move around nicely.org/images/a/a3/AutomaticLogin.rbChange at will!chmod +x AutomaticLogin* It does involve the dreaded CLI.rb./AutomaticLogin.rb</pre>* Since my HDA does not get rebooted often, this is not a huge problem
Then follow the prompts to guide you = General Instructions =More detailed instructions are available [http://www.g-loaded.eu/2005/11/10/configure-vnc-server-in the setup-fedora/ here].
= 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]
12,424

edits