Differences between revisions 9 and 10
Revision 9 as of 2017-02-28 00:27:10
Size: 1918
Editor: thog
Comment:
Revision 10 as of 2017-03-01 01:10:03
Size: 1934
Editor: fuzzy
Comment:
Deletions are marked like this. Additions are marked like this.
Line 5: Line 5:
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. 
 If you already have a user use "su - your_user_name" to change to your user directory and "rm -rf .vnc/" to delete the user's current vnc settings.
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.

 .
If you already have a user use "su - your_user_name" to change to your user directory and "rm -rf .vnc/" to delete the user's current vnc settings.
Line 10: Line 11:
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).
 if you are in the abe14 server, you have to add an extra line below the above code. The extra line is "export CCDIR=/u/your_cc_company/" (e.g. "export CCDIR=/u/ccxtreme/" for the X2X company). 
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).

 .
if you are in the abe14 server, you have to add an extra line below the above code. The extra line is "export CCDIR=/u/your_cc_company/" (e.g. "export CCDIR=/u/ccxtreme/" for the X2X company).

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.

  • If you already have a user use "su - your_user_name" to change to your user directory and "rm -rf .vnc/" to delete the user's current vnc settings.

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).

  • if you are in the abe14 server, you have to add an extra line below the above code. The extra line is "export CCDIR=/u/your_cc_company/" (e.g. "export CCDIR=/u/ccxtreme/" for the X2X company).

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)