Changes

From Amahi Wiki
Jump to: navigation, search
2,549 bytes added ,  03:35, 29 March 2011
Updated Method 1
== Method 1 ==
* To start 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'''. * Type vncpasswd and press enter. The system will prompt you for a password. 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. * Type vncserver and press the 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  * You can edit the configuration files using your HDAchoice of editor. Nano is used below. Note that when "user" is shown, you need install tigervncto enter your user name. * Type nano /home/user/.vnc/xstartup and press the enter key. Nano will open the 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 rpm package:is starting in Init 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 the file name. Press the enter key, this will store your change and exit Nano.  * From the The following commands are entered as '''rootRoot''' . * 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. chkconfig vncserver on * Edit Type nano /etc/sysconfig/vncservers and change press the enter key. Nano will open the file. Find the following lines: '#' VNCSERVERS="1:username" '#' VNCSERVERARGS[1]="-geometry 800x600 -nolisten tcp -localhost" * Uncomment both lines by removing the # at the beginning of the lines. Edit the lines so they appear as follows (username is your linux user for the VNC session): VNCSERVERS="01:username" VNCSERVERARGS[01]="-geometry 1024x768 -nolisten tcp" 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. 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. * Finally, type chkconfig vncserver on and press the enter key. This will make the VNC server start when the computer starts. * Press ctrl-D to end the root session, and then press ctrl-D again to close the terminal. * That's it - Run your VNC Client and enter hda:1 as the 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" * Repeat the 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 at port 590n (some VNC clients 'know' the 590 part and only have you enter n)* Add -localhost to options if you are connecting through a ssh tunnel or only locally. More secure* Run vncpasswd for each user in VNCSERVERS= list; this performs the initial user setup.* Start and stop vncserver to initialize vnc for each configured user service vncserver start service vncserver stop* Edit /home/username/.vnc/xstartup and change the end of the file: twm &To: exec gnome-session &* Now finally start vncserver for real! service vncserver start* Run your VNC Client and enter hda:1 as the host/IP address. You should now see your HDA Desktop screenThis adds some security.
== Method 2 ==
7

edits