List partitions by UUID

UUID mounts in fstab is very useful if you have external usb hdd that is often connected and disconnected.

To find out the UUID of a disk drive, you can use the simple `ls` command as below:

ls -l /dev/disk/by-uuid

Additionally below commands can also be used:

# blkid
# vol_id /dev/sda1
# tune2fs -l /dev/sda1

cannot create temporary file - (13) Permission denied

This is dues to bug in the default installation of qmail in handling local mails... such as mails to root@localhost where the qmail-local binary is not set with the right owner and permissions, as such mails are not able to be written to the spool located at "/usr/local/psa/handlers/spool".

The error in "/usr/local/psa/var/log/maillog" looks like below:

qmail-local-handlers[......]: cannot create temporary file - (13) Permission denied

To resolve, change the owner and permission of /var/qmail/bin/qmail-local to reflect the same as qmail-remote.

cd /var/qmail/bin
chown mhandlers-user:popuser qmail-local
chmod g+s,g-r,o-r qmail-local

Restart qmail:

/etc/init.d/qmail restart

Nice Tool for eeePC Linux Users : eee-control

(via shibuvarkala.blogspot.com)

eee-control is an easy-to-use utility for controlling Eee PC hardware under Linux. It can toggle hardware (WiFi, Bluetooth, etc.) ON and OFF, lets you configure all hardware hotkeys, enables aggressive powersaving, and more. Almost all Eee PC netbook models are supported to varying degrees.Ubuntu9.04 and higher will support eee-control with out any kernel modification.

Howto Enable and Disable ROOT Account in Ubuntu

(via shibuvarkala.blogspot.com)

Enabling the root account in ubuntu is rarely necessary. Almost everything you need to do as root of an Ubuntu system can be done via sudo or gksudo. If you really need a persistent root login, the best alternative is to simulate a root login shell using the following command...

How to make your own splashimage for GRUB2 on ubuntu 9.10

(via shibuvarkala.blogspot.com)

This how to help you to add your own grub splash image(image in the boot menu).

1. Open any picture in GIMP
2. Resize canvas size to 640x480 ( If you are an expert you can add higher resolutions)
3. Now Save as .png or .tga format (in some versions jpg also works)

How to Play DVD in Ubuntu 9.10 Karmic Koala

(via shibuvarkala.blogspot.com)

There is no default support od DVD in Ubuntu 9.10. You have to install the following for getting the DVD Support.First You Have to add the medibuntu repositories. Howto add medibuntu repository

How to make Ubnutu 9.10 Karmic Koala Multimedia Ready

(via shibuvarkala.blogspot.com)

Ubuntu 9.10 Required the following steps to Run Multimedia files like MP3, AVI, Mpeg, 3gp etc...

In Ubuntu 9.10 "Karmic Koala", the universe, multiverse and restricted repositories are activated by default.

Bulk update DNS TTL for all Plesk domains

This is useful when migrating servers and you want to reduce the DNS time to live for all domains.

Change the TTL on all domains to 5 mins (300 seconds) in the psa database.

# mysql -uadmin -p`cat /etc/psa/.psa.shadow` psa
mysql> UPDATE `dns_zone` SET `ttl` = '300', `ttl_unit` = '60' WHERE `id` >1;
mysql> quit

Then update the zone files via:

# mysql -Ns -uadmin -p`cat /etc/psa/.psa.shadow` -D psa -e 'select name from domains' | awk '{print "/usr/local/psa/admin/sbin/dnsmng update " $1 }' | sh

Verify with:

$ dig @nameserver domain.tld soa

Upgrade CentOS 5.3 to 5.4

Below is a clean method of updating, instead of doing a straight `yum update` which I have often done in the past and broken OS.

yum clean all
yum update glibc\*
yum update yum\* rpm\* python\*
yum clean all
yum update
shutdown -r now

How to install vmware server 2.0.x in Ubuntu 9.10 (Karmic)

(via www.ubuntugeek.com)

VMware Server is a free virtualization product for Windows and Linux servers with enterprise-class support and VirtualCenter management. VMware Server is a robust yet easy to use server virtualization product and is based on proven virtualization technology, which has been used by thousands of customers for many years.This tutorial will explain how to install vmware server 2.0.x in Ubuntu 9.10

Syndicate content
Comment