How to fix “ImportError: No module named wxversion” on Linux

Question: I was trying to run a Python application on [insert your Linux distro], but I got an error “ImportError: No module named wxversion.” How can I solve this error in the Python program? Looking for python… 2.7.9 – Traceback (most recent call last): File “/home/dev/playonlinux/python/check_python.py”, line 1, in import os, wxversion ImportError: No module […]
Continue reading…

 

How to install git on Linux

Question: I am trying to clone a project from a public Git repository, but I am getting “git: command not found” error. How can I install git on [insert your Linux distro]? Git is a popular open-source version control system (VCS) originally developed for Linux environment. Contrary to other VCS tools like CVS or SVN, […]
Continue reading…

 

How to install a Brother printer on Linux

Question: I have a Brother HL-2270DW laser printer, and want to print documents from my Linux box using this printer. How can I install an appropriate Brother printer driver on my Linux computer, and use it? Brother is well known for its affordable compact laser printer lineup. You can get a high-quality WiFi/duplex-capable laser printer […]
Continue reading…

 

How to mount an LVM partition on Linux

Question: I have an external USB drive which contains several LVM partitions on it. I want to access some of those LVM partitions on my Linux. How can I mount an LVM partition on Linux? LVM is a logical volume management tool which allows you to manage disk space using the notion of logical volumes […]
Continue reading…

 

How to install Unity Tweak Tool on Ubuntu desktop

Question: I am trying to customize fresh Ubuntu desktop that I just installed. For that, I want to use Unity Tweak Tool. How can I install Unity Tweak Tool on Ubuntu? Unity Tweak Tool is a popular Unity desktop customization tool. As the name implies, this tool is applicable to Ubuntu’s default desktop environment only […]
Continue reading…

 

How to block specific user agents on nginx web server

Question: I notice that some robots often visit my Nginx-powered website and scan it aggressively, ending up wasting a lot of my web server resources. I am trying to block those robots based on their user-agent string. How can I block specific user agent(s) on nginx web server? The modern Internet is infested with various […]
Continue reading…

 

What is the Apache error log location on Linux

Question: I am trying to troubleshoot Apache web server errors on my Linux system. Where is the Apache error log file located on [insert your Linux distro]? Error log and access log files are a useful piece of information for system admins, for example to troubleshoot their web server, protect it from various malicious activities, […]
Continue reading…

 

How to view threads of a process on Linux

Question: My program creates and executes multiple threads in it. How can I monitor individual threads of the program once they are created? I would like to see the details (e.g., CPU/memory usage) of individual threads with their names. Threads are a popular programming abstraction for parallel execution on modern operating systems. When threads are […]
Continue reading…

 

How to fix “fatal error: security/pam_modules.h: No such file or directory”

Question: I was trying to compile a program on [insert your Linux distro], but was getting the following compile error: “pam_otpw.c:27:34: fatal error: security/pam_modules.h: No such file or directory” How can I fix this error? The missing header file ‘security/pam_modules.h’ is part of development files for libpam, a PAM (Pluggable Authentication Modules) library. Thus to […]
Continue reading…

 

How to view torrent file content on Linux

Question: I have a torrent file downloaded from the web. Is there a tool that allows me to view the content of a torrent on Linux? For example, I want to know what files are included inside a torrent. A torrent file (i.e., a file with .torrent extension) is a BitTorrent metadata file which stores […]
Continue reading…

 

How to convert MP3 ID3 tag encodings on Linux

Question: When I load MP3 files on Rhythmbox music player, song titles and artist names appear as gibberish and unreadable characters. I suspect this is an ID3 tag’s character encoding problem. How can I fix this problem? If your music player does not display some MP3 tracks correctly (e.g., with garbled symbols), it is most […]
Continue reading…

 

How to install Shrew Soft IPsec VPN client on Linux

Question: I need to connect to an IPSec VPN gateway. For that, I’m trying to use Shrew Soft VPN client, which is available for free. How can I install Shrew Soft VPN client on [insert your Linux distro]? There are many commercial VPN gateways available, which come with their own proprietary VPN client software. While […]
Continue reading…