How to find network card driver name and version on Linux

Question: An Ethernet network interface card is attached to my Linux box, and I would like to know which network adapter driver is installed for the NIC hardware. Is there a way to find out the name and version of a network card driver for my network card? For network interface card (NIC) hardware to […]
Continue reading…

 

How to remove all network namespaces at once on Linux

Question: I have created a number of network namespaces, and now I want to remove them all. Is there a way to delete all existing network namespaces at once from the command line on Linux? In Linux, the concept of “namespaces” was introduced as a way to isolate system resources among different groups of processes. […]
Continue reading…

 

How to disable MAC learning in a Linux bridge

Question: I am troubleshooting Ethernet bridging which I set up with a Linux bridge, and I would like to disable MAC learning on the Linux bridge. How can I do that? An Ethernet bridge is a network component which interconnects multiple Ethernet networks by forwarding packets from one network to another. Linux has a software […]
Continue reading…

 

How to enable .htaccess in Apache HTTP server

Question: I wanted to use .htaccess file to configure something for my website running on Apache web server. But the .htaccess file I placed in the website’s document root directory is not working. How can I enable .htaccess in Apache web server? An .htaccess file is a directory-level configuration file for Apache HTTP server, which […]
Continue reading…

 

How to add proxy exceptions on Ubuntu desktop

Question: My Ubuntu desktop computer is connected behind a corporate proxy. I configured necessary proxy setting on Ubuntu desktop, so all my HTTP/HTTPS traffic goes through the corporate proxy. However, I need to be able to selectively bypass the proxy for some websites (e.g., websites with corporate IP addresses or private IP addresses). On “network […]
Continue reading…

 

How to set up NFS server and client on CentOS 7

Question: I would like to share a directory via NFS between CentOS 7 hosts. What is the procedure for configuring NFS server and client, and enabling NFS mounts between them in CentOS 7 environment? NFS is a distributed file system protocol built on top of Sun’s RPC (remote procedure call). NFS is popularly used to […]
Continue reading…

 

How to install Newsbeuter command-line RSS reader on Linux

Question: I want to try Newsbeuter RSS reader. How can I install Newsbeuter on [Debian, Ubuntu, CentOS, Fedora or RHEL]? Newsbeuter is a command-line RSS feed reader designed to access RSS/Atom feeds in a terminal environment. Used together with a text-mode web browser such as elinks, lynx or w3m, Newsbeuter allows you to read RSS/Atom […]
Continue reading…

 

How to skip existing files when copying with scp

Question: I want to download (or upload) files from (or to) a remote server using the scp command. In this case, I want to skip existing files, so that they will not get overwritten by scp. But the scp command would blindly overwrite existing files if the same name files exist at either host. How […]
Continue reading…

 

How to resume a large SCP file transfer on Linux

Question: I was downloading a large file using SCP, but the download transfer failed in the middle because my laptop got disconnected from the network. Is there a way to resume the interrupted SCP transfer where I left off, instead of downloading the file all over again? Originally based on BSD RCP protocol, SCP (Secure […]
Continue reading…

 

How to fix Wireshark GUI freeze on Linux desktop

Question: When I try to open a pre-recorded packet dump on Wireshark on Ubuntu, its UI suddenly freezes, and the following errors and warnings appear in the terminal where I launched Wireshark. How can I fix this problem? “(wireshark:3480): GLib-GObject-WARNING **: invalid unclassed pointer in cast to ‘GObject’ (wireshark:3480): GLib-GObject-CRITICAL **: g_object_set_qdata_full: assertion ‘G_IS_OBJECT (object)’ […]
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 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 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…

 

How to install autossh on Linux

Question: I would like to install autossh on [insert your Linux distro]. How can I do that? autossh is an open-source tool that allows you to monitor an SSH session and restart it automatically should it gets disconnected or stops forwarding traffic. autossh assumes that passwordless SSH login for a destination host is already setup, […]
Continue reading…

 

How to compile ixgbe driver on CentOS, RHEL or Fedora

Question: I want to build and install the latest ixgbe 10G NIC driver. How can I compile ixgbe driver on CentOS, Fedora or RHEL? To use Intel’s PCI Express 10G NICs (e.g., 82598, 82599, x540) on your Linux system, you need to install ixgbe driver. While modern Linux distributions come with ixgbe driver pre-installed as […]
Continue reading…

 

How to disable IPv6 on Linux

Question: I notice that one of my applications is trying to establish a connection over IPv6. But since our local network is not able to route IPv6 traffic, the IPv6 connection times out, and the application falls back to IPv4, which causes unnecessary delay. As I don’t have any need for IPv6 at the moment, […]
Continue reading…