Stuff…

I know I will forget.

Stuff… header image 4

Entries Tagged as 'Operating System'

Ubuntu apt-get Cannot initiate the connection to 80:80 (0.0.0.80). – connect (22: Invalid argument)

January 4th, 2012 · Comments Off

Was using a fresh install of Ubuntu 11.10 (oneiric) and continually received the following errors when trying to apt-get update: Cannot initiate the connection to 80:80 (0.0.0.80). – connect (22: Invalid argument) W: Failed to fetch http://au.archive.ubuntu.com/ubuntu/dists/oneiric-updates/universe/binary-i386/Packages Cannot initiate the connection to 80:80 (0.0.0.80). – connect (22: Invalid argument) etc… During OS installation a proxy [...]

[Read more →]

Tags: Linux · Operating System

Show disk usage excluding some directory structures

December 14th, 2011 · Comments Off

Wanted to do a quick “du -sh” on only the directories in / (‘root’) and NOT any of the mounted partitions.  This one liner worked nicely: cd / ls -la / | awk ‘{ print $9 }’ | egrep -v ‘boot|part1|var|\.’ | xargs du -sh

[Read more →]

Tags: Coding · Linux · One Liners · Operating System

Linux routing a packet back out the interface the previous packet was received on

July 5th, 2011 · No Comments

Had a situation where there were two interfaces on a machine and one with the default gateway.  Some traffic was coming in view the backend NIC but the return traffic was going back out via the default gateway. These two URLs were interesting for this: http://tldp.org/HOWTO/Adv-Routing-HOWTO/ http://kindlund.wordpress.com/2007/11/19/configuring-multiple-default-routes-in-linux/

[Read more →]

Tags: Linux · Operating System

Upgraded PHP to 5.3 caused error in horde, phpbb3 and wordpress

April 26th, 2011 · No Comments

A client upgraded his PHP install using the Atomic Turtle packages from 5.2.x to 5.3.6 and started to get error messages on some of his sites, and, in the error_log file for the site.  They looked like this: [Tue Apr 26 14:01:37 2011] [error] [client x.x.x.x] PHP Warning:  strftime() [<a href='function.strftime'>function.strftime</a>]: It is not safe [...]

[Read more →]

Tags: Coding · Linux · Operating System

WordPress Trackback Spam continues

March 13th, 2011 · No Comments

In post WordPress trackback spam I setup some rudimentry mod_security rules to block duplicate trackback spam attempts from known spammer IPs.  This stopped quite a few since implementation: 1449 in one day. However, I’m still getting a lot of trackback comment spam. Following the experiences from the blog post below I’m going to add some [...]

[Read more →]

Tags: Coding · Linux · Operating System