Changing the MAC address with the macchanger command on Linux

Change mac address with macchanger Linux command

A Media Access Control (MAC) address is a unique number that gets assigned to every network interface, including Ethernet and wireless. It’s used by many system programs and protocols in order to identify a network interface. One of the most common examples would be in the case of DHCP, where a router assigns an IP address to a network interface automatically. The router will know which device it has assigned an IP address to by referring to the MAC address.

Unlike an IP address, which is temporary and can be changed easily, MAC addresses are hardcoded into a network interface from the manufacturer. However, it’s still possible to change or “spoof” a MAC address temporarily. On Linux systems, one of the easiest ways to do this is with the macchanger command line program. There are both legitimate and shady reasons for why a Linux user may find the need to change a MAC address.

In this guide, we’ll show how to install the macchanger program on major Linux distros and then use the macchanger command to change the MAC address of a network interface either to a random value or some specific number. Follow the examples below to learn how.

In this tutorial you will learn:

  • How to install macchanger on major Linux distros
  • How to identify current MAC address and network interface
  • How to change an interface’s MAC address
  • How to change interface to a specific MAC address

Read more

Bash script to test hard drive transfer speed

Bash script to test hard drive transfer speed

The Linux operating system gives us many ways to measure the performance of our computer, including individual components such as the hard drive. There are multiple tools for the job, and it is also possible to use built in tools and create our own test to measure real results. In this tutorial, we will see how to use a Bash script to test the transfer speed of a hard drive on a Linux system. We will also learn about some other tools which can supplement our Bash script and give us and give us additional data points when it comes to the transfer speed of our hard drive, including read and write speed.

Read more

Clone / Burn Encrypted DVD using Linux

Clone / Burn Encrypted DVD using Linux

Hollywood movies that have been released on DVD or Blu Ray will usually come with encryption on the disk to help hinder pirated copies from making it online or for sale on the street. Much to Hollywood’s dismay, this encryption is easily foiled by any Linux system user with even a rudimentary knowledge of technology. By default, applications like Brasero will refuse to read these encrypted disks, but you will see how to overcome that obstacle shortly. In this tutorial, we will show you how to clone or burn an encrypted DVD using Linux.

Read more

Set and Get environmental shell variable using c++

Set and Get environmental shell variable using c++

Environment variables in the Bash shell can be accessed or set using a C++ program. This is facilitated by the getnenv() and putenv() functions defined in the C/C++ stdlib.h library. Environmental variable expansion is a great feature of a Linux shell as it enables programmers and users to rely on the environment settings of each user separately. C++ getenv() will read all exported environmental variables and putenv() will set existing or create new variables.

Read more

Using CurlFtpFS to mount remote FTP directories on Linux

Mount remote ftp directory host locally into linux filesystem

Do you often access your ftp site to make some simple changes or to share some documents that you wish to be accessible from anywhere?

You can make access to your ftp resource easier with the CurlFtpFS Linux utility. This fantastic utility allows you to mount your ftp site to any directory within your Linux filesystem.

In this guide, we’ll go over the installation of CurlFtpFS on major Linux distros, then cover the step by step instructions to configure it.

In this tutorial you will learn:

  • How to install CurlFtpFS on major Linux distros
  • How to mount remote FTP directory using CurlFtpFS
  • How to mount an FTP directory automatically with /etc/fstab

Read more

Send an email using Telnet

Send an email using Telnet

In this guide, we’ll show the step by step instructions to send an email using Telnet on a Linux system. This a great way to test your mail server configuration such as exim, sendmail or postfix without the need for an email client.

In this tutorial you will learn:

  • How to install Telnet on major Linux distros
  • How to send an email using Telnet protocol on Linux

Read more

perl: warning: Falling back to the standard locale error message on Linux

Falling back to the standard locale – Solution

If you are trying to use the perl command in your terminal or execute a script coded in the language, you may encounter the Falling back to the standard locale error. This indicates that your Linux system is missing a particular software package that Perl relies on, or the software has become corrupted or misconfigured. In this tutorial, we will show you how to remedy the error and get your perl command working again.

Read more