Installing the Desktop Environment and VNC Server
$ apt install xfce4 xfce4-goodies tightvncserver$ apt-get install gnome-panel
$ apt-get install gnome-settings-daemon gnome-terminal metacity nautilus
Edit configure file
$ cat ~/.vnc/xstartup#!/bin/sh
export XKL_XMODMAP_DISABLE=1
unset SESSION_MANAGER
unset DBUS_SESSION_BUS_ADDRESS
[ -x /etc/vnc/xstartup ] && exec /etc/vnc/xstartup
[ -r $HOME/.Xresources ] && xrdb $HOME/.Xresources
xsetroot -solid grey
autocutsel -s CLIPBOARD -fork
autocutsel -s PRIMARY -fork
vncconfig -iconic &
gnome-panel &
gnome-settings-daemon &
metacity &
nautilus &
gnome-terminal &
Start VNC server
You could do this at the command line to control the geometry of a particular desktop, for example:$ vncserver -geometry 1920x1080
or
$ vncserver -geometry 1024x768
or You could create a ~/.vnc/config file and populate it with the following to control the geometry of all desktops created by a particular user:
-geometry 1920x1080
or You could create an /etc/vnc/config.custom file and populate it as above to control the geometry of all desktops created by all users.
Stop VNC server
$ vncserver -kill :1or
$ vncserver -kill :2
You can get more information from https://support.realvnc.com/knowledgebase/article/View/393/5/how-can-i-change-the-geometry-of-a-vnc-server-in-virtual-mode-desktop
댓글 없음:
댓글 쓰기