Archive for category Linux
Review: 3ware 9650SE-2LP
Posted by Victor Tong in Linux, Product Review on November 18th, 2009
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
Linux: Disable check disk at start up
Posted by Victor Tong in Linux on October 17th, 2009
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 0Total views: 116 views
Fedora Live CD login as root
Posted by Victor Tong in Linux on September 15th, 2009
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 !!
Total views: 858 viewsCheck USB harddisk mounted or not in Linux
Posted by Victor Tong in Linux on July 26th, 2009
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.
Total views: 42 viewsHow to check disk usage in Linux?
Posted by Victor Tong in Linux on June 21st, 2009
1. Login into Linux
2. Run the following command
3. Type df -h in command prompt

How to check top level folder usage in Linux?
Posted by Victor Tong in Linux on June 21st, 2009
1. Login into Linux
2. cd /
3. du -h –max-depth=1

How to bypass greylist in ESVA?
Posted by Victor Tong in Linux on June 21st, 2009
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

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

4. service sqlgrey restart
I tried this setting in ESVA 1.7 and ESVA2
Total views: 210 views
Comments