1, install the http server, make it automatically startup
2, create logical volume, name as lv0, lv0 belong to logical group vg0, PE size as 8M, logical volume as 40 PE, formatted as ext4, mount to /data, and make it automatically mounted when start,
to create physical partition, label as 0x8e, make it usable by partx command,
create pv,
create vg, the PE size as 8M
create lv, name as lv0, size as 40 PE.
formatted the system as ext4, better use the disk mapping system,
mount to /data, if there is no data folder, create it,
add the auto mount to fstab, /etc/fstab
another way to create the logical volume, logical volume name as engineering, belong to group development, 20 extends, 32M size for each extend in the logic group development, use vfat format to format and auto mounted to /mnt/engineering
command "sytstem-config-lvm" to enter the UI, create the logical group as development, physical extend size as 32M, select eh logical view, and create the logical volume name as engineering, the UI interface doesn't have the vfat format, needs to use the command to format the logical volume.
add one line to auto mount,
to mount all,
3, find the lines in the /etc/testfile contains "abcde", and dump into /tmp/testfile, and the sequence should be the same as /etc/testfile
to see the content of the /etc/testfile,
grep command search /etc/testfile,
4, configure the SSH as, has the remote access to your machine from with example.com, client with the remote.test cannot access to ssh to your system
modify the /etc/host.allow, to add one line,
modify the /etc/host.deny, to add one line,
add auto on,
5, Export your /common directory via NFS to the example.com domain only
modify the /etc/export, add one line,
restart the nfs and make it auto on,
test the result at the instructor computer, make sure the firewall let the nfs service go through, otherwise the problem will be,
enable the firewall to allow the nfs go through, two ways to do this,
a, let the eth0 to allow all service go through,
b, let the firewall to allow specific port to go through,
modify the nfs configuration file, to let the nfs to use the fixed port,
uncomment this line
restart the nfs service
add three line in the iptables,
restart the iptables,
test on the instructor computer again,