zoukankan      html  css  js  c++  java
  • VNC Viewer 设置屏幕分辨率

    1.第一种方法:使用geometry参数进行调整

    vncserver -geometry 1280x1024即可,之后通过window下vnc连接后的ubuntu分辨率即为1280x1024了,注意这里的X是小写的x而不是*

    2.第二种方法:修改配置文件vncservers

    [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
    # .

    # VNCSERVERS="1:myusername"
    # VNCSERVERARGS[1]="-geometry 800x600"
    VNCSERVERS="1:root 2:oracle"
    VNCSERVERARGS[1]="-geometry 1024x768"
    VNCSERVERARGS[2]="-geometry 1024x768"

    例如我们可以将最后一行内容调整为如下
    VNCSERVERARGS[2]="-geometry 800x600"

    重启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服务

    用户可以自定义启动号码如:

    vncserver :2       #注意:2前面一定要有空格。

    杀死vncserver进程

    vncserver -kill:1      #这里你启动vncserver时是什么端口号要对应上。

    PS:要切换到当前用户才可以杀死进程。

  • 相关阅读:
    Python内置函数(67)——zip
    Python内置函数(66)——vars
    Python内置函数(65)——type
    Python内置函数(64)——tuple
    Python内置函数(63)——super
    Python内置函数(62)——sum
    Python内置函数(61)——str
    Python内置函数(60)——staticmethod
    Hadoop初体验(续)--YARN
    Hadoop初体验
  • 原文地址:https://www.cnblogs.com/xuchunlin/p/10692957.html
Copyright © 2011-2022 走看看