Setting VNC Server di Centos

Posted: November 2, 2010 in Linux Umum
Tag:, ,

Sekedar coretan kecil di tengah hari.

To the point aja, berikut langkah2nya :

1. Install vnc server  : yum install vnc-server

2. Buat user untuk vnc, ex: yoner

* useradd yoner
* passwd yoner
* useradd pilot
* passwd pilot

3. Edit /etc/sysconfig/vncserver , konfigurasi harusnya terlihat sbb:

VNCSERVERS=”1:pilot 2:yoner”
VNCSERVERARGS[1]=”-geometry 1280×1024″
VNCSERVERARGS[2]=”-geometry 1280×1024″

4. Login sebagai user vnc (ex: yoner)

5. Setting password untuk remote vnc (vncpasswd)

* su –yoner
* vncpasswd

6. Start/Stop vncserver

* service vnserver start
* service vncserver stop

7. Edit file xstartup

* cd .vnc
* vim xstartup

8. Konfigurasi xstartup harusnya sbb :

unset SESSION_MANAGER
exec /etc/X11/xinit/xinitrc
[ -x /etc/vnc/xstartup ] && exec /etc/vnc/xstartup
[ -r $HOME/.Xresources ] && xrdb $HOME/.Xresources
xsetroot -solid grey
vncconfig -iconic &
xterm -geometry 80×24+10+10 -ls -title “$VNCDESKTOP Desktop” &
twm &

9. Jalankan service vncserver

10.Coba jalankan vnc client anda masukkan

* 127.0.0.1:1  /*untuk user pilot*/
* 127.0.0.1:2  /*untuk useryoner*/

11.  Kalau via web coba alamat berikut

Udah segitu ajalah udah males nulisnya

 

 

 

 

 

 

Tinggalkan Balasan

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Ubah )

Twitter picture

You are commenting using your Twitter account. Log Out / Ubah )

Facebook photo

You are commenting using your Facebook account. Log Out / Ubah )

Connecting to %s