Pre-built packages not releasing 64 bit versions? No Problem.
Continue reading →
Posts Tagged: software
29
Sep 11
Force 32 bit installs on 64 bit systems (Deb/RPM)
31
May 10
Automagic Kernel Cleaning under Ubuntu
Sick of having dozens of old kernels sitting under your /boot/ dir? Want a simpler boot-life? Well we’ve got the solution for you. Continue reading →
9
Apr 10
Listing just dot-files
Its a problem that I’ve come across, and I’m not the only one, so heres what works for me to find those pesky files that start with a .
ls -a | egrep -i "^\."
This only works in the current working directory, which is the normal usage.
FYI the reason that this is problematic is that the ‘.’ symbol is a single character wildcard; most people are familiar with the asterisk ’*’ indicating ‘anything, however long’, whereas the ‘.’ means ‘any single character’.
The command works by looking only at the first character of the file (‘^’, thats called a caret) and then removing the special meaning of ‘.’ by escaping it with the slash.
Update:18/4/10
@stevebiscuit correctly pointed out that the -i flag is unnecessary.
-iinstructs egrep to ignore the case of any matches, so that ‘HeLlO’ matches if you egrep -i for ‘hello’. Since there is no case for the ‘.’ symbol, the -i is pointless.
14
Mar 10
Installing and Configuring NS-3 on a Ubuntu System
NS-3 Appears to have a staggeringly steep learning curve so I hope these posts help out someone else (or me, when i forget all this in a month).
13
Mar 10
Mercurial Quick Start Cheatsheet
I hadn’t used Mercurial before so I thought it might be a good idea to leave a reminder for me and anyone else who comes across it…
For tidyness, I do all of my dev-stuff (Subversion, Mercurial, CVS, Git etc) under ~/src and only take root privileges when its needed; any good makefile should relocate the necessary files for you at the ‘make install’ or equivalent point.
Update:This article was picked up by the guys at DevCheatSheet.com and I’m really honoured to be included in a site that I’ve been dipping into over the years, so if you need any kind of cheat sheet or quick reference, I highly recommend checking them out. Anyway…
12
Mar 10
Line Parsing Reminder (Duplicate removal)
So, say you have a long list of instruction (like multiple apt-get install lines) and you want to eliminate common words?
24
Jan 10
Ubuntu / Windows Sharing a Dropbox folder on NTFS
Take one Dual-Boot laptop, with three partitions:
/dev/sda1:Windows File System
/dev/sda2:Linux File System
/dev/sda3:Data Partition
I already had Dropbox installed on the Windows side and didn’t want to have things duplicated on the linux side, problem is Ubuntu currently does not mount internal drives automatically on boot, so every time I fired up Ubuntu, I had to re-mount the drive, password and all.
Easy enough fix: Make a new /etc/fstab entry for the shared drive and define a mount point.
/dev/sda3 /media/Shared ntfs-3g defaults,locale=en_GB.UTF-8 0 0
Then change your Dropbox location to wherever you have the folder under /media/Shared/ (or as I do and just symbolically link it to under your Home folder, This is also a good idea because Windows defaults to calling the Dropbox folder “My Dropbox” whereas in *nix its simply “Dropbox”)
Last but not least
sudo umount /dev/sda3
sudo mount /media/Shared
dropbox start
Then just enjoy the 2.5Gb of hard disk you just saved.
31
Dec 09
New Years Resolutions
- Post *something* at least once a day on either blog or web-album
- Stop sleeping in after 10am
- Drop some savings into the stock market, only take profits out, don’t add anything more
- Write an actual blog article once a week
- Find and contribute to an open source project
- Pull together a real portfolio of work
- Find more clients for my freelance work
- Set a timetable and stick to it
Well, its a plan at least.



17
Jan 10
Are we on the brink of War?
Recent events in the cyber-security world have got me feeling paranoid. Between Estonia, Georgia, and the ever-increasing focus on Chinese cyber-political-warfare, geo-political entities are starting to realise that the whole ‘lets stockpile enough weapons to blow up the world enough times for the number to be rendered pointless‘ may not have been the best plan.
China has caught everyone off-guard with its recent, albeit ‘hush hush’, displays of force (while not entirely getting off scott-free), and we should probably be alot more afraid of a cyber war than of flaming pants or security-crossed lovers.
I think there has been something ignored in this most recent spate of Chinese infiltration, is that if there is a bomb on a plane, or at an airport terminal, it blows up, theres horror, theres death and distruction, but if you’re a few miles down the road, your safe, but probably in need of a fresh set of briefs.
This is the list of companies and industries identified as potential victims of the Chinese attacks….
Just think about that for a second. Dow Chemical, nice big conglomerate of manufacturing and government supply. Nothing to go wrong there, right?
Northrup Grumman
Yeah, nothing to worry about there…
If you’re on this page, then I probably don’t need to explain the implications of having the worlds biggest source of knowledge ever, one of the most popular network security vendors, and the biggest email provider for the non-web-literate (i.e most vulnerable to phishing attacks) compromised. But I will anyway.
Unless you’re a Schneiner-level security guru, these companies probably have, between then, more information and control over your life than you would like to have given away to anyone, let alone a hostile foreign dictatorship.
There’s two potential actions: Shut Down or manipulation.
Its at this point that I actually want to get back into the security field. Cus frankly, if your not scared, you should be.
Update:TechCrunch has a great article on the financial cost of Google changing its previously politically permissive stance in China