next up previous contents
Next: VNC Passwd Up: VNC Previous: VNC Client   Contents

VNC Logout

  1. 使用 VNC 工作時登出 (logout),不是真的登出,而除刪除 session。因此畫面卡住無法操作,不會出現讓用戶登入的畫面。解決此問題,必須以 ssh 登入主機重新啟動該 VNC。
    [root@dywH ~]# ssh kvm70@dywftp
    kvm70@dywftp's password: 
    Warning: No xauth data; using fake authentication data for X11 forwarding.
    [kvm70@dywftp ~]$ vncserver -kill :70
    Killing Xvnc process ID 26151
    [kvm70@dywftp ~]$ vncserver :70
    
    New 'dywftp:70 (kvm70)' desktop is dywftp:70
    
    Starting applications specified in /home/kvmv7/kvm70/.vnc/xstartup
    Log file is /home/kvmv7/kvm70/.vnc/dywftp:70.log
    
  2. 如果管理者 root 要重新啟動某一用戶 vnc,必須切換成該用戶的身份。
    [root@dywftp ~]# vncserver -kill :70
    Killing Xvnc process ID 25920
    [root@dywftp ~]# sudo -u kvm70 vncserver :70
    
    New 'dywftp:70 (kvm70)' desktop is dywftp:70
    
    Starting applications specified in /home/kvmv7/kvm70/.vnc/xstartup
    Log file is /home/kvmv7/kvm70/.vnc/dywftp:70.log
    



2017-05-01