Multiple network bonds in Debian 9 Stretch

If you try to configure more than one network bond in Debian 9 Stretch you will get errors when trying to bring up the second bond – this is due to the fact that only one bond is configured by default. In order to support more than one bond you need to make the following change:

Edit /etc/modprobe.d/bonding.conf and add the following:

options bonding max_bonds=2

… set the number to number of bonds you require.

Sometimes Ghost is truly the best tool

HDD stackLately I’ve been loving Clonezilla for rolling out refurbed Dell workstations. It’s been really cool, boot from USB “liveCD”, clone disk to disk directly over gigabit ethernet, reboot, repeat. But after doing 10 of them, I ran into the true limitation of Clonezilla. Clonezilla relies on ntfsclone and partimage (great tools) but they share a key weakness: neither can restore an NTFS drive or partition image to a smaller target – in my case it was a matter of a dozen sectors. It’s ironic because both tools only copy the used blocks and seem to support resizing but they just plain don’t do it. Needless to say I couldn’t accept that fact until I was done pounding my head against the issue thoroughly, then I used the de facto Windows imaging tool: Norton Ghost.

So, its 4:00 AM and I’m in the lab finishing up my Ghost disk-to-disk imaging on the remaining machines…

Total time to break remaining boxes and yank HDs + Ghost imaging time = 30 mins.

Time wasted to get to this point = 3 hours.

If anyone can prove me wrong concerning the shortcomings of Clonezilla, please do (and comment, duh).

Fix slow connections to Ubuntu SSH servers

As of Ubuntu 8.10 and older, connections to SSH servers with default configs can be annoyingly slow. Thisterminal is because the OpenSSH daemon uses DNS to run a reverse lookup on the client to be sure that they aren’t faking their hostname. You can disable most look-ups by implementing the following setting:

As root edit “/etc/ssh/sshd_config” and add the line “UseDNS no“.

This can also be done by running the following command:

[code]sudo echo “UseDNS no” >> /etc/ssh/sshd_config[/code]


This issue is documented at

Fix and more details available at:

Useful find Commands

Recursive, multi-file find and replace with grep and xargs for performance:


[sourcecode language=’bash’]grep -rl ‘what_to_find’ ./ | xargs sed -i ‘s/what_to_find/what_to_replace_with/g'[/sourcecode]

Put  a not in front of that expression:

[sourcecode language=’bash’]find ./ ! -type d[/sourcecode]

Escape wildcards to avoid the shell expanding them:

If you just quote it; “*.avi” you can often run into trouble.

[sourcecode language=’bash’]find ./ -name \*.avi[/sourcecode]

Prune empty directories

[sourcecode language=’bash’]find ./ -depth -type d -empty -exec rmdir -v {} \;[/sourcecode]


Disable Recent Documents in Gnome 2.22.3

So even Windows lets you disable the Recent Documents feature, but for some reason Gnome really wants to remember what files you’ve been messing with. Personally I never use this menu item (usually under Places in the Gnome Main Menu) and find it to be a bit of a privacy concern.

Surprisingly enough there are no documented settings for Recent Documents, not even something in gconf-editor, so people have been going stone age to prevent this functionality. In the past you could change permissions for the file that stores the data in your home directory, but it seems in later versions of Gnome the following is the current method of choice.

Continue reading “Disable Recent Documents in Gnome 2.22.3”