install vnc server on google cloud compute engine

Ubuntu has several desktop environments available in its repositories. The following command installs the default desktop, Unity, as well as the dependencies that are required for the graphical interface to work properly:

Note

This will install the full Ubuntu desktop environment, including office and web browsing tools. To install the desktop without these packages, run:

sudo apt-get install --no-install-recommends ubuntu-desktop gnome-panel gnome-settings-daemon metacity nautilus gnome-terminal gnome-core

.vnc/xstartup is like this:

ubuntu中文支持,及中文乱码问题

状况:所用的Linux系统不支持中文,遇见中文就zz了。ORZ…

目标:使系统/服务器支持中文,能够正常显示。

首先,安装中文支持包language-pack-zh-hans:

然后,修改/etc/environment(在文件的末尾追加):

再修改/var/lib/locales/supported.d/local(没有这个文件就新建,同样在末尾追加):

最后,执行命令:

对于中文乱码是空格的情况,安装中文字体解决。

以上,问题解决,中文显示正常。:)

Written by

自由撰稿人,时评人,平等公义追求者

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store