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:要切换到当前用户才能够杀死进程。