11 Juli 2017

Remote Desktop Linux Mint / Ubuntu dari Windows

Linux Mint 18.2 Cinamon dan Windows 7

Install VNC di linux :
sudo apt-get install x11vnc
 Download dan install Putty beserta TightVNC untuk Windows

Next step is to run and connect to Linux via PuTTY. Follow those steps to perform secure connection to Linux.
1. Start PuTTY.
2. Go to Connection -> SSH -> Tunnels.
3. In field Source port enter 5900.
4. In field Destination enter localhost:5900.
5. Click Add button.


Then navigate to PuTTY main window and enter IP or host to which you want to connect and hit Open button.

Login denga user dan password linux, setelah berhasil login jalankan perintah berikut :
dansen@pisma ~ $  ps wwwaux | grep auth
 Keluar output :
root      1189  2.1  2.2 397908 85768 tty7     Ssl+ 07:57   3:24 /usr/lib/xorg/X                                org -core :0 -seat seat0 -auth /var/run/lightdm/root/:0 -nolisten tcp vt7 -novts                                witch
dansen    1627  0.0  0.8 393640 32032 ?        Sl   07:57   0:00 /usr/lib/policy                                kit-1-gnome/polkit-gnome-authentication-agent-1
dansen   10768  0.0  0.0  14228   924 pts/3    S+   10:37   0:00 grep --color=au                                to auth
Kemudian jalankan perintah berikut, (perhatikan bagian yang saya bold, jika ditempat anda keluarnya berbeda maka disesuaikan dengan tempat anda setelah -auth
sudo x11vnc -xkb -noxrecord -noxfixes -noxdamage -display :0 -auth /var/run/lightdm/root/:0 -usepw
Jika meminta password maka buatlah password untuk login,
tetapi di tempat saya ketika dimasukkan password mengalami error, yang harusnya keluar tampilan seperti dibawah ini (pada tutorial sumber) tetapi tidak berhasil, silahkan lihat tutorial sumber disini

Setelah mencari cara lain, akirnya ditemukan cara dengan memasukkan beberapa perintah dibawah ini :
x11vnc -storepasswd
Kemudian masukkan password
x11vnc -usepw
Maka akan muncul seperti gambar dibawah ini


Setelah muncul seperti gambar diatas, langkah terakhir adalah dengan membuka TightVNC, kemudian pada remote host isikan sesuai gambar diatas ( ditempat saya pisma:0 ) kemudian klik connect.
Problem and Solving : Apabila saat connect TightVNC ada error  "authentication failed sorry, loopback connections are not enabled" , maka solusinya adalah  ( sumber ) :
1. Right click on the TightVNC tray icon and select "Configuration".
2. Click on the "Access Control" tab.
3. Under "Loopback Connections" ensure that "Allow loopback connections" is checked.
4. Restart the service, or if you don't know how to do that then you can restart your computer.


Semoga berhasil,

Apabila tidak berhasil, anda bisa menggunakan cara mudah dengan menginstall Teamviewer pada linux dan windows  :)

Thanks to Source : https://www.howopensource.com/2014/10/connect-to-linux-desktop-from-windows/