1. Transfer the TurboVNC rpm installer to your target server. The turbovnc rpm package is in sam:/u/cc/turbovnc-2.1.x86_64.rpm.

2. Change to "root" user. In your target server directory where turbovnc-2.1.x86_64.rpm is stored, run "rpm -ivh turbovnc-2.1.x86_64.rpm" to install the turbovnc.

3. Use "addusr" to add a user who will use the turbovnc to connect to the server later and "su - your_user_name" to go to the user directory.

4. Under the current user, run /opt/TurboVNC/bin/vncpasswd to setup the VNC password for this user.

5. Use VIM to open ~your_user_name/.vnc/xstartup.turbovnc file. Add

export NODEID=vnc:`echo $DISPLAY|cut -d\: -f2`

below the first two lines of codes and save the file (you can test if the "echo $DISPLAY|cut -d\: -f2" returns your current session number).

6. Change to "root" again. Use VIM to open /opt/TurboVNC/bin/vncserver file, set $enableHTTP = 0 and set $securityTypes = "VNC" and save the file.

7. Use VIM to open /etc/X11/xinit/Xclients and add ". /u/cc/usr/commonx11.sh" below the first two lines of the codes (below GSESSION and STARTKDE).

8. Change to "your_user_name" user again, run /opt/TurboVNC/bin/vncserver manually and make sure the turbovnc is running correctly.

9. Use "ps aux | grep Xvnc | grep Turbo | grep your_user_name" to find out the VNC session number and use "/opt/TurboVNC/bin/vncserver -kill your_vnc_session_number" to kill the test turbovnc session.

10. Then you should be able to use the "initctl start turbovnc VNC=your_vnc_session_num" to start a turbovnc session now.

setupTurboVNC (last edited 2017-03-01 01:10:03 by fuzzy)