FreeBSD ships with Sendmail (*shudder*). Most people completely disable or replace it with something other.

I just want to have a local mailer daemon for command-line mail which only accepts mail for “localhost” and nothing else.

The problem is that in the default configuration Sendmail probes all available network interfaces and thinks it is responsible for any hostname and IP addresses who are configured on them. This may not be the case.

Fix:

On FreeBSD one can create a file named /etc/mail/local-host-names. This is where the desired host names go (line-by-line) where Sendmail is responsible for. But without disabling the interface probing, those hostnames will just get added additionally. We need to disable the probing by adding the following line to /etc/mail/freebsd.mc (or your custom mc-file, if you use one):

define(`confDONT_PROBE_INTERFACES',`true')

Now, use the following line to build the config and restart Sendmail:

make all install restart

Thats it. Sendmail should now only process mail for the hostnames listed in /etc/mail/local-host-names.

Verification:

You can verify Sendmails authoritative hostnames by running sendmail -bt and typing $=w at the prompt (exit with Ctrl+D).

After being fed up with waiting for the official Android 5 Lollipop update for my LG G3, I decided to flash it manually – CloudyG3 to be exact (very smooth ROM, I can recommend it to every LG G3 owner).

Everything works, butGoogle Authenticator suddenly cashes (force closes) when I try to add my Google Account (after tapping on “Begin setup”). Using SMS to receive 2-step verification codes is the temporary workaround but that is a pain and there are other options, including switching to some other 2-factor authentication App.

Basically /etc/rcS.d/S13mountnfs.sh calls /etc/network/if-up.d/mountnfs, which is responsible to mount the network filesystems who are listed in /etc/fstab, such as CIFS/NFS etc. Don’t get irritated by the name, looking at the header of the mountnfs.sh file reveals: “Also mounts SMB filesystems now, so the name of this script is getting increasingly inaccurate.” Heh.

The Problem:

CIFS shares in /etc/fstab are not mounted at boot time but running mount -a after the system has booted just mounts them fine.

After seeing some unsatisfactory workarounds on the internet, like adding a @reboot cronjob wich runs mount -a or by putting it in /etc/rc.local, I decided to check the scripts. Welp, mountnfs.sh does not even try to mount the network filesystems. Something is broken in there.

The problem with the WRT54GL is its limited flash memory size – only 4MB.
A compatible firmware needs to be smaller than 3866624 bytes to be flashable.

All of the the latest MIPSR1 MiniIPv6 images of Shibby’s Tomato are some bytes too big to fit the router. The last release which is flashable is the verison 107 from February 2013 and that one ships with a broken (as in non-functional) OpenSSL. ATTOW the latest version is 116, from January 2014, so I decided to make my own build of the latest version which fits the small flash area of the WRT54GL.

Changes compared to the official V116 of Shibby are:

Layer7 filtering removed to save space

Samba stuff removed to save space

Compiled OpenSSL with -DNO_OPENSSL_HEARTBEATS because of the Heartbleed bug

As I like minimal setups, I don’t want to see unneeded stuff, like the topic line or the statusbar line.

Using the following statusbar block in ~/.irssi/config, the prompt and the statusbar will be combined and everything besides the channel name of the currently active channel is hidden. If there is activity or lag, the act and lag items will show – but not when there is none (priority -1). Tidy and nice.

My theme is still the default theme, together with nickcolor.pl, as this also provides the best compability and looks with scripts who print stuff with custom formats, who are not respecting your custom theme. Windows get switched using go2.pl.