Ubuntu-Desktop (Gnome) installieren
1 |
apt-get install --no-install-recommends ubuntu-desktop |
VNC Server installieren
1 |
apt-get install gnome-panel gnome-settings-daemon metacity nautilus gnome-terminal |
1 |
apt-get install vnc4server |
1 |
cp /usr/bin/vncserver /usr/bin/vncserver.bkp |
1 |
nano /usr/bin/vncserver |
Suche in der Datei nach ( Zeile: 57 )
1 |
"# exec /etc/X11/xinit/xinitrc\n\n". |
danach einfügen
1 2 3 4 5 6 |
"# exec /etc/X11/xinit/xinitrc\n\n". "gnome-panel &\n". "gnome-settings-daemon &\n". "metacity &\n". "nautilus &\n". "gnome-terminal &\n". |
VNC Server starten
1 |
vncserver |
VNC Server läuft
VNC server als Service
1 |
nano /etc/init.d/vncserver |
Datei füllen mit:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 |
#!/bin/bash ### BEGIN INIT INFO # Provides: VNCSERVER # Required-Start: $remote_fs $syslog # Required-Stop: $remote_fs $syslog # Default-Start: 2 3 4 5 # Default-Stop: 0 1 6 # Short-Description: Start daemon at boot time # Description: Enable service provided by daemon. ### END INIT INFO unset VNCSERVERARGS VNCSERVERS="" [ -f /etc/vncservers.conf ] && . /etc/vncservers.conf prog=$"VNC server" start() { . /lib/lsb/init-functions REQ_USER=$2 echo -n $"Starting $prog: " ulimit -S -c 0 >/dev/null 2>&1 RETVAL=0 for display in ${VNCSERVERS} do export USER="${display##*:}" if test -z "${REQ_USER}" -o "${REQ_USER}" == ${USER} ; then echo -n "${display} " unset BASH_ENV ENV DISP="${display%%:*}" export VNCUSERARGS="${VNCSERVERARGS[${DISP}]}" su ${USER} -c "cd ~${USER} && [ -f .vnc/passwd ] && vncserver :${DISP} ${VNCUSERARGS}" fi done } stop() { . /lib/lsb/init-functions REQ_USER=$2 echo -n $"Shutting down VNCServer: " for display in ${VNCSERVERS} do export USER="${display##*:}" if test -z "${REQ_USER}" -o "${REQ_USER}" == ${USER} ; then echo -n "${display} " unset BASH_ENV ENV export USER="${display##*:}" su ${USER} -c "vncserver -kill :${display%%:*}" >/dev/null 2>&1 fi done echo -e "\n" echo "VNCServer Stopped" } case "$1" in start) start $@ ;; stop) stop $@ ;; restart|reload) stop $@ sleep 3 start $@ ;; condrestart) if [ -f /var/lock/subsys/vncserver ]; then stop $@ sleep 3 start $@ fi ;; status) status Xvnc ;; *) echo $"Usage: $0 {start|stop|restart|condrestart|status}" exit 1 esac |
Rechte setzen
1 |
chmod +x /etc/init.d/vncserver |
VNC Server.conf erstellen
1 |
nano /etc/vncservers.conf |
Füllen mit z.B.
1 2 |
VNCSERVERS="1:root" VNCSERVERARGS[1]="-geometry 1024x768" |
Autostart
1 |
update-rc.d vncserver defaults |
händisch
1 |
/etc/init.d/vncserver start |
http://www.onlinehilfedatenbank.de/index.php?action=artikel&cat=5&id=7&artlang=de
http://www.krizna.com/ubuntu/install-vnc-server-ubuntu-14-04/
http://weidner.in-bad-schmiedeberg.de/archives/2012/11/ubuntu-precise-pangolin-xen-domu/