1 You should have Hard Disk that want to create partition 2 List or to show Disk # fdisk ( ls -l /dev/sd* )
3 Create partition # fdisk /dev/sdb1 (sdb1 = name your hard disk)
4 Type m to show print this menu 5 Type n add new partition 6 Type e choose extended or p primary 7 Type 1 ( 1 - 1044) 8 Type P to show your disk that you create 9 Type w to wirte Disk 10 Type Partprobe to restart 11 Format your partition # mkfs.ext2 /dev/sdb1
12 Create folder name Data in your Desktop # md /root/Desktop/ Data
13 Mount your Disk # mount /dev/sdb1 /root/Desktop/Data
Note if we want to Unmount we use command # umount /dev/sdb1 /root/Desktop /Data
1 We have Hard Disk 3 ***5 GB ***4 GB ***6 GB 2 We should to create partition ech other 3 Create LVM # PVCreate /dev/hdd1/dev/hda2/dev/hdb3 # Vgcreate 73root/dev/hdd1/dev /dev/hda2/dev/hdb3 # vlcreate -L +5GB -n Data1 73root # mkfs.ext3 /dev/73root /Data1 # lvscan
wait have more---------------------
How to Creat RIAD0
1 Mack Sure you are have 2 Hard Disk 2 Create partition on 2 Hard Disk 3 Create RIAD 0 that use Cammand # mdadm - creat --verbose /dev/md0 --level=stripe --raid -devices=2 /dev/sdb6 /dev/sdc5 Note: sdb6 = Name your Hard Disk sdv5 = Name your Hard Disk
4 use Command to Check # mdadm --detail /dev/md0
5 Format it type Command # mkfs.tex3 /dev/md0
6 Mount it but we should to choose plase that we mount store it # mount /dev/md0 /root/Desktop
1 Mack sure you are have 2 or 3 Hard Disk 2 Create partition 2 or 3 Hard Disk 3 Use Command Crete Raid 1 # mdadm --create --verbose /dev/md0 --level=mirror --raid-devices=2 /dev/ sdb1 /dev/sdc1
4 Use Command to show it # mdadm --detail /dev/md0
1 Introduction of moodle Moodle is afree and open source e-learning software platform all so know as acourse Managemnet system (CMS) or learning Management system (LMS) or virtual learning Environment. Moodle is designated to help educators create online course with opportunities for rich interaction.
2 Edit file /etc/named.conf # vim /etc/named.conf line 114-145-146-147
zone " somath.con" in { type master; file " master/somath.com.zone" ; };
zone " 73.168.192.in.addr.arpa" in { type master; file " master/192.168.73.zone" ; };
3 Save this file 4 Go this path # cd /var/lib/named/ 5 Copy 2file to location master and then rename ti # cp localhost.zone master/somath.com.zone # cp 127.0.0.zone master/192.168.73.zone
6 Edit this file that we copy the moment # cd master # vim somath.com.zone
$ITL 1W somath.com. IN SOA Ratana.somath.com. hostmaster.somath.com. ( 42 ; serial (d. adams) 2D ; efresh 4H ; retry 6W ; expiry 1W ; minimum somath.com. IN NS Ratana.somath.com. somath.com. IN A 192.168.73.1 Ratana IN A 192.168.73.1
# vim 192.168.73.zone
$ITL 1W 73.168.192.in-addr.arpa. IN SOA Ratana.somath.com. hostmaster.somath.com. ( 42 ; serial (d. adams) 2D ; refresh 4H ; retry 6W ; expiry 1W ; minimum
73.168.192.in-addr.arpa. IN NS Ratana.somath.com. 1 IN PTR somath.com. 1 IN PTR Ratana
7 Edit file /etc/hosts # vim /etc/hosts Line 23 192.168.73.1 Ratana.somath.com Ratana
8 Restart some services # rcnamed restart # rcnetwork restart
9 Test DNS # nslookup somath.com # nslookup 192.168.73.1
1 Install packet samba 2 Time ( Correct time between sure and windows ) 3 Vim /etc/ resolve.conf ** search somath.com ** nameserver 192.168.1.1 4 yast -> network service -> window domain membership ** Domain or workgroup: 192.168.1.1 ** and then select Also use SMB information for Linux Authentication and select Create home directory on login ** Finish -> it will put password 2003 ( administrator )
Samba access from web:
1 vim /etc/xinetd.d/swat # SWAT is the samba web administartor tool service swat { socket type = stream protocol = tcp wait = no user = root server = /usr/sbin/swat # only_frin = 127.0.0.1 log_on_faukyre +=USERID # disabke = yes }
2 Edit file /etc/apache2/vhost/webmailserver.conf and wirte some point <VirtualHost webmailserver.soamth.com:443> ServerName webmailserver.somath.com ServerName webmailserver.somath.com:443 SSLEngine on SSLCipherSuite ALL:!ADH: !EXPORT56:RC4+RSA:+HIGH:+MEDIUM:LOW:+SSLv2:+EXP:eNULL SSLCertificateFile /etc/apache2/ssl.crt/webmailserver.crt SSLCertificateFile /etc/apache2/ssl.key/webmailserver.key
3 Access web and Request Certificate https://webmailserver.somath.com 4 Click on Accept this certificate temporarily for this session 5 Click Ok 6 Click OK