Verified on Debian 8 (Wheezy). apt-get install exim4 To support recent IOS devices you need to generate a 2048-bit SSL certificate. Add TCP port 587 to the listening ports by editing /etc/default/exim4. To support local account authentication for SMTP over SSL submission port 587 uncomment out the sslauthd section (ref: https://wiki.debian.org/Exim). Exim defaults to IPv6 before … Continue reading Configure Exim mail server on Debian
All posts by Bob
Run your own DynDNS server on Debian Linux
This outline assumes you own your own domain and manage the DNS servers running Debian Wheezy or Jessie with: bind9 for DNSlighttp for webserverphp5apt-get install bind9 – configure your zone. apt-get install lighttp php5-cgi Configure SSL: lighty-enable-mod ssl openssl … Configure authentication: lighty-enable-mod auth echo username:realm:`md5sum password | cut -b -32` >> /etc/lighttpd/.htpasswd/htdigest.userEnable PHP: lighty-enable-mod fastcgi lighty-enable-mod fastcgi-php Configure Virtual Hosting: lighty-enable-mod simple-vhost mkdir … Continue reading Run your own DynDNS server on Debian Linux
Monitor fans on HP Proliant ML150 G3 running Lenny
(This blog is in reference to a Debian Lenny AMD64 system)hp-health is the package that is supposed to provide access to the fan status on HP Proliant servers. It is not easy to install hp-health on Debian Lenny. The ISO can be located by searching the HP website. On my system the existence of 2 … Continue reading Monitor fans on HP Proliant ML150 G3 running Lenny
Automate PDF printing from batch file command line
Adobe Reader is not suitable for printing PDF files using a batch file because it remains open after the print is done and there is no simple, safe & reliable mechanism to close it. Instead use Ghostscript commandline as shown below: gswin32c -dPrinted -dBATCH -dNOPAUSE -dNOSAFER -q -dNumCopies=1 “C:\test.pdf” *Must be a recent version of … Continue reading Automate PDF printing from batch file command line
Fix wireless soft-switch when running Debian on HP dv6
The HP dv6 laptop has touch switch to turn the wireless on & off.When running Debian Wheezy on this laptop the wireless will turn off (blue -> orange), but doesn’t turn back on. The status can also be viewed by using rfkill application (install from apt/Synaptic), using the command: rfkill list To get the light … Continue reading Fix wireless soft-switch when running Debian on HP dv6
Linux route add
Syntax for adding a route in Linux: route add -net 192.168.2.0 netmask 255.255.255.0 gw 192.168.1.2 List routes: netstat -rn Delete route: route delete net 192.168.2.0 Add static route: nano /etc/network/interfacespost-up route add -net 192.168.2.0/24 gw 192.168.1.2 dev eth1pre-down route delete -net 192.168.2.0/16 gw 192.168.1.2 Add/Change default gateway: ip route add default via 192.168.1.254
Draytek 2700G DNS suffix
On Draytek 2700G ADSL router to add a DNS suffix to the DHCP server use the following command in a telnet session to the router: >sys domainname mydomain.local You can also define a hostname for the router, e.g.: >sys name gw.mydomain.local The changes save automatically.
Routesplit on MacOS 10.x
The routesplit tool fails to make routes permanent on Snow Leopard and later versions of OSX. To work around the issue edit the following file as such: /Library/LaunchDaemons/net.routes.static.plist…<key>ServiceDescription</key><string>Install static routes</string><key>WatchPaths</key><array> <string>/Library/Preferences/SystemConfiguration</string></array>…
Copy disk images for Vmware, KVM, etc.
(Ref: Elvis, http://forums.overclockers.com.au/showthread.php?t=933797) These instructions can be used to copy full disk images over a network, including from or to physical and/or virtual machines. Because it is a bit-by-bit copy of the disk the process is independent of the file system or partition type, but there must be sufficient space on the destination disk. Individual partitions … Continue reading Copy disk images for Vmware, KVM, etc.
Auto-proxy configuration for Safari on OSX Snow Leopard
To get proxy configuration working for Safari on OSX Snow Leopard, utilising WPAD Auto-proxy and Squid proxy on a Debian server: 1. Install Squid – by default Squid listens on port 3128, test your Squid config by manually configuring the proxy settings in a client. 2. Install Apache (or your preferred web server) – add … Continue reading Auto-proxy configuration for Safari on OSX Snow Leopard