How to rename a user in Linux May 20, 2014
Antre du Tryphon
Search

How to rename a user in Linux

Simply issue this command: usermod -m -d /home/new-account-name -l new-account-name old-account-name It creates the home directory if it does not exists. It also copy the stuff of the old user into the new user account.

How to use the command line to make the internal speaker beep

Two simple steps: Install the beep utility. Executing beep on the command line will make the internal speaker beep. apt-get install beep Add pcspkr to /etc/modules to load it at boot time. You can load it manually by executing modprobe pcspkr

How to assign a static IP address in Ubuntu

February 23, 2014 · admin Ubuntu 11.10 Unix Ubuntu 11.04 Ubuntu Linux Ubuntu 12.04
Setting a static IP address in Ubuntu involves editing /etc/network/interfaces. If the interface is currently using DHCP, you will find these lines in the file. auto lan iface lan inet dhcp You will have to replace the above lines with a section that looks like: auto lan iface lan inet static address 192.168.1.80 netmask 255.255.255.0 network 192.168.1.0 broadcast 192.168.1.255 gateway 192.168.1.200 dns-nameservers 8.8.8.8 Make the changes effective by either rebooting or by issuing this command: sudo /etc/init.d/networking restart

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

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,

Recording a terminal session under Linux

It is possible to record a terminal session under Linux with ttyrec. It also records vi, emacs, etc. sessions. Fisrt, install ttyrec

A step by step guide to setup a Bluetooth keyboard and mouse on the Raspberry PI

August 9, 2012 · admin Linux Debian Raspberry PI Wheezy
A lot of people is having problem setting up a Bluetooth keyboard and mouse on the Raspberry PI. Things get more complicated when your wired keyboard or mouse does not work or prevent your Bluetooth dongle from working. There is hope. This step by step procedure will let you install them or at a minimum let you know what does not work. It uses only the command line interface. It is targeted for the Wheezy Debian distribution.

How To Setup A Protected Wireless Connection Via the Command-Line

August 5, 2012 · admin Unix Ubuntu Linux Debian Raspberry PI Wheezy
Setting up a wireless connection via the command line may vary depending on the USB Wireless Interface you are using. These instructions also work for the Raspberry PI running Wheezy. You must be root in order to carry out these instructions. Make sure that your wireless interface is recognized.

Useful WiFi related commands

iwconfig wlan0 up iwconfig wlan0 channel 1 iw reg get iw reg set JP ifconfig wlan0 hw ether de:ad:be:ef:c0:fe macchanger -r wlan0