First, open syslog.conf (normally at /etc/syslog.conf) and see which local log facility is available. A log ‘facility’ is a mechanism syslog provides to specify what type of program is logging a message. Local log facilities are for user defined programs. Here’s what the relevant portion of my syslog.conf file looks like: lpr.info/var/log/lpr.log mail.*/var/log/mail.log ftp.*/var/log/ftp.log install.*/var/log/install.log […]
Read More
Install Ubuntu Download an iso image of Ubuntu Server 12.04 from Ubuntu’s website and burn it to CD. Choose the following options during the “Software Selection” phase of the installation (optional): OpenSSH Server Manual Package Selection (+ to add package, q to quit and install) httpd > main > apache2.2-bin httpd > main > libapache2-mod-php5 […]
Read More
Replace the word apples with the word oranges in fruits.txt: Replace the word apples with the word oranges in multiple text files: Adapted from this page.
Read More
First install Mutt: Now send your message echo “test” | pipes a string to mutt that mutt uses as the message body -s “test” specifies the subject -a httpsd.tar.gz specifies the attachment email@example.com is the email address you want to send to.
Read More