VNC manage Commands

This section describes the following commands, which you can use to manage your VNC session:

  • Set your VNC session password using vncpasswd.

  • Start a session using vncserver_once.

  • Check you session status using vncfinger.

  • On a non-HMDC server, check your connection status using ps.

  • Terminate a frozen or nonfunctional session using vnccleanup.

vncpasswd

Unless you use the HMDC Easy Connection script to connect to the RCE, your VNC client prompts you for a password when connecting to a session. This VNC session password is separate from the login account password required when you log in to the server. If you use the Easy Connection script, the script sets your VNC session password to your login account password.

On HMDC systems, the command vncserver_once sets your VNC session password to your login account password. On non-HMDC systems, the command vncserver prompts you to create a session password.

If you do not know your VNC session account password or if you choose to change it, type the command vncpasswd in the SSH connection window as follows:

> vncpasswd
Password: <new password>
Verify: <new password>

vnccleanup

To terminate a frozen or non-functional VNC session type the following command:

> vnccleanup

You will receive the following messages:

WARNING: This will end your current session. If you have unsaved work, 
WARNING: it may be lost.
Would you like to continue? [y/n]: y
*** Shutting down VNC session...Killing Xvnc process ID 4331...done
*** Shutting down gconfd-2...done
*** Shutting down bonobo...done
*** Shutting down GNOME keyring daemon...done
Remote access session has been cleaned up. 
You should now be able to start a new session.

Now you can connect to a new session of the RCE.

vncserver_once

To start a new session on a VNC server, log in using an SSH utility and then type the command vncserver_once. For example:

> vncserver_once
3

In this example, a user created a new VNC session and the system assigned session number 3 to that user.

vncfinger

To find your session number on a VNC server, use the command vncfinger to list the active VNC sessions and the username that owns each session. For example:

> vncfinger

Username VNC Session
dho 4
eray 3
hstoll 2
olau 5
svanderh 1

ps

To find your session number on a non-VNC server, use the command ps as follows:

> ps -fu `whoami` | grep Xvnc

user 24904 1 0 Jul19 ? 00:00:00 Xvnc :1 –desktop login.hmdc.harvard.edu:1X1

In this example, the session number is 1.


  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值