前言
如题,就是想要调解VNC Viewer连接的Ubuntu desktop的屏幕分辨率和字体。
分辨率
很好调解,只需要一个参数 -geometry
,具体如下:
vncserver :1 -geometry 1920x1080
就可以把分辨率调整为 1920x1080。
字体
这个要难点。因为我的system settings打不开(具体情况见:VNC Viewer 远程连接 Ubuntu 不显示桌面,也没有菜单栏(menu)(程序边栏)),所以没办法在system setting里面调整。
参考:System font is too small 和 How 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,太麻烦了。
幸好最后还是解决了。