All Stories

How can I prevent running multiple instances of a python program, as I have to ensure a single instance of an program in Linux? We already have a solution for Shell and Perl scripts, but didn’t offer a solution for Python…

How to make Postfix use IPv4 only? Well, we only need to edit /etc/postfix/main.cf, and set inet_protocols to ipv4, like this, inet_protocols = ipv4 Restart is needed.

When we want to use grep on a binary file, we’d get errors like this, $ cat /bin/cat | grep GLIBC Binary file (standard input) matches We can ask grep to take binary file as a text with the parameter…

When I check my system today, I noticed a weird output from netstat’s output, joseph# sudo netstat -lnpt | grep 60023 tcp 0 0 0.0.0.0:60023 0.0.0.0:* LISTEN - There is no process attached to an open port. I used different command…

With the help of Fedora EPEL repo, we can easily install many popular packages. Currently the EPEL repo for RHEL 7 has more than 4,000 packages already. Then, how can we install EPEL repo on RHEL 7? Well this step should work…

PPAs (short for Personal Package Archives) are software repositories hosted by launchpad.net, designed for Ubuntu users and are easier to install than other third-party repositories. You can get more details from its home page. Then, is it possible for us to use PPA…

I normally use apt-get or aptitude to upgrade my system to the latest version. Is it possible to upgrade all packages except a given one? As we know, we can easily prevent updating of a certain package in CentOS/RHEL, we can…

I would like yum to update all system packages except the mysql related packages. How can I prevent yum from updating mysql on a CentOS/RHEL system? There are basically two ways, Way 1: edit yum config file /etc/yum.conf, and add this…

Error message from HP server: 1783-Slot X Drive Array Controller Failure Audible Beeps:  None Possible Cause: Controller failed. If this message is displayed after Options ROMPaq is run, problems may have occurred while attempting to flash the ROM. Action: Reseat the…

How can we install rethinkDB on Debian or Ubuntu? There are basically two ways for this task. Install RethinkDB with PPA ( Only works for Ubuntu/Debian) This way works for Ubuntu and related systems , since the precompiled binary by PPA…