Ubuntu安装VNC(火狐、Office等)

apt-get update

apt-get install vnc4server

vncserver

# 生成~/.vnc/xstartup文件

sudo apt-get install x-window-system-core

sudo apt-get install gdm #失败无所谓

sudo apt-get install ubuntu-desktop

sudo apt-get install gnome-panel gnome-settings-daemon metacity nautilus gnome-terminal.

vi ~/.vnc/xstartup

 #!/bin/sh

# Uncomment the following two lines for normal desktop:

export XKL_XMODMAP_DISABLE=1

unset SESSION_MANAGER

# exec /etc/X11/xinit/xinitrc

unset DBUS_SESSION_BUS_ADDRESS

gnome-panel &

gnome-settings-daemon &

metacity &

nautilus &

gnome-terminal &

vncserver -kill :1

vncserver :1

端口:5901

 

posted @ 2021-05-24 15:24  crxis  阅读(147)  评论(0编辑  收藏  举报
友情链接:OIER博客 800兆技术 每日基金 AtCoder题解 tinywebdb Jupyter BZOJ