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)