A warning for those using encrypted partitions

I’m upgrading my laptop to hardy today, as I’m giving a presentation on Ubuntu and Hardy tomorrow at the Trenton Computer Festival — I’ve been running Hardy for months, but I like reinstalling after release, as I get rid of all the junk in the corners, and make sure all the important stuff gets enabled. I set up my desktop with Hardy already, as I usually have that at our table showing the latest and greatest desktop effects on dual lcd monitors.

When I installed Gutsy on my laptop, I used the new-fangled encrypted partitions system. I didn’t encrypt the whole drive — I like to keep my home directory separate from everything else, and that includes encryption — instead, I did the following:

  • /boot, ext2
  • / , ext3
  • encrypted partition 1, lvm 1
  • encrypted partition 2, lvm 2

Then in lvm 1:

  • /var, ext3
  • /tmp, ext2
  • swap

and in lvm 2:

  • /home, ext3

and then, all done. When I started up the machine, I was prompted for 2 passwords — one for each encrypted partition — , but other than that, I had what I wanted. Encrypted home, encrypted var, tmp, and swap, and everything else unencrypted (because it doesn’t need to be, and there’s no reason to slow it down).

So, today, using the alternative install CD, I set up my partitions exactly as they are. It prompted me for my passwords when I configured my encypted partitions, did its stuff, etc. Then I selected to use them as lvm groups, and figured i was ready to go.
It wasn’t until I stared at blank LVM groups that I realized when I entered my password, it was asking for the password for my new encrypted partitions. That it was making. While it was erasing all my data.

My first reaction: a loud shriek. Ever see those cheesy slasher films, where some woman runs screaming through the forest? That was me.

My second reaction was to go through a mental inventory of what I erased. Upon recall, I remembered that I backed up my home partition to an external about a month ago. Besides that, I keep my password lists on a remote server as an encrypted file, my senior project is kept in a subversion repository remotely, and I haven’t done much else important in the past month. I also moved tomorrow’s presentation to a flash stick, so I could work on it on my desktop (which I’m writing this on right now). In total, I lost:

  • my xorg.confs
  • my script to change symlinks back and forth for glx, depending on whether i was using intel or nvidia
  • my cool php script to check an ubuntu cd’s md5sums.txt agaist my derived md5s
  • my notes from my friend’s Orpheus game.

Overall, not very much, but I dodged a bullet. Nonetheless, as usual, back up your data before a reinstall — especially if you did something similar to what I did. The alternative installation CD is a fickle diety, and her wrath will be upon thee if you did not do full disk encryption. Next release, I think I’ll play it safe and configure my encrypted stuff manually.


JoeTerranova.net

New Jersey LoCo Team
ow
Planet Ubuntu

Comments (1)

Permalink

Print This Post Print This Post

15 hours in my basement

Saturday was the NJ LoCo Team’s April LAN Party. Another LoCo Team member, and professional Linux writer, Dave Harding, gave a detailed account of our last LAN party. Dave hasn’t posted a report on Saturday’s, so I assume this time it is my turn. What follows is a detailed report, without the detailed part.

11:30 It started off with quite a bang. I had planned on waking up at 7 or 8 to start setting up downstairs. Christina woke me up around 11:30, because Dave had been ringing the doorbell for 3 minutes. Dave, Christina, and I then spent the next 40 minutes or so setting up.

Noon. Randy from the PA LoCo team shows up, with his friend “Teddy”. Setup continues.

12:30: We’re set up, Bryan shows up, and play starts. We start with Urban Terror.

1:30ish: Jerry and his son show up for the scheduled Frozen Bubble Tournament. As Jerry’s son is 8, we quickly switch to Armagetron.

2:20: Frozen Bubble Tournament begins. I realize that I’m horrible at Frozen Bubble. Christina takes my spot while I run off to shower.

3:30ish: Frozen Bubble Tournament is complete, and Teddy is the undisputed Champion.

Teddy, winner of the Frozen Bubble tournament

I put together Planet badges for both of the tournaments; unfortunately, Teddy doesn’t blog, so he won’t get to use the champion one. You can tell who participated, as they have this badge: NJ LoCo Frozen Bubble Tournament participant

4ish: We play some more Armagetron. Jerry and son leave. We switch back to Urban Terror, “lunch” (burgers and fries) gets ordered.

5: More Urban Terror. John (aka “the ringer”) shows up.

6: Mostly Urban Terror.

8: Brett shows up. Like John and I, Brett spent much of his childhood playing FPSes like Counter Strike (which is very similar to Urban Terror). Teams are split up to make ringers as even as possible.

We play through a number of different modes: Free For All, Team Survivor, Team Deathmatch, Follow the Leader, Capture and Hold. Of all of them, Bomb is the most popular. It’s a throwback to the general Counter Strike scenario — the Red team has a bomb, which they must plant; the Blue team has to stop the Reds from blowing up the bomb, by either stopping it from being planted, or defusing it before it goes off. This usually involves “hunt down and destroy the opposing side”, but planting the bomb forces the blue team to track down the red team and defuse the bomb within 30 seconds.

10: We grab dinner. Three people split a pizza, and everyone else grabs food at WaWa.

11:30 Randy and Teddy head out. More Urban Terror.

1AM: I’d been planning an Urban Terror Team Tournament, but I wanted 2 or 3 person teams, so I had held out for more people (8 had signed up, many more said they were coming; 6 showed, plus Jerry and his son for Frozen Bubble). Once the LAN was officially over, I held the mock tournament. As I said previously, we tried to split up the ringers as evenly as possible. Teams were as follows:

Blue: Me (almost a ringer), John (“Ringer of Ringers”)

Red: Dave, Bryan, Brett (ringer)

We played a bomb match (as previously described). Play was intense, but it was quickly obvious that when teams are 2 to 3, and the 3 have the bomb, 3 definitely have an advantage, regardless of average skill level. Play went as follows:

  1. The round would start
  2. Within 20 seconds, Brett would run to a bomb site and plant the bomb.
  3. John and I had 30 seconds to figure out what bomb site they were at, and beat 3 people.
  4. Terrorists win.

The final score was 13 Red, 8 Blue

We decided to do another round, with switched teams (Red switched with Blue). This round was much more fierce, and a lot closer. In the end, the score was Red 15, Blue 14.

To beat the tie, we decided to play a Team Survival Match with knives only (ie, the dumbest idea in history). When John and I were winning 14 rounds to 3, we decided to call it.

For the Frozen Bubble Tournament, Dave made an amazing Frozen Bubble Trophy. Not to be outdone, I had equally impressive awards for the Urban Terror Tournament — specifically, gold and silver painted plastic dollar store bling necklaces.

“2nd Place”: Dave, Brett (MVP), and Bryan.

Dave, Brett, Bryan.

“1st Place”: John and Joe (me)

John and Joe,

Not pictured: Christina, MVP (Most valuable Non-Player).

Given that we really tied, and the other team didn’t have to play another round, I will forgo the champion badge: Urban Terror Team Tournament Champion, and we’ll all use this one: Urban Terror Team Tournament Participant

I can’t guarantee the accuracy of these events — specifically, the times people came and went. If you notice any glaring inaccuracies, please comment and I’ll correct them.

In Conclusion, despite having fewer players than last time around, the LAN went great, and I’m glad to have been a part of it. We’re planning on having a combined LAN and BBQ sometime over the summer.


JoeTerranova.net

New Jersey LoCo Team
Planet Ubuntu

Comments (3)

Permalink

Print This Post Print This Post

Another asterisk user

Martijn van de Streek posted that he’s set up Asterisk on his server. Good job, and glad to hear it!

Unfortunately, if you care about security, it’s not as easy as “sudo apt-get install asterisk” — the package is in universe, not main, and therefore hasn’t been getting security updates. The package is at 1.4.10, Asterisk is up to 1.4.19, and the package hasn’t been patched for the myriad security problems in between. Take a look at the Asterisk security list and cringe.

While that may not be an issue for home, at work we own a C Class, which gets scanned night and day for holes by bad, bad people. So when I set this up for work, I had to super lock the server down, and I had to compile Asterisk from source, as the ubuntu package is too big a risk.

For both home and work, I’m using FreePBX, which makes Asterisk much easier to configure. At this point, I can configure Asterisk myself, I have a handle on most of the internals of Asterisk and FreePBX, and I’ve written a few macros and AGI scripts — but that doesn’t help my bosses if they want to add an extension when I’m away. Though there is a distro called TrixBox that includes Asterisk and FreePBX, I’ve never liked “vocational” distributions (or CentOS), so I always set mine up on Ubuntu Server.

After I move my work Asterisk server from “former employee’s tower pc under the rack” to “server in the rack”, I’ll log my steps and make an up-to-date how-to on how to set up Asterisk and FreePBX on Ubuntu Server (plus all my little tricks I’ve added). Over the summer, after I finish my degree, I plan on making a repo that has a) an always up-to-date version of Asterisk, b) a package for FreePBX, to make it easier to set this stuff up. Of course, I will also try to get both into Ubuntu as quickly as possible. After that, I’m considering making a Python-based program to manage Asterisk, as a replacement to FOP and iSymphony.

Once again, I’m glad to see one more asterisk user. Be sure to add Enum to your trunk, and register your number with e164.org!


JoeTerranova.net

New Jersey LoCo Team
Planet Ubuntu

Comments (4)

Permalink

Print This Post Print This Post

Site updated

Well, I’ve updated to WordPress 2.5. With that, I’ve also changed my theme to one that supports widgets.

This is spurred by a request Dave made the other day, to have a way to print blog posts in a readable way, without comments. To this end, I added the wp-print plugin, which gives you a link to a printable version, without comments, and with all links as footnotes at the bottom (all of this configurable, of course). Note that, if you’re using WordPress 2.5 like I am, at the time of this writing you need to use the beta version located here.

So, in the interest of making Dave happy, please add a print link, or I’m afraid Dave might take drastic measures, possibly involving kittens.


JoeTerranova.net

New Jersey LoCo Team
Planet Ubuntu

Comments (4)

Permalink

Print This Post Print This Post

RSS Feed Generator for DeviantArt

Just a quick post.

Wrote an RSS Feed Generator for DeviantArt Galleries.

To use it, replace yourusername with … your username.

//www.joeterranova.net/code/deviantart.php?artist=yourusername

Source code is available here.

Brief attempt at a man page.

How it Works

When life gives you lemons, use regular expressions.

I monitored http requests to find DeviantArt’s back end ajax interface (which they use to do previous/next on galleries). From there I wrote a regular expression to parse out each entry, along with entry url, image url, date, and title. From there it’s pretty straight forward.

Keep in mind, I can’t guarantee this will work for you. If it’s been some time since I posted this, you may want to check if they’ve reintegrated rss feeds. That said, unless they change their layout, I doubt they’ll be purposefully breaking this script.

Right now, the only thing it does is get the latest entries from the given user’s gallery — no tags or anything like that. That stuff is probably doable. If you want anything specific, you can a) use the source and change it yourself, or b) leave a comment, and I’ll add it (within reason) when I have time. If you make good changes, let me know and I’ll post them here.

Options:

artist — the artist to get the feed for (ie, your username)

ex: deviantart.php?artist=yourusername

count — the number of items to return. The default is 24. If set higher than your total deviations, it’ll return all of them.

ex: deviantart.php?artist=yourusername&count=10

export — if set, instead of returning an rss feed, it’ll just output the results in an array using var_export. Useful if you’re just trying to get your deviations on your site (and your site uses php).

ex: deviantart.php?artist=yourusername&export=1

nolink — by default, the rss feed will show the thumbnail image as a link back to the main deviation. Add this to disable the link part.

ex: deviantart.php?artist=yourusername&nolink=1

I’ll leave this up, but if I notice real major traffic, I’ll be taking it down and putting it elsewhere (I’ll of course leave the source up). Please don’t do anything silly like hit my url every 10 seconds. For maximum reliability, host it yourself.

If you host it yourself, there’s 3 parameters at the top of the script to change:

$usecurl=1;
$url = '//www.joeterranova.net/code/deviantart.php';
$webmaster='joeterranova@gmail.com (Joe Terranova)';

$usecurl — set this to 1 to use curl instead of file_get_contents. If your host doesn’t have the curl extension installed and you set this to 1, you’ll get an error — conversely, if your host has remote file opening off (like mine does), and this is set to 0, you’ll get an error.

$url — set this to the url of the script.

$webmaster — set this to your email address and name.

For any questions, comments, or feature requests, leave a comment here. I release this code under the GPL v3 (see code for details).


JoeTerranova.net

code
New Jersey LoCo Team

Comments (20)

Permalink

Print This Post Print This Post

Bad Behavior has blocked 185 access attempts in the last 7 days.