Similar Posts
How to make Linux automatically reboot after a kernel panic?
ByEric MaAfter a kernel panic, it is impossible to remotely connect to the Linux server to reboot it by SSH. How to make the panic kernel automatically reboot itself? Linux kernel has a nice feature that reboots itself after a timeout when a kernel panic happened. Usually, it is disabled by default. To turn it on,…
mkfs refuses to make filesystem with message “is apparently in use by the system; will not make a filesystem here!”
ByEric MaI have a disk from another server installed on a new server. However, when I try to make a filesystem on it, mkfs reports # mkfs -t ext4 /dev/sdd1 mke2fs 1.42.8 (20-Jun-2013) /dev/sdd1 is apparently in use by the system; will not make a filesystem here! This is a new disk to the new server….
How to set up the Java environment in Linux?
ByEric MaI am using Fedora 20. I installed the rpm from Oracle for the Oracle JDK. How to set up the environment so that the Java environment is Oracle JDK instead of the OpenJDK? The Oracle JDK is install to /usr/java/ directory. On my Fedora 20, it looks like this: $ ls /usr/java -l total 4…
How to get the latest commit’s hash in git?
ByEric MaI am looking for a better method for getting the latest commit’s hash in git. I know git log -1 can show the info of the latest commit and from the info of the latest commit I can use grep and other tools to get the hash. Is there better method supported from git? Note:…
How to change hostname on Linux Mint?
ByEric MaHow to change the hostname on Linux Mint? The hostname (e.g. mypc or mypc.example.com) can be changed by putting the hostname in one line in the file /etc/hostname on Linux Mint. Read more: How to Change Hostname of Fedora Linux How to get hostname in Python on Linux? Getting Hostname in C Programs in Linux…
Thunderbird Tips: Default Descending Email Sort Order and Inline Quote When Reply
ByEric MaThunderbird is a great email client and what make it special is deeply configurable like Firefox. For me, I like to view email in the descending sort order and inline quote relied email content when replying emails. Let’s look at how to set the default order as descending sort order and quote mode as inline…