Archive for the 'linux' Category

France Telecom / Orange blocking port 25 email send – fix

France Telecom / Ora...

The solution is here http://www.bergek.com/2007/11/29/making-postfix-listen-to-a-secondary-port/ You may need to install iptables: apt-get install iptables iptables -t nat -A PREROUTING -p tcp --dport 587 -j REDIRECT --to-ports 25 iptables-save Send email
Script to restart Apache when virtual memory too low – run every minute as cron job

Script to restart Ap...

#!/bin/bash free -m | grep Swap | awk '{print $NF}' > /tmp/swapused virt=`cat /tmp/swapused` if [ $virt -le 100 ]; then top -bn1 | mailx -s "Virtual Memory Low - Restarting Apache" [email protected] apache2ctl restart fi rm /tmp/swapused Restart apache when memory low.
Ubuntu additonal IP addresses not available after hard reboot – slicehost

Ubuntu additonal IP ...

Log in using ssh (putty) sudo ifup eth0:1 sudo ifup eth0:2 sudo ifup eth0:3 … and so on.
T-Mobile Broadband USB Stick 610 (Huawei E1750) Ubuntu

T-Mobile Broadband U...

The T-Mobile Broadband USB Stick 610 unlimited access gift pack for £44.99 has to be the cheapest way to get online anywhere for the next 3 months! Works with Ubuntu after you’ve run this script.