Selasa, 18 Desember 2012

Install VNC Server Di Trixbox/ELastix

Step by Stepnya :

-  Install Package yang diperlukan
   yum groupinstall 'GNOME Desktop Environment' 'X Window System'
   yum install vnc-server gnome-session libXv libXScrnSaver alsa-lib Xvfb

- Setelah selesai install package diatas jalankan perintah
   vncpasswd
   password:  isi password misal passw0rd
   verify: passw0rd

- kemudian edit: /etc/sysconfig/vncservers tambahkan
  Setting Single User
  VNCSERVERS="1:root"
  VNCSERVERARGS[1]="-geometry 1024x768 -nolisten tcp -nohttpd"

  Settingan Multiple User
  VNCSERVERS="1:user1 2:user2 3:user3"
  VNCSERVERARGS[1]="-geometry 1024x768"
  VNCSERVERARGS[2]="-geometry 1024x768"
  VNCSERVERARGS[3]="-geometry 1024x768"

- Jalankan perintah
   vncserver
   Starting applications specified in /root/.vnc/xstartup
   Log file is /root/.vnc/localhost.log

- Asumsi disini menggunakan root untuk remote server VNC kemudian edit /etc/inittab rubah
   id:3:initdefault menjadi :id:5:initdefault:

- Kemudian edit the /root/.vnc/xstartup menjadi
  #!/bin/sh
  #Uncomment the following two lines for normal desktop:
  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
  xterm -geometry 80x24+10+10 -ls -title "$VNCDESKTOP Desktop" &
  exec gnome-session&

- Save lalu edit /etc/X11/twm/system.twmrc tambahkan RandomPlacement setelah baris NoGrabServer
- Save kemudian copy system.twmrc ke folder root
  cp /etc/X11/twm/system.twmrc /root/.twmrc

- Jalankan perintah
   chown root:root /root/.twmrc

- Start Services ketikkan perintah
   vncserver

- Reboot Computer dan Install Client VNC dari di lain PC
- Remote Menggunakan VNC Viewer isi VNCServer  ipserverVNC:userberapa contoh 192.168.12.1:1 dan isikan password yang telah dibuat

Selesai dan Server Trixbox/Elastix sudah bisa diremote dengan VNC..









Tidak ada komentar: