http://ubuntuforums.org/showthread.php?t=2193100

 

참고 추가

http://askubuntu.com/questions/603169/lubuntu-14-04-tightvnc-remote-mouse-cursor-is-x

 

HOWTO: Lubuntu VNC server installation in Saucy 13.10

After reading 10 000 guides suggesting that pretty much any VNC server should run in Lubuntu I faced issues runnning any of them and getting a proper desktop environment. RealVNC, x11vnc, tightvncserver, and vino were the candidates. I ended up using tightvncserver. The way to get it working is:

1) Install the package with:

Code:
sudo apt-get install tightvncserver autocutsel
2) Run the server once and kill it:

Code:
tightvncserver :1
tightvncserver -kill :1
3) This will create a ~/.vnc/xstartup file. Modify it like this:

Code:
##xrdb $HOME/.Xresources
#/etc/X11/Xsession
autocutsel -fork
openbox &
/usr/bin/lxsession -s Lubuntu -e LXDE &
The tricky part was the openbox window manager. All guides seem to skip it, I found it by pure luck here:

HTML Code:
http://www.madebits.com/blog/comments.php?y=12&m=06&entry=entry120617-014832
It also works if you comment out the existing entry for X Window Manager instead adding openbox:

Code:
#x-window-manager $
You also need to add the following line in order to get bidirectional clipboard sharing

Code:
autocutsel -fork
4) Final config looks like this:

Code:
#!/bin/sh

#xrdb $HOME/.Xresources
xsetroot -solid grey

#x-terminal-emulator -geometry 80x24+10+10 -ls -title "$VNCDESKTOP Desktop" &
#x-window-manager &

export XKL_XMODMAP_DISABLE=1
autocutsel -fork
openbox &
/usr/bin/lxsession -s Lubuntu -e LXDE &
5) Use the vnc server as normal:

Code:
tightvncserver :1
It tends to throw some errors in the log files but I didn't bother to investigate much as it works:

Code:
11/12/13 13:00:43 Xvnc version TightVNC-1.3.9
11/12/13 13:00:43 Copyright (C) 2000-2007 TightVNC Group
11/12/13 13:00:43 Copyright (C) 1999 AT&T Laboratories Cambridge
11/12/13 13:00:43 All Rights Reserved.
11/12/13 13:00:43 See http://www.tightvnc.com/ for information on TightVNC
11/12/13 13:00:43 Desktop name 'X' (Server:1)
11/12/13 13:00:43 Protocol versions supported: 3.3, 3.7, 3.8, 3.7t, 3.8t
11/12/13 13:00:43 Listening for VNC connections on TCP port 5904
Font directory '/usr/share/fonts/X11/Type1/' not found - ignoring
Font directory '/usr/share/fonts/X11/75dpi/' not found - ignoring
Font directory '/usr/share/fonts/X11/100dpi/' not found - ignoring
** Message: main.vala:96: Session is Lubuntu
** Message: main.vala:97: DE is LXDE
Obt-Message: XKB extension is not present on the server or too old
Obt-Message: Xinerama extension is not present on the server
Obt-Message: XRandR extension is not present on the server
Xlib:  extension "RANDR" missing on display ":1".
** Message: main.vala:128: log directory: /home/<user>/.cache/lxsession/Lubuntu
** Message: main.vala:129: log path: /home/<user>/.cache/lxsession/Lubuntu/run.log
Xlib:  extension "XInputExtension" missing on display ":1".
Xlib:  extension "XInputExtension" missing on display ":1".
Openbox-Message: Requested key "Print" does not exist on the display
Openbox-Message: Requested key "Print" does not exist on the display
Openbox-Message: Unable to find a valid menu file "/var/lib/openbox/debian-menu.xml"
XIO:  fatal IO error 11 (Resource temporarily unavailable) on X server ":1"
      after 1496 requests (1496 known processed) with 0 events remaining.
P.S. Any clue why vBulletin forum software adds an extra blank row at every [CODE] section? I'm closing the tag exactly after the last character typed.

EDIT 1: Modified to include clipboard sharing.
Last edited by s-stefanov; December 18th, 2013 at 09:21 PM.
,