Linux

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

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".

Set up Redmine/Mongrel as Service on CentOS

The original post is here http://www.how-to-linux.com/2008/12/set-up-mongrel-as-a-service-and-star...

Below are my modified steps in order to get it to work.

Step 1. Create a file /etc/mongrel/redmine.conf:
# mkdir /etc/mongrel
# vi /etc/mongrel/redmine.conf

and put the following into the file:

Named for OpenVZ Containers

To have the containers use the named on the host, we first install the bind package on the host. For CentOS, we just need to do

# yum install bind-chroot

Then follow a post like this one http://www.wains.be/index.php/2007/12/13/centos-5-chroot-dns-with-bind/, and configure the local named.

After that, just set the nameservers for each container:

# vzctl set 101 --nameserver 192.168.1.10 --save

(Assume the local host's IP is 192.168.1.10).

Install OpenVZ on a X86_64 CentOS

In wiki.openvz.org, there is an article on Install OpenVZ on a x86 64 system Centos-Fedora.

Some problems and fixes:

 

404 file not found

I kept getting random "404 file not found" when running "vzpkgcache" to install the cache template. To fix this, I found some  "yum.conf" files