This is an apple!.
In this project you need to build a VM for the following homeworks.
Info If you are not familiar with LVM, KVM(virt-install, virsh), you can see the references, google it, or discuss with anybody.vmvg
br0.testing distribution, and should be up-to-date.virsh console <vmname>.lvcreate to create your own LV (Logical Volume).virt-install command to build your own VM.--connect
--name
--ram
--network
--nographics
--extra-args console=ttyS0
--disk
--location http://debian.csie.ntu.edu.tw/debian/dists/Debian7.1/main/installer-amd64/
In this project you need to build a LDAP server and remote login with your LDAP account.
dc=<student ID>,dc=csie,dc=ntu,dc=edu,dc=twta217SAL2013homeDirectory that the value can be read only by admin or yourself. pam such that we can use passwd to change LDAP password.passwd
/home/ldapuser/<account>/etc/skel/usr/local/etc/nslcd.confon bsd*.csie.ntu.edu.twsysadmin in LDAP and allow users in it use sudo
ldapsearch -x cn=linuxadminandldapsearch -x cn=bsdadminldapsearch -x uid=<student id>
ldapvi -Z --tls never -D uid=<student id>,ou=People,dc=csie,dc=ntu,dc=edu,dc=tw
dpkg-reconfigure debconfldapscriptsldapsearch/ldapvi to test LDAPid to test NSSThe project is pretty easy. You will know how to build the NFS server and client.
<studentID>-2
that can login by your LDAP accounts.
/home folder, and mount /home forder on your second machine using automount.
/etc/auto.* on linuxX as reference.In this homework, you will learn
In this homework, please work on your first machine.
apache2 and lighttpd. https on port 443.
( DocumentRoot/ is /var/www )http on port 80.
( DocumentRoot/ is /var/www )userdir module in both http/https services.
Request/~USER/URLwill link to/home/USER/public_html/URL
php module in both service. Connect to our mysql server intern.csie.ntu.edu.tw
interninternstudent ID. The structure is as follow:
You can using table example as template.
/var/wwwIn this homework, you will learn how to setup mail server.
This homework is extremely simplified, since the restricted environment.
In this homework, please work on your first machine.
sendmail server)
You should understand the following:
postfix daemonpostfix. This will remove exim4, which is okay.<student id>.csie.org as the domain your mail system. (mydestination)mail to send mail to other local account or outside domains addresses.sal for your account using alias_maps.postfix to write sasl_username to log files in order to identify mis-behaving accounts.
dovecot to let users download their mail using POP3 and IMAP protocols with TLS.
dovecot mdbox instead of mbox to store users mail.
roundcube webmail.
spamassassin, postgrey, amavis to reduce spam mail.
When install postfix, you can select "Internet site" for type, and config domain name.
You can test the result using the command mail rcpt@xxx.csie.org
You can view logs at /var/log/mail.log.
In this homework, you will learn how to setup bacic monitoring using Munin, and how to write your own plugins.
You can refer to 217's monitoring page for sample result.
In this homework, please work on your first machine and second machine.
On your first machine:
munin and munin-nodeOn your second machine:
munin-nodewww.ntu.edu.twFiles you may need to look at:
/etc/munin/munin.conf /etc/munin/munin-node.conf /etc/munin/plugins/*
A plugin is simply a executable/script that outputs to stdout; for example:
$ ./a-plugin config graph_title Load average graph_vlabel load load.label load $ ./a-plugin load.value 0.08
Your plugin will be run as the munin user (unless specified), so make sure all needed files are accessible from this user. You can test it by:
# munin-run a-plugin config # munin-run a-plugin
invoke-rc.d munin-node restart after any changes to configuration.ping.munin-node defaults to listen on port 4949, you can telnet into and test it.If the system services have changed, you can run this command to re-detect monitor config:
# munin-node-configure --shell | bash
| Week | Topic | Homework | Note | |
|---|---|---|---|---|
| 1 | 09/16 | Introduction | Introduction[pdf] | |
| 2 | 09/23 | KVM | HW1 announced. | |
| 3 | 09/30 | |||
| 4 | 10/07 | LDAP | HW1 due. HW2 announced. | LDAP[pdf] |
| 5 | 10/14 | |||
| 6 | 10/21 | |||
| 7 | 10/28 | NFS | HW2 due. HW3 announced. | |
| 8 | 11/04 | [Midterm] | ||
| 9 | 11/11 | Web server | HW3 due. | |
| 10 | 11/18 | HW4 announced. | ||
| 11 | 11/25 | |||
| 12 | 12/02 | Mail server | HW4 due. HW5 announced. | |
| 13 | 12/09 | |||
| 14 | 12/16 | mrtg | HW5 due. HW6 announced. | |
| 15 | 12/23 | |||
| 16 | 12/30 | HW6 due. | ||
| 17 | 01/06 | [Final] | ||