Ubuntu Maverick new default font
2010-10-05 by xpheas
If you don't like the new Ubuntu font go to System > Preferences > Appearance > Fonts and restore the old settings:
Application font: Sans 10
Document font: Sans 10
Desktop font: Sans 10
Window title font: Sans Bold 10
Fixed width font: Monospace 10
Application font: Sans 10
Document font: Sans 10
Desktop font: Sans 10
Window title font: Sans Bold 10
Fixed width font: Monospace 10
Extract single file from tar archive
2010-10-04 by xpheasBASH-Code:
| tar -xfvz backup.tar.gz home/xpheas/file.txt |
Extracts only the file "file.txt".
Aptana FTP show hidden (dot) files
2010-09-24 by xpheas
The . files are filtered by default. To make them visible, use the drop-down arrow on the File view toolbar, select "Customize View", and then uncheck Filters->. files.



Debian inetd restart
2010-08-13 by xpheas
After configuring /etc/inetd.conf
BASH-Code:
| /etc/init.d/openbsd-inetd restart |
SSH Tunneling
2010-08-11 by xpheas
My DSL-modem only supports insecure telnet, but on my Debian Server runs OpenSSH.
So i can tunnel a Telnet session through an SSH connection:
-N no interactive ssh session
-f background
-L local port
Now i can connect to my modem:
So i can tunnel a Telnet session through an SSH connection:
BASH-Code:
| ssh user@host -NfL 9023:192.168.1.1:23 |
-N no interactive ssh session
-f background
-L local port
Now i can connect to my modem:
BASH-Code:
| telnet localhost 9023 |
Delete a line with sed
2010-08-09 by xpheasBASH-Code:
| sed '42d' in.txt > out.txt |
Deletes line number 42
Multiple IP addresses on eth0 (Debian/Ubutnu)
2010-08-06 by xpheas
Temporary
Permanent
BASH-Code:
| ifconfig eth0:1 192.168.100.10 netmask 255.255.255.0 up |
Permanent
BASH-Code:
| nano /etc/network/interfaces auto eth0:1 iface eth0:1 inet static address 192.168.100.10 netmask 255.255.255.0 broadcast 192.168.100.255 |
List loaded Apache2 modules
2010-08-03 by xpheasBASH-Code:
| apache2 -M |
BASH-Code:
| apache2: bad user name ${APACHE_RUN_USER} |
Setting the envvars fixes the problem:
BASH-Code:
| source /etc/apache2/envvars |
OpenVPN issue
2010-06-26 by xpheasCODE-Code:
| ovpn-server[7890]: read UDPv4 [EMSGSIZE Path-MTU=1460]: Message too long (code=90) |
I fixed the problem by adding the following line to /etc/openvpn/server.conf:
mssfix 1400
Restart Samba on Ubuntu 10.04 Lucid Lynx
2010-06-24 by xpheasBASH-Code:
| sudo initctl stop smbd sudo initctl start smbd |
Since Lucid Samba is handled by Upstart, so the /etc/init.d/samba script has been removed.