Tunneling VNC dengan SSH

Slackware Linux is a stable and secure Linux distribution for UNIX veterans as well as an easy-to-use system for beginners. Slackware includes everything you'll need to run a powerful server or workstation.

Moderator: Moderators

kdelaya
New Member
New Member
Posts: 34
Joined: Fri Aug 07, 2009 8:31 am

Tunneling VNC dengan SSH

Postby kdelaya » Sun Jun 28, 2015 2:46 am

Salam slackers ...

Saya mau berbagi sedikit tutorial cara Meremote PC-server dengan vnc tunnel melalui ssh .

Persiapan pada server
1. Install jdk
2. Install x11vnc
3. Install TigerVNC
4. IP_address server : 192.168.1.101
5. IP_address client : 192.168.1.100
6. Aktifkan ssh daemon [ /etc/rc.d/rc.sshd start ]

Eksekusi :
1. Install TigerVNC
Packaged tersedia pada DVD installer pada directory /extra/tigervnc/tigervnc-1.1.0-x86_64-1.txz

dibutuhkan untuk membuat password vncserver [ $vncpasswd ]

2. Install jdk
Build packaged jdk download source dari http://www.slackbuilds.org

Code: Select all

$ mkdir -p JDK ; cd JDK
$ wget -c http://slackbuilds.org/slackbuilds/14.1/development/jdk.tar.gz
$ wget -c https://download.oracle.com/otn-pub/java/jdk/8u45-b14/jdk-8u45-linux-x64...
$ tar -xvf jdk.tar.gz ; mv jdk-8u45-linux-x64.tar.gz jdk
$ cd jdk
$ sudo sh jdk.SlackBuild
$ sudo su
passwd :
# installpkg /tmp/*.t?z


3. Install x11vnc
Build packaged x11vnc download source dari http://www.slackbuilds.org

Code: Select all

$ mkdir -p x11vnc ; cd x11vnc
$ wget -c http://downloads.sourceforge.net/libvncserver/x11vnc-0.9.13.tar.gz
$ wget -c http://slackbuilds.org/slackbuilds/14.1/network/x11vnc.tar.gz
$ tar -xvf x11vnc.tar.gz ; mv x11vnc-0.9.13.tar.gz x11vnc
$ cd x11vnc ; ls
$ sudo sh x11vnc.SlackBuild
$ sudo su
passwd:
# upgradepkg --install-new /tmp/*.t?z


4. Create password vncserver
Password vncserver dibutuhkan untuk mengakses server dengan vnc

Code: Select all

$ vncpasswd
Passwd:
Verify:


Password tercipta pada dir ~/.vnc/vncpasswd

Pada sisi Client

1. Install TigerVNC pada Slackware-32bit

Packaged tersedia pada DVD installer pada directory /extra/tigervnc/tigervnc-1.1.0-i486-1.txz

Code: Select all

$ ssh -t -L 5900:localhost:5900 user_name@192.168.1.101 'x11vnc -noxdamage -localhost -ncache 10 -ncache_cr -rfbauth ~/.vnc/passwd -display :0'
Passwd:


Buka terminal baru

Code: Select all

$  vncviewer -PreferredEncoding Raw -CustomCompressLevel 1 -CompressLevel 9 -FullColor 2 -QualityLevel 9 -Shared 1 127.0.0.1:5900



masukan password vncserver

Selamat mencoba :)
Attachments
VncAuth.png
VncAuth.png (3.11 KiB) Viewed 2681 times

Return to “Slackware Linux Support”

Who is online

Users browsing this forum: No registered users and 1 guest