Archive for category Linux

Review: 3ware 9650SE-2LP

Review: 3ware 9650SE-2LP

I just bought 3ware 9650SE-2LP for my Linux box.

I have tested CentOS 5.3 (x64) and Fedora 8 (x64). Both Linux default kernel included driver already.

It is very easy to use and configure.

My comments:
1. Easy to install for Linux
2. CLI for Linux is good
3. Performance is good
4. Firmware upgrade is easy

Overall comment is very good for Linux.

Reference:
http://www.3ware.com/products/serial_ata2-9650.asp

VN:F [1.5.0_759]
Rating: 0.0/5 (0 votes cast)
Total views: 127 views

, ,

No Comments

Linux: Disable check disk at start up

E.g. Disable check disk for /dev/sda1

tune2fs -c 0 -i 0 /dev/sda1

Edit /etc/fstab and modify last field to 0 instead of 1 or 2

/dev/sda2                /                       ext3    defaults       1 0
/dev/sda1             /boot                   ext3    defaults        1 0
VN:F [1.5.0_759]
Rating: 0.0/5 (0 votes cast)
Total views: 116 views

,

No Comments

Fedora Live CD login as root

Fedora Live CD Default login user is “liveuser”, when I use Live CD for system recovery or maintenance purpose, I will face access denied problem while accessing to different folders.

Following is a way for logging as root by using Fedora Live CD. (I tested this approach on Fedora Live CD 10)

1. Ctrl+Alt+F2
2. Login as root without password
3. cd /etc/pam.d/
4. vi gdm
5. Comment the following line
#auth       required    pam_succeed_if.so user != root quiet

6. save the change
7. Back to the graphical login screen.
8. You can use root as login user now.

Enjoy it !!

VN:F [1.5.0_759]
Rating: 0.0/5 (0 votes cast)
Total views: 858 views

, , ,

1 Comment

Check USB harddisk mounted or not in Linux

Today, I am checking how to use a script to check if USB hard disk is mounted or not in Linux.

After doing research, I developed the following script to check “mount” status.

1. Create a file chk_mount.sh.
2. chmod 755 chk_mount.sh
3. Add the follow content to “chk_mount.sh”.

if mount | grep sdb1 > /dev/null
then
        echo "sdb1 mounted"
else
        echo "No sdb1"
        mount /dev/sdb1 /backup
fi

If sdb1 is mounted, there is no action will be taken.
If sdb1 is not mounted, /dev/sdb1 will be mounted automatically.

You can put this script in cron job and check  mount status regularly.

VN:F [1.5.0_759]
Rating: 0.0/5 (0 votes cast)
Total views: 42 views

,

No Comments

How to check disk usage in Linux?

1. Login into Linux

2. Run the following command

3. Type df -h in command prompt

Linux df

VN:F [1.5.0_759]
Rating: 0.0/5 (0 votes cast)
Total views: 41 views

,

No Comments

How to check top level folder usage in Linux?

1. Login into Linux

2. cd /

3. du -h –max-depth=1

Linux du

VN:F [1.5.0_759]
Rating: 0.0/5 (0 votes cast)
Total views: 42 views

,

No Comments

How to bypass greylist in ESVA?

How to bypass greylist in ESVA?

I found that a lot of people looking for a way to disable greylist in ESVA.

Here is a workaround to handle greylist setting.

1. Login into ESVA console.

2. Edit file /etc/sqlgrey/clients_fqdn_whitelist.local
esva_01

3. Add *.* to this file. Save it.
esva_02

4. service sqlgrey restart

I tried this setting in ESVA 1.7 and ESVA2

VN:F [1.5.0_759]
Rating: 5.0/5 (1 vote cast)
Total views: 210 views

, ,

No Comments