Skip to content

Latest commit

 

History

History
65 lines (50 loc) · 1.32 KB

vnc_config_ubuntu_16.md

File metadata and controls

65 lines (50 loc) · 1.32 KB

There is no terminal and window-manager in VNC window.

You will see a gray window in VNC viewer and there is no terminal and window-manager. VNC_err

Method

Install gnome GUI tools:

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

Edit the configure file under your home folder:

vi .vnc/xstartup

Copy following content to the file above:

#!/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 &
gnome-panel &
gnome-settings-daemon &
metacity &
nautilus &

Start up vncserver in reboot

crontab -e

Add

@reboot /usr/bin/vncserver :1

Install xfce4

sudo apt install xfce4 xfce4-goodies

Install xfce4 terminal

sudo apt-get install xfce4-terminal

Startup xfce4 in vncserver

vi .vnc/xstartup

Edit

#!/bin/bash
vncconfig -iconic &
xrdb $HOME/.Xresources
startxfce4 &

xfce4 in VNC tab is with problem

Application-> Menu -> Setttings -> Windows Manager

Select: Keyboard -> Switch window for same application

Click 'Clear'