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 |