How to prevent SSHD to listen on an address family
English · Français
March 1, 2014
Antre du Tryphon
Search

How to prevent SSHD to listen on an address family

It is possible to control on which address family sshd will listen to. In /etc/ssh/sshd\_config, simply add AddressFamily any to listen to IPv4 and IPv6 addresses. This is the default. Alternatively, add one of these to listen only to IPv4 (inet) or...

How to assign a static IP address in Ubuntu

February 22, 2014 · claude 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...

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

February 22, 2014 · claude 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/...

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,...

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...

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

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

August 5, 2012 · claude 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...

Masquerading or replacing outgoing SMTP email address with Postfix

August 1, 2012 · claude Ubuntu 11.10 Unix Ubuntu 11.04 Ubuntu postfix
Postfix can replace an outgoing email address by another one. To do so, you must perform these steps: Add in /etc/postfix/main.cf the following line