VNC Viewer 调节屏幕分辨率 和 字体

前言

如题,就是想要调解VNC Viewer连接的Ubuntu desktop的屏幕分辨率和字体。

分辨率

很好调解,只需要一个参数 -geometry,具体如下:

vncserver :1 -geometry 1920x1080

就可以把分辨率调整为 1920x1080。

字体

这个要难点。因为我的system settings打不开(具体情况见:VNC Viewer 远程连接 Ubuntu 不显示桌面,也没有菜单栏(menu)(程序边栏)),所以没办法在system setting里面调整。

参考:System font is too smallHow to install Unity Tweak Tool in ubuntu,需要下载unity-tweak-tool,运行:

sudo apt-get install unity-tweak-tool

然后在terminal中打开,即运行:

unity-tweak-tool

弹窗报错:

com.canonical.indicator.appmenu.hud
In order to work properly, Unity Tweak Tool recommends you install the necessary packages

然后参考Missing Schema Error In Unity Tweak Tool?,安装相关的package,即运行:

sudo apt-get install indicator-appmenu

然后报错:

Error: schema com.canonical.indicator.appmenu.hud not installed

然后又运行:
sudo apt-get install hud

又还是报错。

最后找到正确的参考:Unity Tweak tool missing schema

如下:

Hi, I did an online update to 13.10 and had the same problem. After searching online and checking Synaptic, I finally decided to try “Missing recommended packages” in Synaptic Custom Filters and installed them all. “Hey Presto!” Unity Tweak Tool works. If you don’t use Synaptic the steps are: 1. “sudo apt-get install synaptic” in terminal 2. Open Synaptic from the dash 3. Click on Custom Filters then Missing Recommended Packages 4. Highlight all and right click mark for installation 5. Click apply on the toolbar. Not very scientific but it worked for me.

I usually keep Synaptic on the Unity Launcher. Good Luck

具体指令:

sudo apt-get install synaptic
sudo synaptic

然后在Custom Filters-> Missing Recommends中,我基本把所有的带 Ubuntu 图标的package,都mark installation,然后apply了。(我看到docker,和docker.io 也在这个list里面,不过没有Ubuntu图标,还好,我反正将二者排除了。因为我之前不是用apt-get安装的docker。)

截图如下:
在这里插入图片描述

这时候再次在命令行中输入:
unity-tweak-tool,就可以打开了,截图如下:
在这里插入图片描述

补充

但是gedit的font,只能在gedit内的preference设置。
(看来这个unity-tweak-tool只能修改系统的字体。)

小结

2020年2月12日12:19:37

从早上8点到现在,都是在搞这个vnc,太麻烦了。
幸好最后还是解决了。

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值