cmd命令調分辨率,linux vnc怎么改參數,修改VNC分辨率大小

 2023-10-04 阅读 29 评论 0

摘要:1.第一種方法:使用geometry參數進行調整使用man命令獲得關于geometry參數的描述[root@secdb ~]# man vncservercmd命令調分辨率、……-geometry widthxheightSpecify the size of the desktop to be created. Default is 1024x768.……vnc viewer調整分辨率,可見&

1.第一種方法:使用geometry參數進行調整

使用man命令獲得關于geometry參數的描述

[root@secdb ~]# man vncserver

cmd命令調分辨率、……

-geometry widthxheight

Specify the size of the desktop to be created. Default is 1024x768.

……

vnc viewer調整分辨率,可見,默認的分辨率是1024x768,我們可以使用這個參數對分辨率進行調整。

例如,我們需要將分辨率調整到800x600

[root@secdb ~]# vncserver -geometry 800x600

New 'secdb:5 (root)' desktop is secdb:5

linux分辨率不適應屏幕。Starting applications specified in /root/.vnc/xstartup

Log file is /root/.vnc/secdb:5.log

此時使用“192.168.23.102:5”登錄VNC便會得到一個800x600的操作窗口。

其他分辨率調整請自行嘗試。

vnc怎么調整窗口大小。2.第二種方法:修改配置文件vncservers

[root@secdb ~]# vi /etc/sysconfig/vncservers

# The VNCSERVERS variable is a list of display:user pairs.

#

linux啟動vnc命令、# 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.

vnc如何調整屏幕大小,#

# DO NOT RUN THIS SERVICE if your local area network is

# untrusted!? For a secure way of using VNC, see

# .

Linux怎么調整vnc的分辨率、# VNCSERVERS="1:myusername"

# VNCSERVERARGS[1]="-geometry 800x600"

VNCSERVERS="1:root 2:oracle"

VNCSERVERARGS[1]="-geometry 1024x768"

修改vnc遠程桌面分辨率、VNCSERVERARGS[2]="-geometry 1024x768"

例如我們可以將最后一行內容調整為如下

VNCSERVERARGS[2]="-geometry 800x600"

重啟vncserver后,使用“192.168.23.102: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? ]

3.小結

兩 種修改方法各有利弊,請根據具體環境進行調整。使用第一種方法操作簡單,影響范圍小,因為該方法是通過單獨啟動vnc進程來提供服務的,但是容易在系統中 遺留過多的vnc進程;第二種方法是通過調整VNC默認分辨率的手段實現的,實現集中管理,但存在因分辨率調整過高導致客戶端無法使用的問題。

版权声明:本站所有资料均为网友推荐收集整理而来,仅供学习和研究交流使用。

原文链接:https://808629.com/118719.html

发表评论:

猜你喜欢

本站为非赢利网站,部分文章来源或改编自互联网及其他公众平台,主要目的在于分享信息,版权归原作者所有,内容仅供读者参考,如有侵权请联系我们删除!

Copyright © 2022 86后生记录生活 Inc. 保留所有权利。

底部版权信息