- apt-get install vnc4server
- apt-get install vncviewer
- apt-get install vim
- vnc4server :1
- ps -elf|grep vnc
- kill -9 vnc pid
- vim /root/.vnc/xstartup
#!/bin/sh
# Uncomment the following two lines for normal desktop:
unset SESSION_MANAGER
unset DBUS_SESSION_BUS_ADDRESS
# 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 &
export DESKTOP_SESSION=ubuntu-2d
export GDMSESSION=ubuntu-2d
export STARTUP="/usr/bin/gnome-session --session=gnome-classic"
$STARTUP
- vnc4server :2
- vncviewer
安装VNC服务器与客户端

本文介绍了如何使用apt-get在Linux系统上安装VNC服务器(vnc4server)和VNC查看器(vncviewer),并提供了配置VNC服务器的示例脚本。通过这些步骤可以实现远程桌面的访问。
2479

被折叠的 条评论
为什么被折叠?



