Remote Ubuntu dgn VNC

Ini sedikit tutorial meremote Ubuntu dengan VNC.
Instalasi :
#apt-get install vnc4server
Reading package lists… Done
Building dependency tree… Done
Suggested packages:
vnc-java
The following NEW packages will be installed:
vnc4server
0 upgraded, 1 newly installed, 0 to remove and 24 not upgraded.
Need to get 2288kB of archives.
After unpacking 5763kB of additional disk space will be used.
Get:1 http://debian.nctu.edu.tw etch/main vnc4server 4.1.1+X4.3.0-21 [2288kB]
Fetched 2288kB in 1s (1721kB/s)
Selecting previously deselected package vnc4server.
(Reading database … 91181 files and directories currently installed.)
Unpacking vnc4server (from …/vnc4server_4.1.1+X4.3.0-21_i386.deb) …
Setting up vnc4server (4.1.1+X4.3.0-21) …
Jalankan VNC server :
Login sebagai user, misalnya usernya aini
#su aini
Perintah vncserver, dengan memasukkan ukuran layar,
#aini@nuraini.net:/home/aini/$ vncserver -geometry 1024×768 -depth 24
kemudian masukkan password, tidak perlu sama dengan password user tsb.
You will require a password to access your desktops.
Password:
Verify:
New ‘X’ desktop is nuraini.net:1
Starting applications specified in /etc/X11/Xsession
Log file is /home/aini/.vnc/nuraini.net:1.log
Cek port mana yang digunakan oleh NVC :
#nmap localhost
Starting Nmap 4.11 ( http://www.insecure.org/nmap/ ) at 2007-09-12 22:06 CST
Interesting ports on formmit.homedns.org (127.0.0.1):
Not shown: 1657 closed ports
PORT STATE SERVICE
21/tcp open ftp
22/tcp open ssh
23/tcp open telnet
25/tcp open smtp
53/tcp open domain
80/tcp open http
110/tcp open pop3
111/tcp open rpcbind
139/tcp open netbios-ssn
143/tcp open imap
443/tcp open https
445/tcp open microsoft-ds
515/tcp open printer
616/tcp open unknown
631/tcp open ipp
953/tcp open rndc
2049/tcp open nfs
3306/tcp open mysql
5901/tcp open vnc-1
6001/tcp open X11:1
10000/tcp open snet-sensor-mgmt
Jika ingin mematikan vnc, gunakan perintah berikut :
#vnc4server -kill:1
Nomor setelah -kill: disesuaikan dengan nomor session.
Jika ingin meremote dari :
Linux
• cukup install xvnc4viewer
• jalankan #xvnc4viewer komputer:nomorport
Windows –> install winvnc
Hope it helps, even not so much

No comments: