ubuntu18.04配置vncserser中常見的問題

1. vncserver的選擇

vncserver有多種選擇,  xvnc, vnc4server, tightvnc等

 

 

2. 默認安裝後, vncview 連接, 只有灰色背景.

這是因爲x-window-manager沒裝.

可選項依然很多,

lxde最小, 佔用資源最少,功能也相對少.

gnome-session, mate xfce4 也都不錯.

 

3. 如果需要修改快捷鍵,  

不同的桌面環境方式不同, 可以看看system->preferences->hardware->keyboard shourtcuts

4. 鼠標是個叉的圖標

xsetroot -solid grey -cursor_name left_ptr
 

5. 與主機的粘貼板不可用.

安裝這個軟件

autocutsel -f
 

6. 貼一個~/.vnc/xstartup的example吧.

$ cat .vnc/xstartup
#!/bin/sh

xrdb $HOME/.Xresources
#x-terminal-emulator -geometry 80x24+10+10 -ls -title "$VNCDESKTOP Desktop" &
#x-window-manager &
# Fix to make GNOME work
export XKL_XMODMAP_DISABLE=1
/etc/X11/Xsession

autocutsel -f
xsetroot -solid grey -cursor_name left_ptr
vncconfig -iconic -nowin &
startlxde &
 

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章