Tips and Tricks
Here I will offer you some Tips and Tricks with Linux and other things. Some small scripts will be offerd here too.
:: Kernel name
You want give your kernel a other name? No Problem! Only change one line in the Makefile:
EXTRAVERSION = pf
:: Iptables DMZ
You need a DMZ? I need some and it was terrible, here a example:
PORT=443
DMZ_IP=192.168.99.99
DMZ_IF=eth2/sbin/iptables -A PREROUTING -t nat -p tcp –dport $PORT -i ppp0 -j DNAT –to $DMZ_IP:$PORT
/sbin/iptables -A FORWARD -p tcp -d $DMZ_IP –dport $PORT -i ppp0 -o $DMZ_IF -j ACCEPT
/sbin/iptables -A FORWARD -p tcp -s $DMZ_IP –sport $PORT -i $DMZ_IF -o ppp0 -j ACCEPT
:: X Port
To close the X port you need an argument when you start your X-Server:
startx /opt/e17/bin/enlightenment — -nolisten tcp
:: Open URLs from Thunderbird in Firefox
# File: ~/.thunderbird/$PROFIL/user.js
user_pref(“network.protocol-handler.app.http”,”/usr/X11R6/bin/firefox”);
user_pref(“network.protocol-handler.app.https”,”/usr/X11R6/bin/firefox”)
:: switch off the bell
Do you listen in the bash the bell? annoying….
# File: ~/.inputrc
set bell-style none
