Ben Chuanlong Du's Blog

And let it direct your passion with reason.

Missing Grub Menu of Windows Operating System

I came across this problem after I installed both Debian and Windows 7 system on my laptop. After searching online, I found a solution to this problem. 1. Open /etc/default/grub as root user and make sure the following line is somewhere in the file and uncommented:

    GRUB_DISABLE_OS_PROBER=false …

Make Your Linux Server Securer

  1. Define host access rules in /etc/hosts.allow and /etc/hosts.deny. Usually I only allow login to my private server from my home and work ip. If I have to login into my private server from some other network, I login to a computer at my workplace, login into …

Transfer Files over Network in Linux

Comparison of Network Drives (Remote File System)

  1. NFS is very fast but not secure and it is for Unix/Linux only. It is a good choice for local network sharing.

  2. Samba is fast, secure and cross-platform. it is good for general purpose sharing and popular in companies.

  3. SSHFS is slow …

Advanced Use of "head" and "tail"

It is suggested that you use Python instead of Shell to manipulate text files!!

Besides passing an unsigned integer as parameter to the option -n, you can also pass a signed integer to it. When a signed integer is passed to -n, it means from/to (inclusive/exclusive similar to …