Category Archives: Linux Tutorial

[DirectAdmin-Problem] Fix DirectAdmin Installation on CentOS 64bit

Make sure you install these before installing DirectAdmin yum install gcc-c++ libxml2-devel libjpeg-devel libpng-devel -y As you notice on 64-bit, you have /lib and /lib64. It’s just the dynamic linking in the installer is a bit skewed, now run the … Continue reading

Posted in Linux Tutorial | Leave a comment

[OpenVZ-Problem] Server refused to allocate pty

If you are getting this error message in your OpenVZ vm, you can fix this by running command below in your VPS node: vzctl exec <VPSID> /sbin/MAKEDEV ptyp

Posted in Linux Tutorial | Leave a comment

[HOWTO] Adding new harddisk in Linux

This guide shows you how to add a new hard disk in linux OS. This allow user to easily add and boot up the hard disk without any pain. This howto is a practical guide without any warranty – it … Continue reading

Posted in Linux Tutorial | Leave a comment

Securing your DNS server (BIND)

Below is the tutorial on how to secure your dns server (bind). nano -w /etc/named.conf Then add this section of code to the top of named.conf. Replace 123.123.123.123 with your own IP. acl “trusted” { 123.123.123.123; 127.0.0.1; }; Then add … Continue reading

Posted in Linux Tutorial | Leave a comment

Detect DDOS Attack in Linux

This is a simply command in Linux to check the no. of connection opened per IP. /bin/netstat -ntu | awk ‘{print $5}’ | cut -d: -f1 | sort | uniq -c | sort -nr |more

Posted in Linux Tutorial | Leave a comment

How to delete over 100,000 files with rm

Ever tried to delete 100,000 files with rm? Got the following error message? /bin/rm: Argument list too long. Heh yeah me too. Here is the solution: (lets say you want to delete all files that end with .mbox) find . … Continue reading

Posted in Linux Tutorial | Leave a comment