How to change the network interface name in Ubuntu 12/13 February 22, 2014
Antre du Tryphon
Search

How to change the network interface name in Ubuntu 12/13

February 22, 2014 · admin Unix Ubuntu Linux Ubuntu 12.04
Two files need to be modified to change the name of a network interface in Ubuntu. For example, if you want to change eth0 for lan, simply change the NAME attribute from eth0 to lan in these files and reboot. Do not modify the KERNEL attribute. /etc/udev/rules.d/70-persistent-net.rules /etc/network/interfaces

How to find duplicate files on Linux?

It is pretty straight forward in Linux, install fdupes. sudo apt-get install fdupes Type the following command to display the documentation man fdupes

Accessing a serial port from a web server

On most Linux distribution, it is impossible to access a serial port (ex. /dev/ttyS0) from a web server such as Apache or lighttpd using a cgi. Simply add the user under which the web server runs (www-data for example) to the group dialout. To do so, use vigr from the command line and add the user on the dialout group line. Such a line will typically look like:

Script listing all the keys on a memcache server

This script lists all the keys on a memcache server.

Ralink RT5572 based WiFi Usb Dongle setup on Ubuntu 12.04

The WiFi USB dongles based on the newest RT5572 chip set do not work out of the box on Ubuntu.  Unex DNUR-V72, D-Link DWA-160 Rev B and TP-Link TL-WDN3200 dongles are based on this chipset. You will need to compile the source code of the driver to make it work.  Do not leave this page!  This involves only a few easy steps. 1. Save this page's link.  You will have to reboot and come back to it. 2. Un-plug the WiFi USB dongle from your computer. 3. Reboot your computer. 4. Download the driver's source code from the manufacturer website. Alternatively, you can download a version of this file from this site. Files have been already edited. Steps 9, 10 and 11 are then unnecessary. Note that the filename is slightly different (DPO\_RT5572\_LinuxSTA\_2.6.0.1\_20120629\_EDITED.tar.bz2.bz2). 5. Open a terminal window. 6. Change to the directory that contains the driver's source code downloaded previously.  For example,