IBM SystemX 3550 Server with Ubuntu 12.04 LTS
Unleashing the power of an Acer Chromebook C710 - 2615 (Part One)
Acer Chromebook C710 - 2615 (http://www.bestbuy.ca/en-CA/product/acer-acer-c7-11-6-chromebook-silver-...) is a cheap little machine running ChromeOS, it is fast even with only 2 GB memory. For the price $199, It is a value for money web access device. However, it is almost useless if you are not online.
There are a couple ways to unlease the power of this machine, making it an useful online and offline machine.
1. Install Ubuntu by ChrUbuntu
Mini How To : Courier-mta 0.62.2 on Fedora 11 (Part VIII)
Anomy Sanitizer can be used with Courier and Maildrop to filter potentially harmful email attachments for example, files with exe or bin extension.
1. Download Anomy Sanitizer http://mailtools.anomy.net/
anomy-sanitizer-1.76.tar.gz
2. Install
cd /usr/local
tar xvzf anomy-sanitizer-1.76.tar.gz
3. change Ownership to user courier
cd /usr/local/anomy/bin
chown -R courier.courier *
4. Enable Maildrop
vi /usr/lib/courier/etc/courierd
DEFAULTDELIVERY="| /usr/lib/courier/bin/maildrop"
MAILDROPDEFAULT=./Maildir
5. Maildrop configuration
SSL with Virtual Hosts Using SNI
Years ago I needed to host a couple of SSL virtual hosts with only one IP address, and http://www.drupalschool.net/node/1393 works for me. With the Apache 2.2.12 or newer version using mod_ssl (OpenSSL 0.9.8f or later), there is a new feature called "Server Name Indication (SNI)", the configuration is more simple. I found this configuration works for me.
# Ensure that Apache listens on port 443
Listen 443
# Listen for virtual host requests on all IP addresses
NameVirtualHost *:443
# Go ahead and accept connections for these vhosts
# from non-SNI clients
Upgrading Ubuntu from 13.04 to 13.10, Apache failed to serve virtualhost
After upgrading one of the machines from Ubuntu 13.04 to 13.10, Apache failed to serve VirtualHost on the machine.
I found the upgrading process has replaced apache2.conf.
I changed
# Include generic snippets of statements
IncludeOptional conf-enabled/*.conf
# Include the virtual host configurations:
IncludeOptional sites-enabled/*.conf
to
# Include generic snippets of statements
IncludeOptional conf-enabled/*
# Include the virtual host configurations:
IncludeOptional sites-enabled/*
MySQL says "No Such Process"
After rebooting one of the production servers this morning, MySQL failed to start, it complained:
[root@myserver /etc]# service mysql start
Starting MySQL../etc/init.d/mysql: line 159: kill: (6894) - No such process
I also tried the "Safe Mode", no luck
[root@myserver /etc]# mysqld_safe
Starting mysqld daemon with databases from /var/lib/mysql
STOPPING server from pid file /var/lib/mysql/myserver.myuniversity.ca.pid
130911 12:10:18 mysqld ended
Upgrading Server from Ubuntu 10.04 LTS to 12.04 LTS
For the past three years, this site was hosted on an Core2 3Ghz machine running Ubuntu 10.04 LTS, last night I upgraded it to Ubuntu 12.04 LTS. The upgrading process is very smooth, it took a couple of hours thou. After the upgrading everything seems working fine.
Sendmail as Smart Host
For years I had some PHP scripts hosting on the same machine as a mail server running Courier-MTA, the PHP scripts can send emails to anywhere in the world and of course to a doamin , say mydomain.com, hosted by the mail server.
For some reasons I need to move the PHP scripts to another machine on the same subnet, the email sending functions on the scripts started to have problems. The emails sent by the scripts can only reach the upstream domain and fail to reach mydomain.com. I think the upstream smtp server refuses to relay mail for me.
mod_cas to protect a directory of files in a public website
I need to provide access only for CAS users to a directory of files inside a public website. After installing mod_cas and configuring, I found this configuration works for me.
1. ssl.conf needs to be loaded before auth_cas.conf, so I renamed ssl.conf to 20_ssl.conf and auth_cas.conf to zz_auth_cas.conf (they are located at /etc/httpd/conf.d/ on my Red Hat Linux 6 server)
2. the content of /etc/httpd/conf.d/zz_auth_cas.conf
# mod_auth_cas is an Apache 2.0/2.2 compliant module that supports the
# CASv1 and CASv2 protocols
#
JQuery .on(), Late Binding and Delegated Event
It is very easy for JQuery to handle events triggered on objects which are present before the binding (Assignment of event-handlers to an action executed on an object). To handle late binding (objects are not present before the binding) is a bit tricky.
