Search

03 December 2009

Jumpstart Untuk Solaris 10

Ini saya buat jumpstat dr bahasa indonesia, karena sudah bnyak bgt dr yg berbahasa inggris (sengaja)..

Untuk instalasi solaris pake jumpstart dibagi 2 bagian :
1. Langkah instalasi di SERVER JUMPSTART yang dipake buat ngeboot & install solaris dr SERVER lain yang mau di deploy, dibagi dalam beberapa steps :
a. Install SOLARIS buat si mesin ini dulu (install biasa .. pake CD / DVD media instalasi SOLARIS).

b. Buat direktori untuk flar image dan core jumpstart server trus share 2 direktori ntu pake NFS.
untuk kasus gw, gw bikin direktori /export/home/Jumpstart/FLAR untuk tempat naro FLAR IMAGE dan direktori /export/home/SUN/SOLARIS10.

root#mkdir /export/home/Jumpstart/FLAR
root#mkdir /export/home/SUN/SOLARIS10

Sharing 2 direktori ntu dengan menambahkan line dibawah ini ke file /etc/dfs/dfstab

root#share –F nfs –o ro,anon=0 /export/home/Jumpstart/FLAR
root# share –F nfs –o ro,anon=0 /export/home/SUN/SOLARIS10

Trus jalankan command dari terminal

root#shareall

c. Install core jumpstart server di direktori yang udah disiapin.
Mount CD  / DVD solaris, untuk kasus saya, saya gunakan DVD solaris 10 (otomatis ke mount pas di asupin ke drive).Jalankan command berikut :

root#cd /cdrom/cdrom0/s0/Tools
root#./setup_install_server /export/home/SUN/SOLARIS10

d. Bikin FLAR IMAGE dr SERVER yang mo di jumpstart trus taro hasil FLAR-nya ke direktori yang udah disiapin. Jalankan command berikut (untuk kasus saya, FLAR dibikin di SERVER JUMPSTART jadi si SERVER JUMPSTART jadi IMAGE buat semua):

root#flarcreate -n TEST -c -S /export/home/Jumpstart/FLAR/TEST.flar

e. Copy beberapa file yang diperlukan trus taro di direktori yang sama dengan direktori tempat naro FLAR IMAGE. Jalankan command berikut :

root#cd /export/home/SUN/SOLARIS10/Misc/jumpstart_sample
root#cp check /export/home/Jumpstart/FLAR/.

f. Bikin file “sysidcfg” di direktori yang sama dengan direktori tempat naro FLAR IMAGE (/export/home/Jumpstart/FLAR/).

Isi file “sysidcfg” (untuk kasus saya) :
timezone=Asia/Jakarta
timeserver=localhost
terminal=sun-cmd
network_interface=nxge0 {
hostname=superpinjal
default_route=192.168.1.1
ip_address=192.168.1.2
netmask=255.255.255.0
protocol_ipv6=no
}
name_service=NONE
security_policy=NONE

g. Bikin file “rule” di direktori yang sama dengan direktori tempat naro FLAR IMAGE.
Isi file “rule” (untuk kasus saya) :

# <matchrule> <pre-inst> <profile> <post-inst>
any -  -  flar.prof   -

h. Bikin file client profile (klo gw namanya “flar.prof”). Isi file “flar.prof” (untuk kasus saya, IP ADDRESS JUMPSTART SERVER : 192.168.1.10, cuman ada 4 partisi /, swap, /export/home, /var, DISK yang dikenali dan saya pakai c1t0d0 liat pake command “format”) :

install_type flash_install
archive_location nfs 192.168.1.10:/volA/jumpstart/UIP/UIP.flar
partitioning explicit
filesys c1t0d0s0 30720 /
filesys c1t0d0s1 65536 swap
filesys c1t0d0s3 20480 /var
filesys c1t0d0s4 20480 /export/home

2. Konfigurasi TFTP SERVER
edit file /etc/inet/inetd.conf dan un-comment line berikut :

#tftp   dgram   udp6    wait    root    /usr/sbin/in.tftpd      in.tftpd -s /tftpboot
sehingga menjadi
tftp   dgram   udp6    wait    root    /usr/sbin/in.tftpd      in.tftpd -s /tftpboot

khusus untuk SOLARIS 10, jalankan command berikut untuk mendaftarkan XML tftp service ke svc daemon

root#inetconv -i /etc/inet/inetd.conf

dan START tftp server (pastikan ada process tftp setelah start dengan “ps -edf |grep -i tftp”).

3. Konfigurasi /etc/ethers dan /etc/hosts sesuaikan dengan SERVER yang mau diinstall pake cara JUMPSTART. Untuk kasus saya, client yang akan di install menggunakan jumpstart server memiliki MAC ADDRESS : 0:9:3d:14:87:9 dan IP ADDRESS : 192.168.1.20 dengan hostname “GUNDUL”, maka
Isi file /etc/hosts

192.168.1.20    GUNDUL
192.168.1.10 JUMPSTART
Isi file /etc/ethers
0:9:3d:14:87:9    GUNDUL
0:21:28:4:67:50    JUMPSTART

4. Jalankan command “add_install_client” di SERVER JUMPSTART (untuk kasus saya, SOLARIS saya pake sun4v, cara liatnya tinggal “uname -a” aja .. liat disitu deh).
root#./add_install_client \
root#-s JUMPSTART:/export/home/SUN/SOLARIS10 \
root#-c JUMPSTART:/export/home/Jumpstart/FLAR/ \
root#-p JUMPSTART:/export/home/Jumpstart/FLAR/ \
root#GUNDUL sun4v

5. Langkah di sisi SERVER yang mo diinstall solaris pake cara JUMPSTART server.
init 0 (untuk masuk ke OBP), setelah udah masuk ke OBP ketikkan :

root#boot net – install

02 December 2009

Karakter Khusus Untuk HTML

Dibawah ini adalah beberapa karakter khusus beserta entitasnya :

Karakter HTML
&quot;
& &amp;
< &lt;
> &gt;
&euro;
Fungsi Spasi &nbsp;
Á &Aacute;
á &aacute;
 &Acirc;
â &acirc;
´ &acute;
Æ &AElig;
æ &aelig;
À &Agrave;
à &agrave;
Å &Aring;
à &Atilde;
ã &atilde;
Ä &Auml;
ä &auml;
? &forall;
¦ &brvbar;
Ç &Ccedil;
ç &ccedil;
¸ &cedil;
¢ &cent;
ˆ &circ;
© &copy;
¤ &curren;
° &deg;
÷ &divide;
É &Eacute;
é &eacute;
Ê &Ecirc;
ê &ecirc;
È &Egrave;
è &egrave;
Ð &ETH;
ð &eth;
Ë &Euml;
ë &euml;
&euro;
Ë &Euml;
½ &frac12;
¼ &frac14;
¾ &frac34;
Í &Iacute;
í &iacute;
Î &Icirc;
î
¡ &iexcl;
Ì &Igrave;
ì &igrave;
¿ &iquest;
Ï &Iuml;
ï &iuml;
« &laquo;
¯ &macr;
µ &micro;
· &middot;
¬ &not;
Ñ &Ntilde;
ñ &ntilde;
Ó &Oacute;
ó &oacute;
Ô &Ocirc;
ô &ocirc;
Œ &OElig;
œ &oelig;
Ò &Ograve;
ò &ograve;
ª &ordf;
º &ordm;
Ø &Oslash
ø &oslash;
Õ &Otilde;
õ &otilde;
Ö &Ouml;
ö &ouml;
&para;
± &plusmn;
£ &pound;
» &raquo;
® &reg;
ƒ &fnof;
Š &Scaron;
š &scaron;
§ &sect;
­ &shy;
¹ &sup1;
² &sup2;
³ &sup3;
ß &szlig;
Þ &THORN;
þ &thorn;
˜ &tilde;
× &times;
Ú &Uacute;
ú &uacute;
Û &Ucirc;
û &ucirc;
Ù &Ugrave;
ù &ugrave;
¨ &uml
Ü &Uuml;
ü &uuml;
Ý &Yacute;
ý &yacute;
¥ &yen;
Ÿ &Yuml;
ÿ &yuml;

&ensp
? &zwnj;
? &zwj;
&ndash;
&lsquo;
&rsquo;
&sbquo;
&ldquo;
&rdquo;
&bdquo;
&lsaquo;
&rsaquo;
&dagger;
&Dagger;
&permil;
&bull;
&hellip;
&trade;

Source Code C++ Bilangan Fibonacci

Bilangan fibonacci itu adalah jumlah dari derel 2 bilangan sebelumnya. Misalnya 0 1 1 2 3 5, dst...Di bawah ini adalah source code bilangan fibonacci dengan c++ :

#include <iostream.h>
int main ()
{

int Bil_2=1, Bil_1=1, Bil_n;
int Suku_n;

cout<<"Masukan Jumlah Deret Bilangan Yang Diinginkan : ";
cin>>Suku_n;
cout<<"\n";
cout<<"Deret Bilangan Fibonacci : ";

for(int i=1;i<=Suku_n;i++)
{
if(i==1)
cout< else if(i==2)
cout< else
{
Bil_n = Bil_1 + Bil_2;
Bil_2 = Bil_1;
Bil_1 = Bil_n;
cout< }
}

cout< cout<<"\n";
cout<<"Suku Bilangan ke-"< cout<<"\n";
system("pause");
return 0;

}


Selamat mencoba...

Tentang Penulis

My photo
Tangerang, Banten, Indonesia
Luchu bgt ngga cih..

Komentar


ShoutMix chat widget

Tomy Kurniawan © 2008