Development in php, python, perl, C, C++, java, assembly MySQL DBE, MySQL DBA, LPIC-1, LPIC-2, Zend PHP5, Zend PHP5.3, Certified Ubuntu professional, and a dive instructor. 2 woensdag 25 april 12
Development in php, python, perl, C, C++, java, assembly MySQL DBE, MySQL DBA, LPIC-1, LPIC-2, Zend PHP5, Zend PHP5.3, Certified Ubuntu professional, and a dive instructor. Blog: www.adayinthelifeof.nl Twitter: @jaytaph 2 woensdag 25 april 12
Development in php, python, perl, C, C++, java, assembly MySQL DBE, MySQL DBA, LPIC-1, LPIC-2, Zend PHP5, Zend PHP5.3, Certified Ubuntu professional, and a dive instructor. Blog: www.adayinthelifeof.nl Twitter: @jaytaph “Jack-of-all-trades, master of none” 2 woensdag 25 april 12
tonen over commando) Which of the following commands can be used to decompress the file foo.gz? (gzip -d foo.gz, gunzip foo.gz) Which of these commands can be used to display one page of output at a time to the screen? (less & more) What command sends the output of cmd1 to the input of cmd2? (cmd1 | cmd2) What command do you use to create swap space? (mkswap) Which command will show how much free disk space is available in the current directory? (df) 9 woensdag 25 april 12
be configured to use RAID and the main requirement is to obtain maximum possible I/O throughput. Which of the following RAID levels will provide the greatest throughput using all five drives? (raid5) A BIND zone file has been updated, however, none of theDNS slaves have picked up the change. What is most likely the problem? (serie nummer niet geupdate) When configuring name-based virtual hosts in Apache, which directive contains the name of the virtual host that is matched to the "Host:" request from the client? (virtualhost) From a Linux client, what command line program can be used to browse Windows shares? (Enter the command only with no path information or parameters) (smbclient?) What file would be edited to change a user procmail recipe? (Please write only the filename without options, paths or arguments.) (.procmailrc) While testing some new settings for syslogd in /etc/testlog.conf none of the changes take effect when the SIGHUP signal is sent to syslogd. What is likely to be the problem? (Errors in config) 11 woensdag 25 april 12
specifiek command: command=”...” • Maak een account aan voor je buur(?man|vrouw), en zorg dat alleen HIJ(/ZIJ) vanaf zijn IP kan inloggen (en jij bij hem). Je mag NIET inloggen in een shell account, en je kunt alleen maar “top” (/ usr/bin/top) zien als je inlogt via ssh. 20 woensdag 25 april 12
specifiek command: command=”...” • Maak een account aan voor je buur(?man|vrouw), en zorg dat alleen HIJ(/ZIJ) vanaf zijn IP kan inloggen (en jij bij hem). Je mag NIET inloggen in een shell account, en je kunt alleen maar “top” (/ usr/bin/top) zien als je inlogt via ssh. 20 woensdag 25 april 12
(sdb en sdc) 2. Creeer 2 “logische” volumes: pfz-code (100MB) pfz-data (de rest) 3. Formatteer beide volumes als ext3 en mount op /pfz-data en /pfz-code 4. Creeer een bestand op pfz-data: dd if=/dev/urandom of=/pfz-data/pfz.dat bs=1024K count=300 5. “vervang” schijf /dev/sdb door /dev/sdd in de volume manager. Zorg dat je logische volume blijft werken (unmount /pfz-data + code eerst!). Gooi schijf / dev/sdb uit de volumegroep. 40 LVM - Logical Volume Manager woensdag 25 april 12
/dev/sdd in de volume manager. Zorg dat je logische volume blijft werken (unmount /pfz-data + code eerst!). Gooi schijf /dev/sdb uit de volumegroep. 45 woensdag 25 april 12
data van /dev/sdd1 verplaatst wordt naar /dev/sdc1 en haal /dev/sdd1 uit de volume groep. Mount /pfz-data daarna opnieuw. 7. Verwijder /pfz-data/pfz.dat en creeer een eigen bestand pfz.info met daarin de text “Hello world” 8. Voeg schijf /dev/sdb1 weer toe aan de pfzdata volumegroep toe. Creeer een nieuwe volumegroep (pfzbackup) en hang daar schijf /dev/sdd1 aan. Maak logische volume pfz-backup (100% van de volumegroep), formateer als ext3 en mount op /pfz-backup. 9. Maak een snapshot van de pfz-data volume op LV pfz-snapshot (is ook 100MB groot). Mount op directory /pfz-snapshot. 10. Tar de snapshot naar /pfz-backups (tar cvzf /pfz-backup/backup-001.tgz /pfz-snapshot). Umount en verwijder de snapshot LV. 11. Verander de text in /pfz-data/pfz.info bestand, maak een nieuwe snapshot en tar de snapshot opnieuw naar /pgz-backups. 46 LVM - Logical Volume Manager woensdag 25 april 12
100MB. Zorg dat alle data van /dev/sdd1 verplaatst wordt naar /dev/sdc1 en haal /dev/sdd1 uit de volume groep. Mount /pfz-data daarna opnieuw. 47 woensdag 25 april 12
toe aan de pfzdata volumegroep toe. Creeer een nieuwe volumegroep (pfzbackup) en hang daar schijf /dev/sdd1 aan. Maak logische volume pfz-backup (100% van de volumegroep), formateer als ext3 en mount op /pfz-backup. 49 woensdag 25 april 12