General Info

cPanel Quota Issue

Hello,

Recently there has been issues on some cPanel servers when attempting to obtain the disk quota for specific users. The problem is that it would return N/A in the cPanel account when looking at disk usage. Same result would appear when trying to get disk space for the user manually in the command line:

/usr/local/cpanel/bin/quota $user

cPanel confirmed that the issue is a bug and they have created an internal report on it. For the time being, they are reporting that they were able to temporarily fix the issue by doing the following:
(more…)

Continue ReadingcPanel Quota Issue

Use Google Authenticator For Two-Factor SSH Authentication in Linux

From scottlinux.com

For a very secure and convenient way to add two-factor ssh auth to your Linux server, you can use Google Authenticator. I’ll show you how to set this up!

1. In Ubuntu 13.04:


$ sudo apt-get install libpam-google-authenticator

2. Then, from an open bash shell with your user account on that server and run the following:

$ google-authenticator

Scan the bar code with your Android phone or iPhone to add the key. (Or alternatively, open the URL provided on your phone to add the key.)

Note: save the emergency scratch codes in case you need to access the server without your phone!

(more…)

Continue ReadingUse Google Authenticator For Two-Factor SSH Authentication in Linux

Delete millions of files faster

From http://linuxnote.net

Another Benchmark

Several days ago, Keith-Winstein replied at the Quora Posts mentioned that my previous benchmark cannot be reproduced due to the time of all deletion operations lasting too long. To make it clear, those weird data might be that my computer was under heavy load in the past years that it may exist some fs errors during the previous benchmarks. Yet, I am not sure about it. Anyway, I got myself a relatively new rackable computer and did the benchmark again. This time I used /usr/bin/time that offers more detail results. Here is the new result,
(more…)

Continue ReadingDelete millions of files faster

Exclude Options for Tar +

Quick thought…

You can pretty much exclude a file, folder or specific pattern when using tar:


# tar cvfp 052613tar.tar /my/path/Example.com_DIR --exclude=/my/path/Example.com_DIR/images

 
or tar everything in the current directory, but exclude two specific files

# tar cvpf 052613tar.tar * --exclude=index.html --exclude=myimage.png

 
or

tar cvpf 052613tar.tar * --exclude='file1' --exclude='pattern*' --exclude='file2'

  


p.s some tar basics…

(more…)

Continue ReadingExclude Options for Tar +