给Ubuntu安装VNC(Gnome桌面)的方法

By admin, 15 十一月, 2017

For Ubuntu 18.04

https://www.digitalocean.com/community/tutorials/how-to-install-and-configure-vnc-on-ubuntu-18-04

配置:


 
~/.vnc/xstartup

#!/bin/bash

xrdb $HOME/.Xresources

startxfce4 &

注意:tightvncserver可以改端口,但是它默认的-httpport是不生效的,需要直接改它的启动Perl脚本代码。

For Ubuntu 16.04

http://www.havetheknowhow.com/Configure-the-server/Install-VNC.html

安装完之后可能中文无法显示(以unicode方块形式显示),那么可以尝试安装语言包和字体包:

 

apt-get install language-pack-zh-hans

apt-get install ttf-wqy-zenhei

配置文件:

root@iZ62dn8z0plZ:~/.vnc# cat xstartup
#!/bin/sh

# Uncomment the following two lines for normal desktop:
unset SESSION_MANAGER
# exec /etc/X11/xinit/xinitrc

#[ -x /etc/vnc/xstartup ] && exec /etc/vnc/xstartup
#[ -r $HOME/.Xresources ] && xrdb $HOME/.Xresources
#xsetroot -solid grey
#vncconfig -iconic &
#x-terminal-emulator -geometry 80x24+10+10 -ls -title "$VNCDESKTOP Desktop" &
#x-window-manager &

metacity &
gnome-settings-daemon &
gnome-panel &

 

评论

Restricted HTML

  • 允许的HTML标签:<a href hreflang> <em> <strong> <cite> <blockquote cite> <code> <ul type> <ol start type> <li> <dl> <dt> <dd> <h2 id> <h3 id> <h4 id> <h5 id> <h6 id> <img src>
  • 自动断行和分段。
  • 网页和电子邮件地址自动转换为链接。
验证码
This question is for testing whether or not you are a human visitor and to prevent automated spam submissions.
请输入"Drupal10"

最新评论