Malicious enjoyment derived from observing someone else’s misfortune
 

Tag Archives: ubuntu

Hardy Heron on the M1530

So, I upgraded my Ubuntu installation from Gutsy to Hardy today on my precious laptop. It went pretty well except for the nvidia driver. I ended up having to copy one of my old configurations over xorg.conf to actually make it work. Just so anyone who has the same problem again (including myself) can fix it without being really lucky, here’s a link: A working xorg.conf for Gutsy and Hardy on the M1530 It ends up looking like this: The [...]

MySQL issues in Hardy Heron

I couldn’t get MySQL to start in Ubuntu 8.04 Hardy Heron after I changed my datadir to /nexus/tardis/mysql – it turns out I needed to change the AppArmor configuration like so: /etc/apparmor.d/usr.sbin.mysqld /var/lib/mysql/ r, /var/lib/mysql/** rwk, /nexus/tardis/mysql/** rwk, /nexus/tardis/mysql/ r, This was in response to the following syslog messages: /var/log/syslog Apr 12 00:30:59 tardis mysqld[17818]: 080412 0:30:59 [ERROR] /usr/sbin/mysqld: Can’t find file: ‘./mysql/host.frm’ (errno: 13) Apr 12 00:30:59 tardis mysqld[17818]: 080412 0:30:59 [ERROR] Fatal error: Can’t open and lock privilege [...]

Macbook Air hacked in under 2 minutes

So, at the PWN2OWN contest, a MacBook Air was hacked in under 2 minutes. A Vista machine was also hacked a little later, but the Ubuntu machine stood strong despite various attempts. Just goes to show that Macs are definitely not as invincible as many people keep saying they are…

Finding the best apt mirror in Ubuntu

I wanted to speed up package downloading to set up my apt-proxy today in Gutsy, so I decided to find the correct way to find the fastest Ubuntu mirror. It’s actually done like so (stolen from here): Click on “System | Administration | Software Sources” Under “Ubuntu Sotware” tab, choose “Other” in the “Download from” list box. Choose your country and then click “Select Best Server” and choose the recommendation. This automatically updates the /etc/apt/sources.lst file. The same utility can [...]

Ubuntu on the Dell M1530

I got my new laptop today!! It’s awesome – I installed Ubuntu very easily on it, and Beryl using a second monitor on the HDMI port even works without much tweaking (just enabling TwinView with the restricted nVidia driver): I made an Ubuntu Wiki Page on the matter. All the information about what works and doesn’t is on there.

Angband save games directory in Ubuntu

I finally found where Angband saves are stored in Ubuntu thanks to the helpful file listing it provides. It’s all in /var/games/angband, and the save directory looks like this: root@rofl:/var/games/angband/save# ls -al total 60 d—rwx— 2 root games 4096 2008-01-01 23:57 . drwxr-sr-x 9 root games 4096 2007-12-31 16:18 .. -rw-r–r– 1 hank games 45651 2008-01-01 23:57 1000.Hank -rw-rw-r– 1 root games 47 2006-11-13 01:20 delete.me The inside of 1000.Hank is complete binary gibberish, but at least I can back [...]

libpango1.0-0 dependency issues in Gutsy

If you, like me, were having issues like the following: Depends: libpango1.0-0 (>=1.18.3) but 1.18.2-0ubuntu1 is to be installed The solution is adding this to your /etc/apt/sources.list: deb http://us.archive.ubuntu.com/ubuntu/ gutsy-updates main restricted deb-src http://us.archive.ubuntu.com/ubuntu/ gutsy-updates main restricted Apparently, they only put the new libpango libraries into gutsy-updates. That’s kinda lame IMHO.

Finding bad JPEGs with Xorg hacks in Ubuntu

So, I have all these JPEGs, and I want to know which ones are corrupt (specifically, ones that end prematurely). qiv will spit out the following to STDERR when it finds one: Premature end of JPEG file So, this is nice, except it’s entirely unscriptable. The solution I found was using the following script to the display the images in sequence: perl -e ‘for(glob(“*.png *.jpg”)){$output = `qiv “$_” 2>&1;`; if($output =~ /Premature/){print $_, “\n”;}}’ All this does is mix STDERR [...]

Adding Progress Bars to cp and mv in Gutsy

Notice that I can do a -g for a progess bar! Yay! Now for an action shot: hank@rofl:~/tmp/coreutils-6.7$ cp -g coreutils_6.7-1_i386.deb /nexus/mod0/www/deb/binary/ coreutils_6.7-1_i386.deb | 48% | 3.2 MiB | 118 KiB/s | ETA

wxWASTE on Ubuntu Gutsy Gibbon

Installing the package Most people will want this. Add the following to your /etc/apt/sources.list at the bottom: # Hankzilla deb http://modzer0.cs.uaf.edu/~hardwarehank/deb binary/ Then run a sudo apt-get update. Then install it with sudo apt-get install wxwaste. Run it with waste. Building from source Get it Install some dependencies: # Checkinstall is optional, but it makes it nice since removal is just thru apt. sudo apt-get install wx-common libwxgtk2.6-dev wx2.6-headers checkinstall Unpack the source, then ./configure && make && sudo checkinstall [...]