• How to Fix ImportError: No module named virtualenv in CentOS?

    I was trying to compile Letsencrypt package on my CentOS machine and landed up on this error message – ImportError: No module named virtualenv. ./letsencrypt-auto  :::::::::::::::::::::::::::: Traceback (most recent call last): File “/usr/bin/virtualenv”, line 2, in <module> import virtualenv ImportError: No module named virtualenv By default virtualenv was installed under ‘/usr/local/bin‘, but executing…

  • How to Convert PPK File to OpenSSH Keys and Login using SSH in Linux?

    Question: Thanks for the tutorial on “How to login to Linux instance using keys“. I used PPK key file via PuTTy to login to my Linux instance. Could you tell me how to convert PPK file into OpenSSH keys format, so that I can login to my instance using SSH command…

  • How to Disable LogWatch Email Reports in CentOS/RHEL/Fedora?

    I have been using LogWatch on my CentOS box to monitor Kernel errors, mailbox usage, disk usage, refused SSH connections, HTTP errors, sudo usage etc…(checkout this tutorial to Configure LogWatch). I have also configured it to generate daily reports and mail it to my personal gmail id. I have been…

  • How to Fix Python Fatal error: Py_Initialize: Unable to get the locale encoding [Solved]

    I had successfully compiled Python3.5 from source. But when I execute ‘python3.5‘ command, I get an error message as “Fatal Python error: Py_Initialize: Unable to get the locale encoding. ImportError: No module named encodings“. Here’s the complete error message: # python3.5 Fatal Python error: Py_Initialize: Unable to get the locale encoding ImportError: No…

  • How to Fix Configure error: cannot find macro directory ‘m4’ [Solved]

    I was trying to configure LibVMI library on Xen Hypervisor. While autogen.sh went on fine, the configure script failed with an error message as – configure: error: cannot find macro directory ‘m4‘. I tried to install ‘m4‘ package using ‘yum install m4‘, but it seems like the package is already installed…

  • How to Block or Turn Off Annoying App Notifications on Android

    I recently installed MakeMyTrip app on Android to book a hotel for my vacation. The app was good and in fact I booked a hotel and enjoyed my trip. But the biggest problem with the app is that, it sends out too many notifications (deals, promotions etc…) and that was really…

  • How to Check if Bash has Shellshock Vulnerability?

    Shellshock vulnerability was found during the late 2014 (to be precise, the impact was posted on CVE-2014-6271 on 24 September 2014). Later an update was released in bash version 4.1.2-15 with a fix for Shellshock vulnerability. Well, the entire world gone on to update the bash and secured their shell from Shellshock,…

  • How to use ‘tar’ command to Extract .xz file packages in Linux?

    If you are a regular reader at Techglimpse, then you might have read our article on How to extract .xz file packages in Linux. Well, that tutorial was primarily aimed at installing XZ utils to read .xz file packages in Linux. But you can also use ‘tar‘ command to read and extract…

  • How to Compile and Install Python3.5 and Python-pip from Source on CentOS

    Hi, I recently followed your guide to install Python-pip on my CentOS Box. As you had told in the article, ‘yum install python-pip‘ didn’t work, probably I need to configuring another yum repository. Anyway I tried wget https://bootstrap.pypa.io/get-pip.py and install it via ‘python2.4 get-pip.py‘ command. Unfortunately, the command exited with an error message…

  • What is the use of ‘/usr/bin/[‘ [Square Bracket] Command in Linux?

    Today I came across an interesting command ‘[‘ (square bracket) via the famous Linux blog called nixCraft. It was quite an interesting post that explained the use of ‘/usr/bin/[‘ command in Linux. But you know what, I have been working in Linux for few years now and I didn’t know this…

  • How to Check If a Visitor to your Website is from a Mobile or PC in PHP?

    Ever want to check if a particular visitor to your website is from a mobile device or desktop using PHP? then here’s how you can do that. $_SERVER in PHP, a super global variable or an array that contains information about the server’s hostname, remote IP address, HTTP user agent, script…

  • Block Out Spam Referral Traffic from qualitymarketzone.com in Google Analytics

    Less than a month ago, I wrote few articles on Ghost spams and how to block an unwanted web traffic via spam referrals. Today, I saw another spam referral in Google analytics – this time, the spammer is qualitymarketzone dot com. This spam referrer has made few entries in my Analytics report…

  • [MediaWiki] Error creating thumbnail: Unable to save thumbnail to destination [Solved]

    I’m quite new using MediaWiki version 1.24.4. The MediaWiki allows me to upload files such as PDF, docx, ppt etc…and it works fine as well. But I get this error ‘Error creating thumbnail: Unable to save thumbnail to destination‘ while uploading image files such as jpeg or png. I’m able…

  • How to Reset MediaWiki’s User account Password using SQL query?

    There are few ways through which you can reset the user account’s password in MediaWiki. The first method is by using changePassword.php maintenance script – the administrator can reset the password and communicate the same to the user. The second method is by logging-into the database server and using SQL queries to…

  • How to Edit Multiple files and Switch between those in VIM using Buffers

    I have been using VIM editor for quite a long time, but until today I didn’t know how to open and edit multiple files at once and switch between those quickly. I’m writing this tutorial for people like me who didn’t know about Buffers in VIM editor. To edit multiple files using…