CLICK HERE FOR BLOGGER TEMPLATES AND MYSPACE LAYOUTS »

Senin, 08 Februari 2010

rangkuman ubuntu 9.10

1. #sudo passwd root
2. #vim /etc/network/interfaces
3. auto eth0
iface eth0 inet static
address 200.100.50.9
netmask 255.255.255.240

auto eth0:1
iface eth0:1 inet static
address 200.100.51.9
netmask 255.255.255.240
4. #:wq
#/etc/init.d/networking restart
5. #cd /etc/bind
6. #cp db.127 9
7. #cp db.local www.smk1batang.sch.id
8. #vim 9
www.smk1batang.sch.id. root.smk1batang.sch.id. (
@ IN NS www.smk1batang.sch.id.
50.100.200 IN PTR www.smk1batang.sch.id.
9. #:wq
10. #vim www.smk1batang.sch.id
www.smk1batang.sch.id. root.smk1batang.sch.id. (
@ IN NS www.smk1batang.sch.id.
@ IN A 200.100.50.9
@ IN AAAA ::1
11. #:wq
12. #cd /etc/bind
13. #cp db.127 tkj
14. #cp db.local tkj.smk1batang.sch.id
15. #vim tkj
tkj.smk1batang.sch.id. root.smk1batang.sch.id. (
@ IN NS tkj.smk1batang.sch.id.
50.100.200 IN PTR tkj.smk1batang.sch.id.
16. #:wq
17. #vim tkj.smk1batang.sch.id
tkj.smk1batang.sch.id. root.smk1batang.sch.id. (
@ IN NS tkj.smk1batang.sch.id.
@ IN A 200.100.51.9
@ IN AAAA ::1
18. #:wq
19. #vim named.conf.default-zones
zone “25.in-addr.arpa” {
type master;
file “/etc/bind/25”;
};
zone “www.smk1batang.sch.id” {
type master;
file “/etc/bind/www.smk1batang.sch.id”;
};
zone “tkj.in-addr.arpa” {
type master;
file “/etc/bind/tkj”;
};
zone “tkj.smk1batang.sch.id” {
type master;
file “/etc/bind/tkj.smk1batang.sch.id”;
};
20. #:wq
21. #/etc/init.d/bind9 restart
22. #cd /etc
23. #vim resolve.conf
search www.smk1batang.sch.id
nameserver 200.100.50.9
search tkj.smk1batang.sch.id
nameserver 200.100.51.9
24. #:wq
25. #/etc/init.d/networking restart

26. #/etc/init.d/bind9 restart
27. #nslookup www.smk1batang.sch.id
28. #nslookup tkj.smk1batang.sch.id
29. #vim /etc/hosts
200.100.50.9 www.smk1batang.sch.id
200.100.51.9 tkj.smk1batang.sch.id
30. #/etc/init.d/networking restart
31. #vim /etc/apache2/sites-available/default

ServerAdmin webmaster@localhost
ServerName www.smk1batang.sch.id


ServerName tkj.smk1batang.sch.id
DocumentRoot /home/tkj

Options FollowSymLinks
AllowOverride None


Options Indexes FollowSymLinks MultiViews
AllowOverride None
Order allow,deny
Allow from all


32. #:wq
33. #/etc /init.d/apache2 restart
34. #cd
35. #apt-get install samba
36. #mkdir /home/tkj
37. #cd /etc/samba
38. #vim smb.conf
[web sekolah]
comment = All Printers
browseable = yes
path = /var/www
writeable = yes
guest ok = yes
read only = no
create mask = 0700
[web jurusan]
comment = web
browseable = yes
path = /home/tkj
writeable = yes
guest ok = yes
read only = no
create mask = 0700
39. #:wq
40. #/etc/init.d/samba restart
41. #smbpasswd –a root
42. #smbpasswd –a peserta9
43. #cd /etc
44. #ls
45. #cd /var/www
46. #ls
46. #chmod 777 –R index.html
#chmod 777 –R /var
#chmod 777 –R /var/www
#chmod 777 –R /home/
#chmod 777 –R /home/tkj
Ip client 200.100.50.4
255.255.255.240
200.100.50.9
200.100.51.9
Start>run>//200.100.50.9>copykan web

0 komentar: