Samsung Galaxy S, pt. 3, My Favorite Applications

Ok, so you have your phone rooted, updated and lag-fixed. You want some apps? Here are my picks:

  • Android Terminal Emulator (Well, it’s a terminal emulator)
  • Quadrant (For benchmarking and cock-measuring contests)
  • IMDB (Because i love my movies)
  • Spotify (Great if you have the.. Unlimited? Premium? Whatever it’s called nowadays account)
  • XBMC remote (Control your XBMC media center on your phone!)
  • FMI Helsinki Testbed (great weather app for the Southern Finland area)
  • Market Access (allows me to pay for applications. Paid apps are not available in Finland officially)
  • Advanced Task Killer (kills apps left open in the background)
  • Facebook / Twitter / Other Web 2.0 Socialwhoring apps
  • Astro File Manager (Look at your filesystems. More functionality than the built in “My Files”)
  • Barcode Scanner (handles all kinds of barcodes and can do searches online)
  • Instant Heart Rate (This one was fun, measures heart rate using camera)
  • Droidopas (Helsinki area public transport guide, by my good friend Anteuz)

Samsung Galaxy S, pt.2 – Firmware Update & Lagfix

Short disclaimer: Flashing your phone may be illegal, immoral and may cause damage to your phone and/or soul. I take no responsibility for any actions you may or may not take. Proceed with caution, and remember, i don’t care if you brick your phone; even though that should be pretty hard to do!

So time for part two.

As of August 2010, The Samsung Galaxy S (European Model) ships with Android 2.1, also known as Eclaire. While it’s a pretty stable version of Android, where everything works sort of, it’s not very fast or optimized. 2.2 or Froyo, will bring out the heat, and make this into the fastest device on the market.

Want to acchieve this speed boost right now? Thought so. You can do it, with Android 2.1, by doing a few simple hacks:  Upgrade to a later build (unofficial), and install the One-Click Lagfix. I’ll try to explain both:

- The newer build of 2.1 (currently JM6 is the name assigned to the latest firmware) will improve some functionality, mostly not related to speed, but for instance GPS functionality. The builds are unofficial and come from..various sources. I won’t link to them here, as i’m unsure of their legality, but i can say that they work just fine. Paranoid users might want to skip this, as this would be the perfect slot to slide in malware or other nasties to peoples phones.

- The lagfix adresses one of the more serious issues with 2.1, namely performance. The Galaxy S phone uses an RFS filesystem on the internal flash memory, which is far from perfect or optimized for such a platform. The problem is visible as general sluggishnes, for instance while flipping from page to page, or doing things in quick succession. The lagfix creates an ext2 filesystem within a file inside the internal memory, and places system files there, which is clearly visible as a highly increased performance. No more sluggishness anywhere. Synthetic benchmarks, such as Quadrant show an increase of over 1000 points. But subjective usage improvements are, of course, most important. The lagfix used to be much more complicated (while not impossible) but is now available as an application in the Android Market, and offers “One-click” installing.

Firmware Update

Updating the firmware is not an easy process for JoeBob69, but for someone who has played with gadgets and computers for a while, it’s no trouble at all. The things you need to start updating your firmware are:

  1. An installation of Microsoft Windows (i have not tried this through wine, but it might work
  2. Samsung Kies, or just the driver for the phone. When you connect your phone with the provided  MicroUSB cable, Windows should detect the phone. This isn’t specifically needed for this phase, but you will need it for the lagfix.
  3. Odin 1.0. This is the actual firmware flashing program.
  4. The correct .pit file, which for the Galaxy S with 2.1 Android is the s1_odin_20100512.pit. Again, i won’t link to it, you can find it through google
  5. The firmware you want to install. The fastest one right now seems to be the 2.1 build JM5. The 2.2 builds are as of this time not yet good choices, and usually slow. Firmware packages need to contain three files (two in some cases, but i won’t go in on that issue here): CSC, Phone and Modem. They can be of different versions internally, for instance, my phone now has a JM6 Phone firmware, a JM1 modem and a JM3 CSC package.

Start out by setting your phone in download mode.

  1. Make any necessary backups. Your contacts, SMS messages and Emails will not survive. Stuff under /sdcard on the phone will most likely survive (pictures, media, etc.), but take precautions here. Smart people sync their stuff elsewhere, like Google. They already have everything they need about you, so don’t worry.
  2. Shut down the phone, and if you like, remove the sim card and any microSD card you might have inserted.
  3. Press down the Home key and the Volume Down button, then the power button.
  4. Phone should start to a black and yellow “Download” mode, with the classic Android mascot
  5. Start up Odin on your PC, but DO NOT hook up your phone yet.
  6. In Odin, select your pit file, and on the left side, check all three boxes (Re-partition, Auto-Reboot and F. Reset Time)
  7. At this point, hook up your phone, and wait for Odin to detect it. The status box should read “Device added!” or similar.
  8. Hit Start on the right side. Wait for the phone to reboot, and Odin reports PASS with green background.
  9. Remove the battery and disconnect the phone. Boot it up to Download-mode again, but don’t hook it up to your PC yet.
  10. Restart Odin, and this time don’t add the .pit file. Instead add the three firmware packages under Phone, Modem and CSC. They should be individual .tar packages. Don’t try to open them.
  11. Remove the checkmark from Re-partition, on the left, but leave the other two.
  12. Connect your phone and wait for it to be picked up by Odin.
  13. Hit Start, and wait for it to go to PASS, again.

Depending on the firmware you may have downloaded, you may get a funky language on your first boot. You can fix it with the following “Blind-Guide”:

  1. In the Home-screen, hit the left function key to get the menu up.
  2. Select Settings, which is the Gear-icon, in the bottom right corner of the menu.
  3. Select Locale and text, the icon is a grey box, with the capital letter A inside.
  4. Hit Select Local. This is the top item in the menu.
  5. You should now find your locale from the list.

You may also need to restore your backups, and your APN settings for mobile broadband and MMS. Follow operator directives for these, as they will probably be lost during the firmware update. Android 2.2 will fix this, allowing you to do updates Over the Air, without losing your stuff.

Lagfix

The lagfix, which is a must for any Samsung Galaxy S owner, has now been made very simple. Open up market, and search for Samsung Galaxy S. You should see the One Click Lagfix. Download and install. Start it up, and install ext2 tools, and then the lagfix. On-screen instructions are pretty self explanatory. You can also do some kind of rooting here, but i haven’t tried the functions. Reboot when asked or just let it do its thing.

What happens is, you’ll get an ext2 file system on a part of your internal memory (you can also use a fast microSD card, which, i’m told, improves performance even more), and stuff will be run from that. This is much faster, and i am sure you’ll notice the difference.

Can i break something?

Well, it’s unlikely. You can use Odin in every scenario i’ve read about to restore a working firmware on your phone. I have read of a few isolated cases where things went awry, but were still fixable through some hacks.

Everything described here should be pretty safe, but again, i’m not liable if you brick your phone. Proceed with caution and don’t forget common sense.

Benchmarking

A standard 2.1 off the shelf Galaxy S should get about 900 points in Quadrant ( a benchmark application you can find in the Market). After the firmware upgrade and lagfix, i’m getting around 2100 points. This is of course synthetic stuff, measuring CPU, I/O and Graphics performance. Quadrant Pro will show you more details about how the points are distributed and calculated. It seems to be very I/O focused, as the filesystem fix brings an improvement of over 1000 points.

On the other hand, you’ll be so pleased with your smooth flowing UI that you won’t really care.

Samsung Galaxy S, pt.1 – Rooting

So, i became a Droid of the Galactic Empire, and left the Cult of Steve; dumping my iPhone 3GS to some other poor sod at the office. A few weeks ago, i went out and got the Samsung Galaxy S; their current flagship model.

The specs of the phone are as follows:

  • 1,0 GHz “Hummingbird” processor (Arm Cortex A8 base)
  • 2,0GB ROM
  • 6,0GB Flash
  • 512MB RAM
  • microSDHC slot (up to 32GB)
  • 4,0″ Super-Amoled screen 480×800 resolution
  • All the standards in the way of wireless, 802.11n, BT, A-GPS, HSUPA (7,2Mbit/s mobile broadband)
  • MicroUSB out, with support for TV-out

Basically it has a lot more oomph than the computer i had 10 years ago, in terms of almost everything, storage, cpu, telecom, etc. Anyway. It’s a nice phone, and so far i’ve noticed very few things to complain about. My intention is not a review per se, there are tons of those which speak for themselves. I’m gonna try to write simple-as-possible instructions for doing things like firmware upgrades, lag-fixes and other nifty tricks, as well as listing handy applications from the Android Market.

rooting

rooting of the phone has been made fairly simple. it consists of three distinct steps:

  1. Copy update.zip (as is, do not extract) to the /sdcard folder on your phone
  2. Boot phone into recovery mode
  3. Apply update.zip and wait for phone to reboot

Steps are performed as follows.

1. Go to the Homescreen and press the menu button (left of the home key), -> Settings -> About Phone -> Usb Settings -> Mass storage
2. Hook up USB cable and install any drivers that might be prompted, or not. Your internal memory (/sdcard) should be mounted
3. Copy update.zip to the root of that folder
4. Disconnect USB cable, and shut down phone
5. Boot phone so that you first press the volume up key on the side of the phone, and the home button, and keep holding them down, while pressing the power button. Phone will boot into recovery mode. Release all buttons as soon as you see text scrolling by. This will come after the Samsung logo.
6. Using the volume up and down keys, select the menuitem called “Apply update.zip”, and press the Home key to confirm. Rooting will commence, and phone will reboot after it’s done.
7. You will have two new menu entries in your phone under the Applications menu: “Superuser permission” and “BusyBox Installer”.
8. Open up the BusyBox Installer and upgrade to the latest version, or do it through the Android Market.

You now have a rooted phone, which can access any part of the phone filesystem, and allows you to use su to gain superuser permissions to do whatever you want. Get a terminal app from the Market, or do whatever you please. You can’t really break it, since you can always use Odin to reflash the phone, should something go pear-shaped. I’ll cover this in my next post.

Edit: Small corrections in terminology, download mode -> recovery mode. Thanks Anteuz.

Uncharacteristics.

I’ve taken to not writing anything about my personal life, but.. it’s a late hour, and i’m feeling like shit, so i might as well use this as a kind of diary. I don’t expect commentary. Not many people can understand what i’m going through, and that’s just fine. This is mostly for me. So i can read about it later. Maybe i was also influenced by E to some degree to write this.

Since the breakup from my 6 year relationship with the first woman i really loved, I’ve gone through so many stages. I guess these are all in psych 104 or whatever, but it’s another thing experiencing them on your own.

I thought i was set. A great kid, a son none the less, someone to carry on the family name. A beautiful wife whom i loved. A burgeoning career doing the thing i love the most. Years worth of un-replaceable experiences, good memories and immortal moments. A home.

Some people say that home is where you are. But when you’ve built something together, and one of the architects are taken away, it’s no longer your home. It’s just a storage place for memories.

Granted; good memories never fade. Bad memories stick around just long enough to teach us something, but they are gradually put aside. It’s how the human mind works. The brain can’t handle too much of the bad stuff, or it malfunctions and you become incapable of performing anything but the most basic tasks; if even those. I have what is called a high thresh-hold for activity or performance. I can take higher than average loads of crap, before i become unable to go to work, meet people, do things. Whether this is a good thing or not is debatable.

We’ve sat on the beach facing the Mediterranean, felt the fine sand under our toes, looking at the sunset. Feeling the salty breeze on our faces. Being happy, smiling and looking at each other. Ate rabbit stew up in a restaurant in a small village in the Sierra Nevada mountains, with an entré of Jámon Serrano. Climbed up to an old Moor castle. Climbed the Eifel Tower. Walked across Paris to reach the Louvré which looked a whole lot closer on the map. The gargoyles of Notre Dame. The steps leading up to the Sacre Coeur. Standing in the middle of Time Square. Looking across the bay toward the Statue of Liberty.

Sitting on the couch watching Eureka, or Alias or something. The small things. Saw the whole of Alias almost in sequence. And this was just a few months ago it feels.

Since i have partially eidetic memory, and a visual memory in general as well, i can’t look at certain items anymore without feeling such deep sorrow. I remember where almost every DVD in my shelf was bought. When we first watched it. I had to replace about 3000 euro worth of furniture just to be able to live here. And here i am, still stuck in this 95 m2 appartment, with jack-all to do, and a brick where my brain should be. Just writing this makes me cry.

As i’ve concluded to so many people: all i have is a pile of good memories and the question of why.

Why do nice guys finish last?

Assembly 2010, and some other updates

Assembly 2010 is over and done. Thursday through Sunday was spent at Hartwall Arena, the biggest hockey arena in Finland. Assembly is, to my knowledge, the biggest demo-scene party in the world. It’s also basically (and some would say today, more) a LAN party. Imagine 3000 geeks hauling their computers, audio gear and other doohickeys to a single location with near limitless bandwidth and power to make music, socialize, play games and above all else, watch demos and music produced by others; competing in different categories. These are collectively called compos, short for competitions.

*disclaimer* I’m not involved in the demo-scene, even though i greatly admire it. I also did not start computing with Charles Babbage in the late 1800′s, and am not familiar with most of the older hardware. Some terms might be wrong, because i simply don’t understand everything, but i try. *disclaimer*

The wildest part of the event are the compos. It’s a demo scene event, not a LAN party. There’s a separate event called Assembly Winter, which is focused on gaming. But still, i would say most attendees are there to play games. And while i did my fair share of gaming, demos are what i come there for. And my friends.

So what’s so special about demos, and what are they? Well, demos are interactive, or non-interactive multimedia presentations, that have to abide by certain guidelines. Some demos are called intros, and are shorter, and smaller in size than full demos. There are two kinds of intros at assembly, the 4K and the 64K intros. The K refers to Kilobytes, as that is the sizelimit for the compressed intro. Intro are all executable, so whatever you see and hear are created by the program as it is being run. It’s not a drawn animation or a set of ready made frames.

Now imagine 4KB. 4096 characters. Try to include music, moving graphics and text, and if you have any concept of memory, you will be blown away. My Suunto T3 digital watch has multiple times this amount of memory. Heck, your SIM card has more memory to use! Though, it has to be mentioned that libraries and such are not included in the compressed demo. With libraries included, the size is considerably larger, but.. still. They are awesome, and the people making them are total demi-gods at their craft.

The entries in general were good, and surprisingly plentiful. Quality was high in the 4k and 64K intros, while the demo category was a bit of a letdown, compared to the last two years, at least.

I met some great people. you know who you are. Met some current and ex-colleagues, most of whom hard at work organizing the whole thing for the rest of us. Thanks to you guys.

—-

Updates

—-

Jacob Appelbaum, whom i mentioned in the HOPE posts, was recently arrested arriving to the US. Interrogated, his laptop confiscated and then returned (because he refused to hand over encryption keys). So i guess, the FBI didn’t really like the stunt he pulled at HOPE. I’m not sure what the current situation is, but i hope he’s alright. He seemed like a nice fellow, who does not deserve to be persecuted.

In other news, the Pentagon has threatened Wikileaks. They are demanding they take down all the material stolen (they mean leaked by their own people), or else. I wonder what the fuck they are going to do about it, huh? Bomb every colocation center in the world? Well it wouldn’t be the first time you just shoot at everything to prove a point. But i double dare them to do anything. Wikileaks isn’t going anywhere, and since the materials are already on the tubes (the internet for the rest of you!), they are never ever coming back to them again. Removing wikileaks, though this will never happen, will change nothing. It will merely fuel the fire, and for every mirror taken down, five new ones will come out. The files are available as Torrents, and already on numerous other sites. “Taking back” or “returning” content does not work like the on the internets, guys. If person A steals a missile, you can demand to have it back. If person B copies files that you inadequately protected, and walks out with them, and posts them on the web, it is a copy, therefore un-returnable, especially when it’s been distributed.

So in conclusion, do not threaten people when you do not have the slightest fucking idea of what you are talking about. Second of all, secure your shit if you don’t want it to get out. Third of all, i hope you burn in hell for the stuff you’ve done all over the world. You do not run the world, even if you have all the bombs.

That is all.

The Next HOPE recap vol. 2

So what else could one say about The Next HOPE? Well, a few things to be sure.

Interesting talks i attended/filmed

As i was working with the AV volunteers, i couldn’t be in many places at once, at times. Sometimes, i would be filming a talk, even if it wasn’t the talk i wanted to see. But luckily, i didn’t go or film a single boring talk! Sure, some may have been closer to my heart than others, but let’s face it: we had some great speakers. Some of the talks i attended were the keynote on Friday by Dan Kaminsky (that guy is a fucking rockstar, and funny as hell on stage!), the GPS talk by Cheshire Catalyst, The Social Engineering panel with Emmanuel, Kevin Mitnick (got to exchange a few words with him as well; great guy!), Not-Kevin, Bernie S. and.. a social engineering dog? Anyway.

Other hot topics included the talk by Lazlow on.. well, media, radio, freedom and all manner of subjects. Also got the chance to talk to him, and he seemed like a really cool cat. I complimented him on his work in the GTA games, where he has been making and producing the different in-game radio-stations. The talk-radio ones (often hosted by him) are fucking hilarious, and have been my favorites in all the games so far.

Of course the big controversy was with the Saturday keynote, scheduled to be held by Julian Assange of Wikileaks. He, of course, did not show up, and in his place was Jacob Appelbaum, who, against all odds, pulled off a great keynote, finishing off with a viewing of the Collateral Murder video (that started part of the Wikileaks controversy in the first place). There were no cheers, no applause when the video ended. It’s some grim stuff, i tell you. Go watch it if you haven’t. You can find it on the webs.

This talk was very interesting not only due to it’s topic, but due to the fact that at least 3 federal officers in civilian clothing attended the conference/talk. Jacob started out by saying he doesn’t know where Julian is, or how to reach him, and that there would be no point in arresting him. Despite all this, measures were taken to ensure lulz and safe exit for Jacob. Decoy Jacob was deployed and actual Jacob made it out fine, and tweeted he was on the airplane to Europe only a few hours later. Hilarity ensued.

Another great talk was the one that dealt with Trolling and internet culture. It had examples of memes from 4chan, and stuff that ‘Anonymous’ has been doing. Including a mention of operation.. Slickpubes. The content of which was undescribed during the talk, but let’s just say it involved going to various bookstores in New York and placing pubic-hair inside various religious (mostly Scientology) books.

Spot the Fed, HOPE edition?

Well as I said, there were at least three federal agents assigned to the conference. I personally saw at least one, or that i am fairly sure fits the bill. He stood out quite clearly, and picked his seating position quite precariously, as to view the entire room. He was also not interested in any of the talks, and wore iPod earbuds all the time. His clothes were so untarnished, they could have been bought that same morning at Macy’s. Also, the biceps on that guy was something a geek can only dream of.

Other volunteers reported seeing three “obvious FBI agents” during the Wikileaks keynote, and i was told later that three people were also seen following decoy Jason down to the lobby, until they noticed the ploy and split off. I can’t verify the validity of this, but, i have no reason to distrust my fellow volunteers.

Stuff i bought

During the conference, i spent most my money (actually, during the entire vacation i suppose) on conference merchandise. The things i bought include:

  • The Book of PF (OpenBSD packet filter bible)
  • The three Wizzywig comic-books by Ed Piskor (signed too!)
  • A Manga physics book for a friend
  • Several T-Shirts
  • a black 2600 mug
  • some back issues i missed because my subscription ended
  • ….and a crapload of cool stickers, some of which adorn my Thinkpad X41 at this very moment!

Conclusion

In all, i had one heck of a time, and i can’t wait to get back. Sadly, HOPE is only held every two years, and next time might have to be somewhere else, seeing as Hotel Penn is probably getting torn down. There was a petition being signed at the conference, and i hope many people did, to save the hotel. But seeing as the owner of the hotel is also somehow involved with the development company that wants to build the 67 story office building, the future of Hotel Pennsylvania is looking grim indeed.

But then, we’re hackers. Hackers always find a way to make things work, and with the people i saw; attendees, organizers and volunteers alike, i am certain that HOPE will rise again.

Next year though, i might be going to Germany, seeing as the CCC folks host their thing sometime in the summer…….

The Next HOPE recap

The Next HOPE, Hackers on Planet Earth, held in New York, at the Hotel Pennsylvania Jul 16-18th. HOPE is a bi-annual conference, which concentrates on technology and other subjects (..everything?) that interests the hacker mind. This year’s event was my first, and my first time in the United States. I’ll try to sum up, in fairly chronological order what happened during the last week.

I flew to New York via Amsterdam, on KLM / Delta. Security was a main concern from the get-go. To start off, you had to fill out a form on the web, where you basically state that you are a good person, and not up to bad things. Or that you were involved in Nazi activity during the second World War. Normal questions such as that. Completing the form gives you a 12 month permit to travel to the USA; this does not however stop them from turning you back if they don’t like you for any reason. ESTA is something that Visa Waiver countries have to fill out these days. No I-94 forms though, which makes traveling a bit easier, i suppose, since you don’t have to physically fill in forms, and keep part of it for flying back…

The ride to Amsterdam was largely uneventful, but in Amsterdam, security was ramped up. First you had to pass regular Airport Security, to get into Terminal .. C? to fly to the US in the first place. When I got to the gate, there was a secondary security checkpoint, set up just for that gate. Each traveling party is asked individually to come talk to an official about who you are, who packed your bags and where you are going. Kind of a personal interview. After that, you’re taken through a standard security checkpoint, though everyone was frisked and patted through, no matter what the metal detector said. Some people had their carry-on bags opened and checked separately.

The interesting part about this security checkpoint was the fact that they had two of the full-body scanners present. They were not used however, which was curious. Two phone-booth sized things in the middle of the floor, which could be closed around a passenger, and supposedly, used to “nude-scan” a person. It would have been nice to see that in action.

So, get on the plane in Amsterdam (767-300ER), and during the 8 hour flight, you fill in the US Customs form, which declares what you are bringing (and leaving) in the US, whether you are carrying samples of biological material, whether you’ve had contact with farm animals (yeah, right), and such questions. The form was collected by customs agents at the airport when you arrive.

We flew into Newark. Upon landing, we were taken through a security checkpoint, and then sent to queue for the actual Border Control checkpoints. Here, we are once again asked the same questions (Who are you, why are you here..), and then given the final go-ahead to step on US soil. They had ominous looking “Screening rooms” for people who looked suspicious, or who just wanted to have their assholes probed, i guess. Didn’t see anyone get taken in there, but i did see Border Patrol agents, or whoever, DHS-people looking at travelers, supposedly for signs of nervousness etc.

Take the Airtrain (a monorail system) to a train station, and then the NJ Transit train into Penn Station. 15 dollars for the entire trip, which wasn’t bad at all. Trains were fairly clean and air-conditioned, which was nice, because the heat was nigh unbearable.

At Penn Station, we had at least three different agencies at work, all with different uniforms, weaponry and bad-assery. The Department of Homeland Security had these bad-ass looking guys in tan BDU’s, thigh-holsters for their pistols and sunglasses inside. The National Guard had standard beige camo, and assault rifles. NYPD had their guys in blue and whatnot, and i think the Transportation Security Administration had some officers as well, though not armed. There were “soldiers” everywhere. I felt like, if i was running for some reason, i would just have been shot.. No incidents to report though.

There were signs everywhere at Penn Station, in the style of “See something suspicious? Report it”, with pictures of “abandoned bags” and other such horror. Just felt like they were creating an atmosphere of fear, instead of an atmosphere of security.

Hotel Pennsylvania was at the corner of 33rd street and 7th avenue, opposite Penn Station / Madison Square Garden. A central location in midtown Manhattan, with easy access to all areas of New York, either walking, by buss or by subway. Everything seemed to flow through midtown. The Empire State Building was a few blocks away, and so was Time Square.

The Hotel had an offer for conference visitors, which made the place even cheaper, and for midtown Manhattan, 129 dollars per night *is* cheap. The rooms were pretty basic, some would even say run down. Paint had chipped on many walls. There was a disgusting black splotch of mold on the roof (probably below the A/C device in the room above), and a missing lock (i mean there was no lock, no mechanism, and the handle was lose) in the bathroom door. The good things were: Clean and comfortable bed, hot shower, working A/C and a working TV. I was pleased, and after i got off the initial shock, i had a pleasant stay. Hotel personel was nice and polite, and the services of the hotel in general were good.

The Conference

The conference started in earnest on Friday. I however, decided to take the elevator up to the 18th floor, where the main speaking areas were, and sign up for some volunteer work. I walked up to the desk, “manned” by Lindsay (Nick Farr’s right arm during the conference), and signed up to do some AV work. I took the elevator down to the Mezzanine level, where the Vendor and workshop areas were going to be, and started helping out by unloading trucks and carrying stuff. Later that evening, we put down some (read: a lot!) of cable for speakers, video, light and whatnot. By the end of Thursday, things were looking awesome and we were ready to start the conference the following morning! We had lots of people “from different walks of life” helping out with all kinds of stuff. As for the AV and lighting stuff, guys from Carnegie Mellon university (college?) were present to co-ordinate stuff, and they had lent/rented most of the equipment from different places. I met loads of interesting people during the volunteer work, including Lindsay, Nick Farr, Rudy, Daydreamer, Slowpoke, Kelly, and loooads of other people whom i can’t even start naming here, due to the sheer volume.

Volunteering was a great job, as you got to see the inner workings of the conference, meet people, and see the hotel “backstage”. As a hacker, seeing how something works is always interesting. Helping out and learning new things in the process is even better! I learned a whole bunch about AV-tech, and ended up doing a bunch of the video work. In all, i clocked in nearly 30 hours of volunteer work, most of that spent either building or tearing down the conference, and the rest video-taping the different talks. They will all be online later at the HOPE website, at http://www.hope.net.

In all, there were close to 100 talks, running on four different tracks, in four different rooms, all named after significant inventors and innovators in the technical field: Bell, Tesla, Lovelace and Morse. There was no way to see them all, as they ran in parallel, but that’s why there will be audio and video (some of it filmed by me! so when it sucks, you know who to blame :) ).

The Mezzanine level had the vendor and workshop areas, as well as the “administrative” areas, such as the Information desk, the Security desk, and the noc NOC. You could try out Segways, solder some stuff in the hackerspace area, grab a Club Mate or just chill out on the hammocks. Later in the evening, there were some “chiptune” concerts and movies being shown. You could learn how to lockpick, buy some books, pick up cool stickers or just talk to people. Just sitting down on Saturday evening with some people, i had an 8 hour discussion about all kinds of issues ranging from the Metrocard system in Finland, to politics to mandatory military service. These were people i didn’t know from before! Spontaneous contact with nice people was… nice. Just sit down, and start talking.

Oh boy… there is so much to say..  I’ll probably split this post into two or more pieces. Too much to say. Still jet-lagged, and tired from the whole ordeal.

Lab .. and life-updates

So as many of you have heard, my wife of 6 wonderful (no sarcasm here.) years has left me. She moved out yesterday, and left me here in this god damn 4 room apartment alone. This means, it’s time to look for a new place to live (still in progress), and do some redecorating. The lab will undergo extensive rework, and i’ll try to pull a “Didak” and document the process here. My old corner-desk is going to B, and i’ve already bought a 160cm x 80 cm desk for my lab. I’m also replacing my 2×22″ screens with one FullHD 24″ screen (one to start off, more later), and possibly an Ergotron LX arm for the screen. Those are really hard (or slow) to come by here in Finland, so we’ll have to see about that.

So what i’ve bought so far is the Galant desk (man i feel like watching Fight Club again…), with T-shaped legs from IKEA – 169€, and a BenQ G2420HDBL screen from Jimm’s PC-Store – 188€.

Pics will come later today as i get some help to move stuff around. I hope i can get cables done in a smooth operating fashion. No more tangles on the floor, thanks.

Nvidia Issues with Ubuntu 10.04

http://forum.xbmc.org/showthread.php?p=534712

A word about Solaris Zones (including a cheat sheet)

I thought i’d do a short write up on my experience with Solaris 10 Zones. So here goes.

Solaris Zones, or Containers, are a type of virtual machine, created on top of a Solaris 10 host operating system. That’s right, it needs a host operating system, so it’s not something like ESX that installs on bare metal with VM’s on top of that. Zones are one of the two types of virtual machines that you can do with Solaris; the second being Logical Domains. The difference between the two is that LDOMs can only be installed on pure SPARC hardware, and can utilize the hardware in a different way (such as the built in crypto chip of the new T1 and T2 chips). The specifics are out there, so i won’t get into that here.

Of the two, i like Zones because of their ease of setup. Both are easy, don’t get me wrong, but zones just feel right.

The basic steps for setting up a zone are as follows:

  • Install a machine with Solaris 10
  • See that you have enough disk space locally, or map appropriate network disks
  • Get network settings down before you start (your hostname and ip, gateway and dns etc.)
  • Create Zone, configure it, boot it, and configure some more
  • Install any additional software

So let’s get started with the “cheat sheet”, “shorthand”, “whatever you want to call it”:

Choosing Zone Type

You’ve got your Solaris 10 installed on a machine, right? It’s time to choose what kind of  zone to set up. There are two basic types. A Whole-Root Zone, or a Sparse-Root zone. The main differences are, that a Whole-Root zone does not share any of the directories of the Global Zone. This means that you can configure the system fully, like any physical machine with Solaris 10 on it. If you want to be running a lot of services that rely on stuff happening in /usr/local or you need to configure host specific files that can’t be shared with other systems, or just want the system isolated for other reasons, go with the Whole-Root zone. It’ll take up more space (around 3-4 gigs for a fully configured Solaris 10 system, plus anything you install on top).

A Sparse-Root zone has stuff shared with the Host OS, meaning if you change something on the Host, the change is immideately reflected in the sparse-root zones. This can be handy if you are running a system that needs constant changes, or are short on diskspace. But it’s not good, if you need to have the zone work on it’s own, with it’s own configuration. It’s all shared, or well most of it.

Installation

So back to your host OS! Make sure it’s patched up and so on. Install any applications that you might think you need on every Zone you plan to install. This would be stuff like..favorite editors, wget, sudo.. whatever you fancy. Don’t make it anything massive like postfix or so, because it probably won’t translate too well into your Zone, and will require extensive reconfiguration anyway.

Start out by deciding on a zone name, and initializing it:

zonecfg -z myzone

Zonecfg is used whenever you want to play around with the settings of a zone, or do something fundamental with a zone, like delete it.  The -z switch is followed by a zone name, and is used almost always, when you want to specify which zone you are fiddling with.

After running this command, you’ll be thrown into a new prompt, the zonecfg prompt. It’ll look something like: zonecfg:myzone>. Here, you can run commands that set the specifications of the zone, such as devices passed through from the host OS (also known as the Global Zone), filesystems you want to mount, network configuration and much more. I’ll go through the most important here.

Next, we’ll tell it to create a base configuration. For a whole-root zone, use

create -b

For a sparse-root zone, use:

create

This creates a baseline configuration, which you can look at with the view command. The main difference is, with the create command it’ll make sure the correct directories are inherited, and create -b makes sure nothing is inherited.

After this, we’ll add the zone path. This is where the operating system of the Zone will reside. Make sure you have space, so you don’t run out later. If you want redundancy, make sure you have all that sorted out at this point. If you notice something is missing or not right, you can always quit from zonecfg, and return to it using the same commands as above.

set zonepath=/zones/myzone

This places the myzone zone under the /zones directory in your host OS.This step is performed in both whole and sparse-root installations.

Next, we choose whether we want the zone to boot when the host OS does. This is usually a good idea, unless you have special requirements that i don’t know of. If the server goes down, and your friendly neighborhood sysadmin boots it, the zones will come up if the host does. This is good, and saves your solaris guys from doing a bunch of manual work.

set autoboot=true

Then we add a network interface, since you probably want the zone to talk to other hosts, and not just sit there.

add net

This gets you into the network configuration. prompt will say something like zonecfg:myzone:net. While in here, any commands you enter are directed toward the network configuration. Let’s add an address, a network card type, and a default route.

set address=192.168.1.2

set physical=bge0

set defrouter=192.168.1.1

end

Self-explanatory, but make sure your physical card type matches that of your host system. In solaris, interface names are according to manufacturer, so use ifconfig -a to check it out in the host os if you are unsure. Zone network adapters are made as virtual interfaces under your host interface. The first zone in my example will get an interface of bge0:1 and so forth. Defrouter is not mandatory, but you can specify a default route here if you so choose.End netconfig with the end command. You are now back in the main level of zonecfg

After this, you may want to add an extra filesystem. It’s easy:

add fs

set dir=/applications

set special=/some/network/share/on/the/host

set type=lofs

end

Okay, so first we enter the filesystem config with add fs. Then, we set the directory under which the mount is visible inside the zone. This can be confusing due to the next command, set special. This command is where to point on the host operating system. Why it’s called special eludes me. There’s nothing special about it.The last command sets the type as local filesystem. Others are available, look them up using help inside zonecfg if necessary.Once again end to exit back to the main menu.

We should now be good to go. If you want to pass anything else through to the zone form the host, you can do so. For instance, adding a device is as simple as:

add device

set match=/dev/device/*

end

This would give you access to anything under /dev/device/ on the host machine. You can get freaky with wildcards here.

We can now use the view command to look at what we’ve done. After that’s done, it’s time to nut up and shut up:

verify

commit

exit

Verify that settings are sane, commit them (save them), and exit. We now have a zone that is in a configured state. You can view the states of your zones using:

zoneadm list -civ

Very useful command, but for now, we want to install the system. This means copying the OS  and packages over to your zone. Whether you did create, or create -b significantly affects the amount of stuff to be moved over, but it shouldn’t take more than 10 minutes on any modern system.

zoneadm -z myzone install

And then for some waiting….. after you are done, you can do a listing again, and see that the status has changed from configured to installed. Now all that’s left is to give the system a swift boot, and an identity.

zoneadm -z myzone boot

This boot’s the zone. Notice that it takes like 2 seconds to do so, which is neat compared to many other solutions. After this, we have a system without the final configuration and identity. Do this by issuing

zlogin -C myzone

Capital C for console, since that’s all we have over in the zone right now. It’ll ask you a bunch of questions, and want the answers immediately! Nothing you can’t handle if you made it so far. Mostly about hostnames, DNS, languages, timezones and such.When you are done, it’ll save and reboot, and then get you back in a console login prompt, where you can type in your root login and password that you just set.

Shazam. Your zone is up and running. Configure SSH as you see fit, and access your system that way from now on. Create some users to avoid using root, etc. etc. This isn’t a best practices post so i’ll skip that shit now. Pretty simple, and once you have it routined, it’ll take you 15 minutes to set up a new zone that is ready to use. Not bad, eh?

Cheat Sheet

Oh yeah and the cheet sheet, quick reference for zones:

zonecfg -z zonename

create (for sparse root) or create -b (for whole-root)

set zonepath=/zone/path/on/host

set autoboot=true

add net

set address=nnn.nnn.nnn.nnn

set physical=bge0/hme0 whatever you have

end

verify

commit

exit

zoneadm -z zonename install

zoneadm -z zonename boot

zlogin -C zonename