1.第一種方法:使用geometry參數進行調整ubuntu
vncserver -geometry 1280x1024便可,以後經過window下vnc鏈接後的ubuntu分辨率即爲1280x1024了,注意這裏的X是小寫的x而不是*oracle
2.第二種方法:修改配置文件vncserversthis
[root@secdb ~]# vi /etc/sysconfig/vncservers
# The VNCSERVERS variable is a list of display:user pairs.
#
# Uncomment the line below to start a VNC server on display :1
# as my 'myusername' (adjust this to your own). You will also
# need to set a VNC password; run 'man vncpasswd' to see how
# to do that.
#
# DO NOT RUN THIS SERVICE if your local area network is
# untrusted! For a secure way of using VNC, see
# .spa
# VNCSERVERS="1:myusername"
# VNCSERVERARGS[1]="-geometry 800x600"
VNCSERVERS="1:root 2:oracle"
VNCSERVERARGS[1]="-geometry 1024x768"
VNCSERVERARGS[2]="-geometry 1024x768"rest
例如咱們能夠將最後一行內容調整爲以下
VNCSERVERARGS[2]="-geometry 800x600"server
重啓vncserver後,使用「192.168.1.17:2」登陸VNC便會獲得一個800x600的操做窗口,用戶是oracle。
[root@secdb ~]# /etc/init.d/vncserver restart
Shutting down VNC server: 1:root 2:oracle [ OK ]
Starting VNC server: 1:root 2:oracle [ OK ]
進程
4. 啓動vnc服務it
用戶能夠自定義啓動號碼如:登錄
vncserver :2 #注意:2前面必定要有空格。配置
殺死vncserver進程
vncserver -kill:1 #這裏你啓動vncserver時是什麼端口號要對應上。
PS:要切換到當前用戶才能夠殺死進程。