Posts Tagged ‘connect’

(For english language, see below, I put it after the Indonesian)

Untuk membuat koneksi remote dekstop dari PC Windows ke Linux, salah satu caranya adalah menggunakan program bernama VNC (Virtual Network Computing).

Langkah – langkahnya adalah :
A. Di Windows
1. Download Real VNC di http://realvnc.com
2. Install Real VNC di Windows
3. Jalankan VNC Viewer (dari start menu -> Programs -> -> VNC Viewer 4 -> Run VNC Viewer
VNC Viewer Screen Caps

B. Di Linux (atau bisa dari Windows, menggunakan putty)
1. login sebagai root
2. ketik command “vncserver”
3. Akan muncul text semacam ini :


New ‘namahostname:1 (root)’ desktop is namahostname:1

Starting applications specified in /root/.vnc/xstartup
Log file is /root/.vnc/namahostname:1.log

perhatikan tulisan ‘namahostname’ yang diikuti dengan angka. Dalam contoh di atas adalah ‘1’. Angka ini adalah index display yang dapat diakses dari komputer lain.

Kembali ke VNC Viewer, ketikkan IP address komputer linux diikuti dengan “:”
Jadi misalkan IP nya 10.0.7.15 dan index display 1, maka tuliskan 10.0.7.15:1 kemudian tekan OK.
Maka remote desktop akan muncul.

Bila ada masalah (display tidak muncul semestinya seperti di Linux), ada kemungkinan, di Linux harus ubah file xstartup (ada di root Linux, sebagai root ketik vi xstartup nanti akan muncul), edit seperti ini :


#!/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
vncconfig -iconic &
xterm -geometry 80×24+10+10 -ls -title “$VNCDESKTOP Desktop” &
startx &


Di baris terakhir (di atas tertulis “startx &”), coba ganti menjadi “startkde &”.
Save file tersebut (kalau Anda tadi memakai vi, tekan Esc kemudian ketik “:x” dan enter) kemudian coba konek lagi dengan VNC Viewer.


To make a remote desktop connection to a Linux OS from Windows OS, one of the ways is to use RealVNC (VNC = Virtual Network Computing).

Steps :
A. In Windows machine
1. Download Real VNC at http://realvnc.com
2. Install Real VNC in Windows
3. Run VNC Viewer (start menu -> Programs -> -> VNC Viewer 4 -> Run VNC Viewer
VNC Viewer Screen Caps

B. In Linux (or you can do it from windows by using “putty” program which available to download for free everywhere)
1. login as root
2. type “vncserver” and press enter
3. There will be such text :


New ‘namahostname:1 (root)’ desktop is namahostname:1

Starting applications specified in /root/.vnc/xstartup
Log file is /root/.vnc/namahostname:1.log

note the word ‘namahostname’ which followed by a number. In the above example, the number is ‘1’. This number is a display index number for accessing display from another computer.

Back to the VNC viewer in Windows, type the Linux machine IP address followed by “:”, for example “10.0.7.15:1” then click “OK”.
Remote desktop should be established.

If the display doesn’t show up, it might needs to change xstartup file (it is in root directory in the Linux machine).
To edit it, type “vi xstartup” after login as root, dan make sure your’e on the root directory. Edit the file to be like this :


#!/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
vncconfig -iconic &
xterm -geometry 80×24+10+10 -ls -title “$VNCDESKTOP Desktop” &
startx &


In the last line, replace “startx &”, to “startkde &”.
Save the (Hit Esc then type “:x” then hit enter) then try to connect again using VNC Viewer.