Create ePUB File

CHM to ePUB file conversion

To convert chm file to epub, reference

For Android phone, one can use Alkido as the ebook reader.

Change Ubuntu Default Keyring Password

Here is a post on how to change keyring password on Ubuntu http://www.greenhughes.com/content/how-change-default-keyring-password-u...

It works on Ubuntu 10.4 too. The only trick on me is that, in order to change the default keyring password of a desktop user, I had to first change the user to administrator, then login to that user, change keyring pwd. After that, I can change the user back to a regular "desktop" user.

Rename a file based on inode

To rename file or directory in Linux using the inode number, we need to know their inode number. Use the ' ls -i ' to find out the inode number for the files or directory.

 

[root@fedora ~]# ls -i

SELinux and Apache

When the server has SELinux enabled, I can't even change the location of DocumentRoot. It kept giving me error about "DocumentRoot /var/www/newdir/html does not exist".

This is because the SELinux policy will deny httpd access to any unlabelled files by default.

Instead of disabling SELinux, we could try toggle the SELinux rule settings.

To see all SELinux values, do:
root# getsebool -a

To see all the apache related SELinux boolean values, do:
root# getsebool -a | grep httpd

Enable SSL on Apache-2.2

This is recorded on CentOS-5, Apache-2.2.3. Also, reference my notes on enabling ssl on apache 2.0.63.

Install httpd and mod_ssl:
root# yum install httpd mod_ssl
root# mkdir /etc/httpd/ssl
root# cd /etc/httpd/ssl
root# vi openssl.cnf

Here you can enter your content of openssl.cnf, and then generate a private key:
root# openssl genrsa -des3 -out server.key 1024

CentOS: Disable Unneeded Services at Boot Time

Determine which Services are Enabled at Boot

Run the command:
# chkconfig --list | grep :on

The first column of this output is the name of a service which is currently enabled at boot. Review each listed service to determine whether it can be disabled.

If it is appropriate to disable some service srvname , do so using the command:
# chkconfig srvname off

Ubuntu 10.4

Ubuntu is getting better and better.

Here are some notes taken during setup.

How to find per-process I/O statistics on Linux

 

A stackoverflow discussion, "How can I record what process or kernel activity is using the disk in GNU/Linux".

A perl script for the above discusson, "iodump".