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

  » comments (0)

Extract single file from tar archive

2010-10-04 by xpheas
BASH-Code:
1
tar -xfvz backup.tar.gz home/xpheas/file.txt

Extracts only the file "file.txt".

  » comments (0)

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.

aptana hidden files 1

aptana hidden files 2

  » comments (4)

Debian inetd restart

2010-08-13 by xpheas
After configuring /etc/inetd.conf
BASH-Code:
1
/etc/init.d/openbsd-inetd restart

  » comments (0)

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:
BASH-Code:
1
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:
1
telnet localhost 9023

  » comments (0)

Delete a line with sed

2010-08-09 by xpheas
BASH-Code:
1
sed '42d' in.txt > out.txt

Deletes line number 42

  » comments (0)

Multiple IP addresses on eth0 (Debian/Ubutnu)

2010-08-06 by xpheas
Temporary
BASH-Code:
1
ifconfig eth0:1 192.168.100.10 netmask 255.255.255.0 up

Permanent
BASH-Code:
1
2
3
4
5
6
7
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

  » comments (0)

List loaded Apache2 modules

2010-08-03 by xpheas
BASH-Code:
1
apache2 -M

BASH-Code:
1
apache2: bad user name ${APACHE_RUN_USER}

Setting the envvars fixes the problem:
BASH-Code:
1
source /etc/apache2/envvars

  » comments (1)

OpenVPN issue

2010-06-26 by xpheas
CODE-Code:
1
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

  » comments (0)

Restart Samba on Ubuntu 10.04 Lucid Lynx

2010-06-24 by xpheas
BASH-Code:
1
2
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.

  » comments (0)

 « newer Posts  older Posts »