CLICK HERE FOR BLOGGER TEMPLATES AND MYSPACE LAYOUTS »

Jumat, 27 November 2009

ubuntu server & router

INSTALL UBUNTU UNTUK WEB SERVER

1) Kabel jaringan harus di lepas dulu
2) Masukkan cd ubuntu
3) Tekan del berkali-kali hingga muncul bios
4) Boot from cd [ENTER]
5) Install to the hardisk [ENTER]
6) pilih bahasa Englis [ENTER]
7) United status ENTER]
8) Keyboard……….. NO… [ENTER]
9) Us englis[ENTER]
10) Configure network eth0[ENTER]
11) continue[ENTER]
12) configure network manually[ENTER]
13) ip address 192.168.1.33 continue[ENTER]
14) netmask 255.255.255.192 continue[ENTER]
15) gateway 192.168.1.62 continue[ENTER]
16) nameserver 192.168.1.62 continue[ENTER]
17) hostname smk1 continue[ENTER]
18) partition disk manual [ENTER]
19) membuat partisi >partisi hardisk (sudah ter install ubuntu)>manual[ENTER]
kalau belum ada installan ubuntu >guided>resize.partisi punya windows bertanda ntfs (jangan di ubah)
20)klik free space yg sudah di partision klik free space yg sudah di partision [ENTER] Pilih creat new partition>ukuran Primary 20gb
Logikal(swap) 20gb
Free space………..gb
#Catatan:membuatnya satu-satu
Pilih type primary[ENTER]
Aktifkan :use as :ext3
jousnaling file system formal the partitions[ENTER] :yes,
mount point[ENTER] : /-
the root file system mount options:default
label:none
reserved blacks:5%
typical urage:standard
bootable flag :on
kemudian logical(swap)
21)pilih done setting up the partition
22)finish partitioning and write changes to disk >yes[ENTER]
23)select your time zone:Eastern[ENTER]
24)full name for the new user :smk1[ENTER]
25)user name for your account:smk1[ENTER]
26)password :smk1[ENTER]
27)confirmasi password:smk1[ENTER]
28)PROSES INSTALL……….
29)HTTP proxi information:dikosongi[ENTER]
30)choose software to install
<*>lamp server
<*>open ssh
<*>samba server
<*>dns
[ENTER]
#JIKA UNTUK ROUTER DI KOSONGI SAJA LANGSUNG CONTINUE TANPA DI ISI PILIHAN
…………..PROSES INSTAL
31)New password for the mysql root:smk1[ENTER]
32)install the GRUP :yes[ENTER]
33)finis the installation [ENTER]
34)install complete continue [ENTER]
35)cd di keluarkan
36)restart comtinue[ENTER]



KONFIGURASI UBUNTU SEBAGAI WEB SERVER

>>Membuat password root

Login:smk1[ENTER]
Pswd:smk1[ENTER]
Smk1@smk1:~$ sudo passwd root[ENTER]
[sudo]password for smk1:smk1[ENTER]
Enter new UNIX password:smk1[ENTER]
Retype new UNIX password:smk1[ENTER]
Passwd:password update successfully
Smk1@smk:~$ su[ENTER]
Password:smk1[ENTER]
Login ulang sebagai root
Login:root[ENTER]
Password:smk1[ENTER]
root@smk1:/home/smk1#cd /etc/network[ENTER]
root@smk1: /etc/network#vim interface[ENTER]
TEKAN i UNTUK MENGEDIT
auto eth0
iface eth0 inet static
address 192.168.1.33
netmask 255.255.255.192
gateway 192.168.1.62
TEKAN Esc :wq[ENTER]
root@smk1: /etc/network#/ /etc/init.d/networking restart[ENTER]
root@smk1: /etc/network#ifconfig[ENTER]
root@smk1: /etc/network#ping 192.168.1.62[ENTER]

>>SETTING DNS SERVER

root@smk1: /etc/network#cd /etc/bind[ENTER]
root@smk1: /etc/bind#cp db.172 3[ENTER]
root@smk1: /etc/bind#cp db.local www.server3.com[ENTER]
root@smk1: /etc/bind#vim 3[ENTER]
MUNCUL TAMPILAN

EDIT DG CARA TEKAN i Local host diganti www.server3.com. Root.server3.com. (

;
;BIND reverse data file for local host loop back interface
;
$ TTL 604800
@ IN SOA www.server3.com. root.server3.com. (
1 ;Serial
604800 ;Refresh
86400 ;Retry
2419200 ;Expire
604800) ;Negative Chace TTL
;
@ IN NS www.server3.com.
1.168.192 IN PTR www.server3.com.

SETELAH SELESAI TEKAN Esc:wq[ENTER]
root@smk1: /etc/bind#vim www.server3.com

MUNCUL TAMPILAN

EDIT DG CARA TEKAN i Local host diganti www.server3.com. Root.server3.com. (

;
;BIND reverse data file for local host loop back interface
;
$ TTL 604800
@ IN SOA www.server3.com. root.server3.com. (
1 ;Serial
604800 ;Refresh
86400 ;Retry
2419200 ;Expire
604800) ;Negative Chace TTL
;
@ IN NS www.server3.com.
@ IN A 192.168.1.33

SETELAH SELESAI TEKAN Esc:wq[ENTER]
root@smk1: /etc/bind#vim named.conf[ENTER]
TEKAN i UNTUK MENGEDIT
DI KETIK DI BAWAH TULISAN
Zone “255.in-addr.arpa” {
type master;
file “ /etc /bind/db.255”;
DIKETIK SENDIRI
};
Zone “3.in-addr.arpa” {
type master;
file ” /etc/bind/3”;
};
Zone “www.server3.com {
type master;
file “ /etc/bind/server3”;
};
SETELAH SELESAI TEKAN Esc:wq[ENTER]
root@smk1: /etc/bind# /etc/init.d/bind9 restart[ENTER]
root@smk1: /etc/bind#cd[ENTER]
root@smk1: /etc#cd /etc/bind[ENTER]
root@smk1: /etc/bind#vim resolv.conf[ENTER]

DIKETIK SENDIRI TEKAN i UNTUK MENGEDIT


search www.server3.com
nameserver 192.168.1.33
nameserver 192.168.1.62

SETELAH SELESAI TEKAN Esc:wq[ENTER]
root@smk1: /etc# /etc/init.d/networking restart[ENTER]
root@smk1: /etc#nslookup www.server3.com[ENTER]


>>INSTAL SAMBA DI UBUNTU

root@smk1: /etc/bind#cd[ENTER]
root@smk1:~apt-get install samba[ENTER]
root@smk1:~#cd /etc/samba/smb.conf /etc/samba/smb.conf.default[ENTER]
roor@smk1: /etc/samba#vim smb.conf[ENTER]

>>UNTUK MERESTART SAMBA:

root@smk1: /var/www# /etc/init.d/samba restart[ENTER]

>>CARA MEMBUAT FOLDER DI MK COMEN LINUX/MEMBUAT DIR SAMBA UNTUK SHARING:

root@smk1: /var/www#mkdir /sharing[ENTER]
root@smk1: /var/www#cd/[ENTER]
root@smk1: /var/www#ls[ENTER]
PINDAH dir cd /etc/samba
Mengedit smb.conf:vim smb.conf
Share definitions(tempat folder-folder yg di sharing)
DI HAPUS TANDA(;)
;[home]
;comment:Home directories
;browseable:no
MASIH TERTUTUP
KEMUDIAN DI UBAH
[home]
Comment:Home directories
Browseable:yes
SUDAH DI BUKA

>>SHARING FOLDER
DIKETIK SENDIRI
[nama folder]>MISAL wesite utama
comment:kelompok3
Path: /var/www
writable:yes
browseable:yes
read only:no


>>UNTUK MEMBERI INSTALAN WORDPRESS,SMF,PHP MY ADMIN:

1.Buka run /192.168.1.33[ENTER] Di computer client
2.Copykan file instalan wordpress,smf,php.my admin yang sudah di extract dan di rename….di folder web site
a.)wordpress di rename menjadi kelompok3,
b.)smf di rename menjadi forum_kelompok3
c.)php.myadmin di rename menjadi phpadmin.
Buka putty atau ketik di computer web server
root@smk1:~#cd /var[ENTER]
root@smk1: /var#chmod 777 –R www[ENTER]
root@smk1: /var#cd www[ENTER]
root@smk1: /var/www#ls[ENTER]
apache2-default kelompok3
root@smk1: /var/www#chmod 777 –R kelompok3/[ENTER]
root@smk1: /var/www#ls[ENTER]
apache2-default kelompok3 phpadmin
root@smk1: /var/www#chmod 777 –R phpadmin/[ENTER]
root@smk1: /var/www#ls[ENTER]
apache2-default kelompok3 phpadmin forum_kelompok3
root@smk1: /var/www#chmod 777 –R forum_kelompok3[ENTER]
3.buka mozila ketik di address bar192.168.1.33/kelompok3 dan buka mozila ketik di address bar 192.168.1.33/phpadmin>dan ikuti langkah selanjutnya……
4.buka mozila ketik di address bar 192.168.1.33/forum_kelompok3 dan buka mozila ketik di address bar 192.168.33/phpadmin>dan ikuti langkah selanjutnya….
Jika sudah jadi semua…folder-folder yg tadi sudah di copikan di folder web site yg folder installan di rename atau di hapus.supaya tidak ter install lagi….

>>PERINTAH UNTUK MENDAFTARKAN USER smk1 DI DALAM USER SAMBA

root@smk1: /var/www#smb passwd –a smk1[ENTER]

>>CARA MENBUAT USER UTK SAMBA:
root@smk1:~#useradd smk1[ENTER]

>>UNTUK MENGECEK:

root@smk1:~#cd /home[ENTER]
root@smk1:/home# ls[ENTER]
root@smk1:/home#adduser smk1[ENTER]

>>UNTUK MENAMPILKAN FILE WEB SAYA DI WEB SERVER

root@smk1: /var/www#


testing…

    welcome




Pindahkan ke pointer yang paling bawah untuk menyimpan tekan esc:wq[ENTER]













INSTALL UBUNTU UNTUK ROUTER

1)Kabel jaringan harus di lepas dulu
2)Masukkan cd ubuntu
3)Tekan del berkali-kali hingga muncul bios
4)Boot from cd [ENTER]
5)Install to the hardisk [ENTER]
6)pilih bahasa Englis [ENTER]
7)United status ENTER]
8)Keyboard……….. NO… [ENTER]
9)Us englis[ENTER]
10)Configure network eth0[ENTER]
11)continue[ENTER]
12)configure network manually[ENTER]
13)ip address 192.168.1.14 continue[ENTER]
14)netmask 255.255.255.0 continue[ENTER]
15)gateway 192.168.1.1 continue[ENTER]
16)nameserver 192.168.1.62 continue[ENTER]
17)hostname smk1 continue[ENTER]
18)partition disk manual [ENTER]
19)membuat partisi >partisi hardisk (sudah ter install ubuntu)>manual[ENTER]
kalau belum ada installan ubuntu >guided>resize.partisi punya windows bertanda ntfs (jangan di ubah)
20)klik free space yg sudah di partision klik free space yg sudah di partision [ENTER] Pilih creat new partition>ukuran Primary 20gb
Logikal(swap) 20gb
Free space………..gb
#Catatan:membuatnya satu-satu
Pilih type primary[ENTER]
Aktifkan :use as :ext3
jousnaling file system formal the partitions[ENTER] :yes,
mount point[ENTER] : /-
the root file system mount options:default
label:none
reserved blacks:5%
typical urage:standard
bootable flag :on
kemudian logical(swap)
21)pilih done setting up the partition
22)finish partitioning and write changes to disk >yes[ENTER]
23)select your time zone:Eastern[ENTER]
24)full name for the new user :smk1[ENTER]
25)user name for your account:smk1[ENTER]
26)password :smk1[ENTER]
27)confirmasi password:smk1[ENTER]
28)PROSES INSTALL……….
29)HTTP proxi information:dikosongi[ENTER]
30)choose software to install
<>lamp server
<>open ssh
<>samba server
<>dns
[ENTER]
#JIKA UNTUK ROUTER DI KOSONGI SAJA LANGSUNG CONTINUE TANPA DI ISI PILIHAN
…………..PROSES INSTAL
31)New password for the mysql root:smk1[ENTER]
32)install the GRUP :yes[ENTER]
33)finis the installation [ENTER]
34)install complete continue [ENTER]
35)cd di keluarkan
36)restart comtinue[ENTER]




CATATAN KONFIGURASI UNTUK ROUTER:

>>Membuat password root

Login:smk1[ENTER]
Pswd:smk1[ENTER]
Smk1@smk1:~$ sudo passwd root[ENTER]
[sudo]password for smk1:smk1[ENTER]
Enter new UNIX password:smk1[ENTER]
Retype new UNIX password:smk1[ENTER]
Passwd:password update successfully
Smk1@smk:~$ su[ENTER]
Password:smk1[ENTER]
Login ulang sebagai root
Login:root[ENTER]
Password:smk1[ENTER]
root@smk1:/home/smk1#cd /etc/network[ENTER]
root@smk1: /etc/network#vim interface[ENTER]
TEKAN i UNTUK MENGEDIT
auto eth0
iface eth0 inet static
address 192.168.1.14
netmask 255.255.255.192
network 192.168.1.0
broadcast 192.168.1.255
gateway 192.168.1.62
#dns-*options are implemented by the resolvconf package,if installed dns-nameserver 192.168.1.1
auto eth1
iface eth1 inet static
address 172.16.3.3
netmask 255.255.255.192
network 192.168.1.0
broadcast 192.168.1.62
TEKAN Esc :wq[ENTER]
root@smk1: /etc/network#/ /etc/init.d/networking restart[ENTER]
root@smk1: /etc/network#ifconfig[ENTER]
root@smk1:~#cat /etc/rc.local[ENTER]
KETIK DI BAWAH TULISAN:
#Bydefault this script does noting

Iptables –restore < /etc/iptables
Echo”1” > /proc/sys/net/ipv4/ip-forward exit0
TEKAN Esc :wq[ENTER]
root@smk1:#vim /etc/resolv.conf[ENTER]
TEKAN i UNTUK MENGEDIT
KETIK SENDIRI
nameserver 192.168.1.33
nameserver 192.168.1.62

TEKAN Esc :wq[ENTER]
rootsmk1:~#iptables –t nat –A POSTROUTING –S 192.168.1.22/255.255.255.0 –j MASQUERADE [ENTER]
root@smk1:~#iptables – save > /etc/iptables[ENTER]
root@smk1:~# /etc/init.d/networking restart[ENTER]
root@smk1:~#vim /etc/init.d/rc.local
esac
echo “i” > /proc/sys/net

-A PREROUTING –S 172.16.3.0/255.255.255.0 –P tcp –m tco –m tcp –dport 80-j DNAT –to – destination 172.16.3.3:3/28 –A POSTROUTING -0 eth0 –j MASQUERADE COMIT








INSTALL UBUNTU DG SATU LAN

login dg user yg di buat
pswd….
~sudo passwd root(password user)
~password baru
~root dan password
~vim /etc/network/interfaces
~shift:q[ENTER]
TEKAN i UNTUK MENGEDIT
auto eth0
iface eth0 inet static
address 192.168.1.32(terserah)
netmask 255.255.255.0
gateway 192.168.1.62
auto eth0=1
iface eth0=1 inet static
address 192.168.32.1
netmask 255.255.255.0
TEKAN Esc :wq[ENTER]
~ /etc/
~ifconfig
~ping ke gateway 192.168.1.62
Kemudian setting DNS SERVER computer server
~vim /etc/resolv.conf
Tambahkan :
nameserver 192.168.1.62
nameserver 202.134.0.155
TEKAN Esc :wq[ENTER]
~kemudian setting forward utk server
~vim /etc/sysctl.conf
Tambahkan di baris paling bawah
~net.ipv4.ip_forward=1
TEKAN Esc :wq[ENTER]
~sysctl –p(untuk menjalankan forward di atas)
~kemudian setting iptables
Ketik:
Iptables –t nat –A POSTROUTING –S 192.168.32.0/255.255.255.0 –j MASQUERADE
~iptables disimpan dg:
Iptables – save > /etc/iptables
~vim /etc/init.d/rc.local
~tambahkan di baris paling bawah
Iptables – restore. /etc/iptables
~restart computer server:reboot

0 komentar: