How to prevent SSHD to listen on an address family
March 1, 2014
· admin
Ubuntu 11.10
Unix
Ubuntu 11.04
Ubuntu
SSH
Ubuntu 12.04
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 IPv6 (inet6) respectively.
AddressFamily inet
AddressFamily inet6
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?
August 18, 2013
· admin
Ubuntu 11.10
Unix
Ubuntu 11.04
Ubuntu
Linux
Ubuntu 12.04
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
May 19, 2013
· admin
Ubuntu 11.10
Unix
Ubuntu 11.04
Ubuntu
Raspberry PI
Wheezy
Ubuntu 12.04
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
March 21, 2013
· admin
Ubuntu 11.10
Unix
Ubuntu 11.04
Ubuntu
Ubuntu 12.04
memcache
This script lists all the keys on a memcache server.
Ralink RT5572 based WiFi Usb Dongle setup on Ubuntu 12.04
September 3, 2012
· admin
Ubuntu 11.10
Ubuntu 11.04
Ubuntu
Linux
WiFI
Ubuntu 12.04
RT5572
Ralink
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
August 12, 2012
· admin
Ubuntu 11.10
Unix
Ubuntu 11.04
Ubuntu
Linux
Raspberry PI
Wheezy
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
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.
Masquerading or replacing outgoing SMTP email address with Postfix
August 1, 2012
· admin
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
Tags
- All
- 3D Printing
- ABS
- Android
- apache
- Arduino
- ARPI600
- ASUS
- automation
- Battlefield
- Blogroll
- Certificate
- Chrome
- Cree
- Cura
- Database
- Debian
- Eclipse
- Electronic Component
- ESP8266
- Firewall
- Games
- GCode
- General
- GIT
- GitHub
- GO2NFC
- Handbrake
- Hardware
- Internet of Things
- IoT
- Java Applets
- Linux
- MAC OS X
- Management
- Mantis
- Marlin
- memcache
- Mountain Lion
- MySQL
- Networking
- NodeMCU
- NVIM
- object
- Octoprint
- openssl
- Photos
- PHP
- phpMyAdmin
- PN532
- postfix
- Prusa Mendel
- Ralink
- Raspberry PI
- RaspberryPI
- Raspbian
- Router
- RT5572
- SSH
- STM32
- Tomcat
- Trinket
- Ubuntu
- Ubuntu 11.04
- Ubuntu 11.10
- Ubuntu 12.04
- Ubuntu 14.04
- Ubuntu 15.04
- Ubuntu 20.04
- Unity
- Unix
- Video
- Virtual Box
- Wheezy
- WiFI
- Windows
- Windows 8
- Wink
- WordPress