{"id":685,"date":"2016-04-23T07:10:39","date_gmt":"2016-04-23T06:10:39","guid":{"rendered":"http:\/\/www.dannratemal.de\/?p=685"},"modified":"2016-04-23T07:32:52","modified_gmt":"2016-04-23T06:32:52","slug":"x11vnc-installation-ubuntu-16-04-lts-xenial-xerus-per-vnc-mit-ssh-sicher-und-verschluesselt-auf-ubuntu-desktop-zugreifen","status":"publish","type":"post","link":"https:\/\/www.dannratemal.de\/?p=685","title":{"rendered":"x11vnc Installation (Ubuntu 16.04 LTS &#8211; Xenial Xerus) \u2013 per VNC mit ssh (sicher und verschl\u00fcsselt) auf Ubuntu Desktop zugreifen"},"content":{"rendered":"<p><strong><span style=\"color: #ff0000;\"><br \/>\n<\/span><\/strong><\/p>\n<p><strong>x11vnc Installation (Ubuntu 16.04 LTS &#8211; Xenial Xerus) \u2013 per VNC mit ssh (sicher und verschl\u00fcsselt) auf Ubuntu Desktop zugreifen.<\/strong><\/p>\n<p><strong>Die Anleitung funktioniert auch f\u00fcr Debian ab Version 8.xx &#8211; Ich habe es mit der Standard Gnome Version getestet: debian-live-8.0.0-amd64-gnome-desktop.iso<\/strong><\/p>\n<p><strong>WICHTIG ! Von Version 14.04 auf 16.04 gab es gro\u00dfe Ver\u00e4nderungen !<\/strong><\/p>\n<p>Sie m\u00f6chten von Windows oder Linux auf Ubuntu zugreifen wie auf Windows per Remote Desktop (RDP) und das ganze sicher und verschl\u00fcsselt. Dann sind sie hier richtig ! Das eingebaute &#8222;Entfernter Desktop&#8220; von Ubuntu ist leider unverschl\u00fcsselt und unsicher !<\/p>\n<p>Diese 2 Pakete bitte \u00fcber den Terminal installieren:<\/p>\n<p>Terminal \u00f6ffnen und mit diesen Befehlen x11vnc und openssh-server installieren:<\/p>\n<p><strong>sudo apt-get install x11vnc<br \/>\nsudo apt-get install openssh-server<\/strong><\/p>\n<p>Im Moment werden diese Versionen installiert:<\/p>\n<p>x11vnc 0.9.13-1.1<br \/>\nopenssh-server 1:6.6p1-2ubuntu2.6<\/p>\n<p>Dann geht\u2019s zur Konfiguration:<\/p>\n<p>Wir legen das Passwort f\u00fcr x11vnc an:<\/p>\n<p><strong>sudo x11vnc -storepasswd yourpasswordhere \/etc\/x11vnc.pass<\/strong><\/p>\n<p><strong>\u201cyourpasswordhere\u201d<\/strong> bitte mit dem gew\u00fcnschten ersetzen.<\/p>\n<p>Jetzt konfigurieren wir x11vnc, dass es beim booten startet<br \/>\n<strong>sudo gedit \/lib\/systemd\/system\/x11vnc.service<\/strong><\/p>\n<p>Der Datei bitte diesen Inhalt hinzuf\u00fcgen:<\/p>\n<p><strong><br \/>\n[Unit]<br \/>\nDescription=Start x11vnc at startup.<br \/>\nAfter=multi-user.target<\/p>\n<p>[Service]<br \/>\nType=simple<br \/>\nExecStart=\/usr\/bin\/x11vnc -auth guess -forever -loop -noxdamage -repeat -rfbauth \/etc\/x11vnc.pass -rfbport 5900 -shared<\/p>\n<p>[Install]<br \/>\nWantedBy=multi-user.target<br \/>\n<\/strong><\/p>\n<p>Dann die Datei abspeichern !<\/p>\n<p>Dann im Terminal-Fenster folgende Befehle eingeben:<\/p>\n<p><strong>echo &#8222;Configure Services&#8220;<br \/>\nsudo systemctl enable x11vnc.service<br \/>\nsudo systemctl daemon-reload<br \/>\nsleep  5s<br \/>\nsudo shutdown -r now<\/strong><\/p>\n<p>Nach der letzten Eingabe wird Ubuntu neu gestartet und der login via Putty+VNC per SSH ist einsatzbereit.<\/p>\n<p>Zugang dann z.B. von einem Windows PC (verschl\u00fcsselt und sicher mit SSH) mit Putty+Tightvnc &#8211; Hier die Anleitung: <a title=\"http:\/\/www.dannratemal.de\/?p=161\" href=\"http:\/\/www.dannratemal.de\/?p=161\">Putty+VNC<\/a><\/p>\n<p>Wenn man von einem Ubuntu System auf ein anderes Ubuntu System zugreifen will muss man folgendes im Terminal eingeben:<\/p>\n<p><strong>vncviewer -via user@host localhost:0<\/strong><\/p>\n<p><strong>user<\/strong> steht f\u00fcr den Benutzernamen, <strong>host<\/strong> f\u00fcr die IP-Adresse oder den Hostname des Servers !<\/p>\n<p>Bei einer internen Verbindung im eigenen Netzwerk:<br \/>\n(z.B.: vncviewer -via maria@192.168.2.11 localhost:0)<\/p>\n<p>Wenn man \u00fcber das Internet auf das System zugreifen will, muss man noch port 22 (SSH) am Router freigeben und auf die interne IP Adresse des Ubuntu System routen !<br \/>\n(z.B.: vncviewer -via maria@180.11.x.x localhost:0)<\/p>\n<p><strong>-via<\/strong> ist dabei der Befehl einen SSH Tunnel aufzubauen !<\/p>\n<p>Alle Angaben ohne Gew\u00e4hr !<br \/>\n+++++<br \/>\nEnglish Version:<\/p>\n<p>Start the Terminal and install this:<\/p>\n<p><strong>sudo apt-get install x11vnc<br \/>\nsudo apt-get install openssh-server<\/strong><\/p>\n<p>At the moment this versions will be installed:<\/p>\n<p>x11vnc 0.9.13-1.1<br \/>\nopenssh-server 1:6.6p1-2ubuntu2.6<\/p>\n<p>Let&#8217;s Config and set the password:<\/p>\n<p><strong>sudo x11vnc -storepasswd yourpasswordhere \/etc\/x11vnc.pass<\/strong><\/p>\n<p>replace <strong>\u201cyourpasswordhere\u201d<\/strong> with your password<\/p>\n<p><strong>sudo gedit \/lib\/systemd\/system\/x11vnc.service<\/strong><\/p>\n<p>Please add these lines to the file:<\/p>\n<p><strong><br \/>\n[Unit]<br \/>\nDescription=Start x11vnc at startup.<br \/>\nAfter=multi-user.target<\/p>\n<p>[Service]<br \/>\nType=simple<br \/>\nExecStart=\/usr\/bin\/x11vnc -auth guess -forever -loop -noxdamage -repeat -rfbauth \/etc\/x11vnc.pass -rfbport 5900 -shared<\/p>\n<p>[Install]<br \/>\nWantedBy=multi-user.target<br \/>\n<\/strong><\/p>\n<p>And save this file !<\/p>\n<p>After this, type this commands in the Terminal:<\/p>\n<p><strong>echo &#8222;Configure Services&#8220;<br \/>\nsudo systemctl enable x11vnc.service<br \/>\nsudo systemctl daemon-reload<br \/>\nsleep  5s<br \/>\nsudo shutdown -r now<\/strong><\/p>\n<p>System will reboot and you have x11vnc before login.<\/p>\n<p>Connect from Windows PC (secure via SSH) with Putty+Tightvnc &#8211; find a german manual here: <a title=\"http:\/\/www.dannratemal.de\/?p=161\" href=\"http:\/\/www.dannratemal.de\/?p=161\">Putty+VNC<\/a><\/p>\n<p>Connect from Ubuntu client to Ubuntu Host system. Start Terminal and type:<\/p>\n<p><strong>vncviewer -via user@host localhost:0<\/strong><\/p>\n<p><strong>user<\/strong> is for the Username, <strong>host<\/strong> is the IP Address from the Server !<\/p>\n<p>Connect in the local network:<br \/>\n(ex.: vncviewer -via maria@192.168.2.11 localhost:0)<\/p>\n<p>Connect via Internet, open port 22 (SSH) at your Router and route to local IP from Ubuntu Host System !<br \/>\n(ex.: vncviewer -via maria@180.11.x.x localhost:0)<\/p>\n<p><strong>-via<\/strong> is the command for enabling the SSH Tunnel !<\/p>\n<p>Alle Angaben ohne Gew\u00e4hr !<\/p>\n<p>(Suchthemen: x11vnc, ssh, Ubuntu 16.04)<\/p>\n","protected":false},"excerpt":{"rendered":"<p>x11vnc Installation (Ubuntu 16.04 LTS &#8211; Xenial Xerus) \u2013 per VNC mit ssh (sicher und verschl\u00fcsselt) auf Ubuntu Desktop zugreifen. Die Anleitung funktioniert auch f\u00fcr Debian ab Version 8.xx &#8211; Ich habe es mit der Standard Gnome Version getestet: debian-live-8.0.0-amd64-gnome-desktop.iso WICHTIG ! Von Version 14.04 auf 16.04 gab es gro\u00dfe Ver\u00e4nderungen ! Sie m\u00f6chten von [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"two_page_speed":[],"footnotes":""},"categories":[3],"tags":[],"class_list":["post-685","post","type-post","status-publish","format-standard","hentry","category-ubuntu"],"_links":{"self":[{"href":"https:\/\/www.dannratemal.de\/index.php?rest_route=\/wp\/v2\/posts\/685","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.dannratemal.de\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.dannratemal.de\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.dannratemal.de\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.dannratemal.de\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=685"}],"version-history":[{"count":6,"href":"https:\/\/www.dannratemal.de\/index.php?rest_route=\/wp\/v2\/posts\/685\/revisions"}],"predecessor-version":[{"id":691,"href":"https:\/\/www.dannratemal.de\/index.php?rest_route=\/wp\/v2\/posts\/685\/revisions\/691"}],"wp:attachment":[{"href":"https:\/\/www.dannratemal.de\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=685"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.dannratemal.de\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=685"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.dannratemal.de\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=685"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}