Selasa, 14 Oktober 2008

LTSP sebagai solusi Diskles bagi plikasi Anda : Part I


Linux Terminal Server Project adalah sebuah aplikasi linux yang mampu menjawab kebutuhan anda akan sebuah sistem yang murah dan free.
Dengan membuat sebuah LTSP server, maka semua terminal yang terhubung ke server tidak harus mempunyai hard disk, dan bisa berbagi resource dengan sempurna.
Sebagai contoh anda mempunyai sebuah DBMS Mysql atau MS SQL atau keluarga sql lainnya, maka resource tersebut dapat diakses dgn baik hanya dari sebuah terminal tua yang tdk mempunyai hard disk.
Untuk membuat sebuah server LTSP sebaiknya menggunakan cpu yg agak powerfull dengan processor terbaru dan memory yg besar serta hard disk berkecepatan tinggi.
Untuk cpu clientnya cukup pentium iii + lan card + bootrom atau pxe modul.
Berikut adalah tutor singkat mengenai cara instalasi LTSP di atas system linux.

?Lakukan instalasi Linux, suse atau fedora atau ubuntu boleh juga.
?Pastikan anda menginstall paket service : DHCP, NFS, TFTP, XDMCP.
Download source ltsp terbaru di : http://ltsp.mirrors.tds.net/pub/ltsp/isos/

Contoh berikut dilakukan di linux suse 10.1
Untuk proses instalasi linux ikuti saja proses default yang ada.
1. Jika instalasi linux sudah selesai, pastikan ip address sudah anda berikan pada interface jaringan. (mis. 192.168.1.254/24)
2. Editlah file dhcpd.conf yang berada pada directory /etc????? (/etc/dhcpd.conf)
isinya seperti berikut :
# dhcpd.conf
ddns-update-style???????????? ad-hoc;
option subnet-mask??????????? 255.255.255.0;
option broadcast-address????? 192.168.1.255;
option routers??????????????? 192.168.1.254;
option domain-name-servers??? 192.168.1.254;
option domain-name??????????? "ltsp.arthacom.net";?
option option-128 code 128 = string;
option option-129 code 129 = text;

get-lease-hostnames?????????? true;

next-server?????????????????? 192.168.1.254;
option root-path????????????? "192.168.1.254:/opt/ltsp/i386";

subnet 192.168.1.0 netmask 255.255.255.0 {
range?? 192.168.1.100?? 192.168.1.199;
#host ws113.ltsp {
#??? ??? hardware ethernet??? 00:c0:9f:c4:5b:5a;
#??? ??? fixed-address??? ??? 192.168.33.113;
#??? }
#host ws112.ltsp {
#??????????????? hardware ethernet?????? 00:0a:5e:65:0c:ad;
#??????????????? fixed-address?????????? 192.168.33.112;
#??????? }
??? if substring (option vendor-class-identifier, 0, 9) = "PXEClient" {
??????? filename "/lts/2.6.17.3-ltsp-1/pxelinux.0";
??? }
??? else{
??????? filename "/lts/vmlinuz-2.6.17.3-ltsp-1";
??? }
}
#
# If you need to pass parameters on the kernel command line, you can
# do it with option-129.? In order for Etherboot to look at option-129,
# you MUST have option-128 set to a specific value.? The value is a
# special Etherboot signature of 'e4:45:74:68:00:00'.
#
# Add these two lines to the host entry that needs kernel parameters
#
#??????? option option-128???? e4:45:74:68:00:00;?????? # NOT a mac address
#??????? option option-129???? "NIC=ne IO=0x300";
#
# End of dhcpd.conf configuration fil

setelah anda mengedit isi file simpan lah kemudian jalankan perintah berikut :

office:/ # service dhcpd start
Starting DHCP server [chroot]???????????????????????????????????????? done
office:/ #

Hasil di atas menunjukkan bahwa dhcp server anda sudah berhasil jalan dgn range lease address 192.168.1.100 s/d 192.168.1.199
Untuk melakukan tes, silahkan hubungkan sebuah pc windows set ip address ke automatic. maka system akan memberikan ip address secara otomatis.


Langkah berikutnya adalah melakukan mount terhadap iso image ltsp ke dalam sebuah directory.
1. buatlah sebuah direktory isomount di dalam direktory media? ---> (mkdir /media/isomount)
2. copylah iso image ltsp ke dalam /media
3. mount -o loop /media/namafile.iso /media/isomount?????? (namafile.iso adalah nama file yg anda donlot)
4. cd /media/isomount/ltsp-utils
5. rpm -ivh ./ltsp-utils-0.25-0.noarch.rpm
6. jalankan ltspadmin
7. Pilihlah menu "Install/Update LTSP Package"
maka akan muncul pesan berikut :
LTSP Installer configuration

Where to retrieve package from ?
isilah dgn :
file:///media/isomount/

In which directory would you like to place the LTSP client tree ?
jawablah dengan :
/opt/ltsp/

biarkan default [none] pada pilihan http proxy dan ftp proxy.
kemudian jawab dengan y dan tekan enter.

Setelah itu akan muncul pilihan berikut :

ltspadmin - v0.17??????????????????????????????????????? LTSP dir: /opt/ltsp-4.2

???? Component??????????????? Size (kb)?? Status
?[ ] ltsp_core??????????????????? 78704?? Not installed
?[ ] ltsp_debug_tools????????????? 4284?? Not installed
?[ ] ltsp_kernel????????????????? 13637?? Not installed
?[ ] ltsp_libusb??????????????????? 808?? Not installed
?[ ] ltsp_localdev??????????????????? 4?? Not installed
?[ ] ltsp_pciutils????????????????? 428?? Not installed
?[ ] ltsp_perl??????????????????? 28072?? Not installed
?[ ] ltsp_rdesktop????????????????? 628?? Not installed
?[ ] ltsp_scanners???????????????? 9876?? Not installed
?[ ] ltsp_vnc_module??????????????? 452?? Not installed
?[ ] ltsp_x_addtl_fonts?????????? 17368?? Not installed
?[ ] ltsp_x_core????????????????? 97716?? Not installed

Use 'A' to select ALL components, 'I' to select individual components. When you
leave this screen by pressing 'Q', the components will be installed.?? 'H'-Help??

Tekan A dan dilanjutkan dengan Q. maka proses instalasi akan berjalan sampai selesai.

Langkah Selanjutnya adalah MENGKONFIGURASI LTSP
ltspadmin - v0.17??????????????????????????????????????? LTSP dir: /opt/ltsp-4.2

LTSP Administration Utility

? Install/Update LTSP Packages
? Configure the installer options
? Configure LTSP

? Quit the administration program


Pilihlah menu Configure LTSP
kemudian tekan C

maka akan muncul tampilan berikut

ltspcfg v0.16????????????????????????????????????????? The Linux Terminal Server Project (http://www.LTSP.org)
? 1 - Runlevel
? 2 - Interface selection
? 3 - DHCP configuration
? 4 - TFTP configuration
? 5 - Portmapper configuration
? 6 - NFS configuration
? 7 - XDMCP configuration
? 8 - Create /etc/hosts entries
? 9 - Create /etc/hosts.allow entries
? 10 - Create /etc/exports entries
? 11 - Create lts.conf file

? R - Return to previous menu
? Q - Quit
Make a selection:


Mulailah mengkonfigurasi dari nomor 2,3,4,5,6,7,8,9,10,11
Setelah itu maka konfigurasi akan secara otomatis dibuat untuk anda.

Restart server ltsp anda dan pastikan service DHCP, NFS, TFTP, XDMCP berjalan secara otomatis.

Pasang sebuah pc yg tdk ber hdd dan mempunyai sebuah card lan yg ada boot pxe modulnya.
Jika semua langkah di atas benar anda kerjakan maka terminal pc tsb akan berjalan normal.

Konfigurasi selanjutnya akan di bahas di Part-2 Tutor ini.

see you.......!!!!!!!!!!!!!!

Tidak ada komentar:

Posting Komentar

Comment please on My Blog WORLD SECRET