HTPC 2010 – The Conclusion

The Conclusion

So time has come to get down to brass tacks. How much for the ape? I kid. I’ve now been using the HTPC for a little over a week, and i’m liking it. I’m gonna try to be as non-hyping and calm as possible, and list some of the challenges and victories with this build in this, the last post in the HTPC2010 series.

The Cons

First of all, the case is really cramped in a vertical sense. The fat ATX power cable has to be forced down, which feels really dangerous, as the fragile little motherboard starts to almost bend under the force. And all this just to get the top cover on. Some of the cables are also quite short, and the 4pin 12V extra power cable that goes to the motherboard only barely makes it to where it’s going. Cable management becomes a bit hard, when you have maybe a few millimeters of breathing room.

The 55×55mm fan in the rear of the case is also a bit annoying. It is quite loud, and causes some resonance with the metal of the case, and has to be tapped once in a while to shut it up. I could remove it altogether,  but i’m pretty sure it needs at least some cooling. The Asus motherboard has a similarly sized CPU fan, which isn’t quiet either. Would a passively cooled one have been a better alternative? Not if you ask Anteuz, as his Point of View-motherboard came with a passive CPU heatsink. He said it got so hot, he actually took the fan from the rear of the lascala and put it on the cpu heatsink to cool it off. So maybe a small tradeoff here.

There is no space for bigger fans without modification of the case.

The Asus motherboard doesn’t receive high marks from me in another area as well. The onboard connectors are quite limited. There is only one internal USB, no firewire, no esata, no anything. There is actually an esata solder-point on the motherboard, but alas, no connector. This would have been nice for hooking up an external drive, either through firewire or esata, but neither is present. This presents another problem with this case: the front panel. The frontpanel of the Lascala has a memorycard reader, which needs internal usb to work. It also has 2xUSB, firewire and audio. So i have to chose either the usb ports, or the memory card reader, and make due with no firewire.

Oh yeah, and there is no cover-panel for the optical drive slot (which is above the memorycard reader. This makes for a rather ugly front panel, if you open the little flip-down hatch, and find that there is a gap there. I chose to have the front panel usb’s hooked up, and left out the memory card reader. This means there’s a huge hole where the optical drive and card reader should be. Rather ugly. They could have included a damn cover for 160 euro……

I had problems with the sound, but this was to be expected. Using the optical out isn’t always simple in Linux, but once the correct configuration was entered, everything worked fine. Basically it was like 10 rows in my .asoundrc that solved the problem. It was mysterious. Video files with high-quality audio like DTS or other fancy Dolby standards worked fine. But then simple mp3 or other audio didn’t. One would expect it to be the other way around.

I also had problems with the video drivers. I went with the ubuntu recommended 185 drivers, and they had no problems. However, upgrading to the latest 195 drivers from nvidia resulted in XBMC crashing to the desktop immediately upon trying to play an .mkv file. Frustrating.

HDMI also didn’t work with the correct resolution from the getgo, and while VGA did, it has problems placing the image correctly on my Samsung 32R86 tv. I have to run the “automatic placement” menu item on the TV to position the picture correctly. And what’s worse, the placement is different for XBMC and the desktop. So to have a perfect image, i’d have to run that thing every time.. This is probably just a TV issue, so i’ll wait for my new 40 incher until i start spending time on this.

Setting folder content in XBMC is a bit tricky. I found that working on the default Confluence skin was the surest way to go, as many of the custom skins had some kind of reverse polish logic in them. Take this use case: I add a new folder to the library, and press the folder with the right mouse button and select “Set Content”. Here, i select the scraper (which website it uses to get the metadata for the content), and start indexing the content. If i made a mistake, i can’t return to that same folder view, all i have is the contents of that folder. When i manage to get back to that view through some dark magics, i find that the Set content menu-item is no longer there, and i am unable to “re-set” the content, if something went wrong, which it did.Through some voodoo, every media file in the folder got scraped as “Home movies”, by Ridley Scott, 1986. So every media file had the same metadata (which is incorrect, i don’t even have such a file!), and re-trying was not possible. Removing the library and re-setting the content seemed like the best way to go. And even then, some content had to be set manually, because it was not detected or processed correctly. A lot of manual work, that only has to be done once, note.

The Pros

The relatively cheap ION platform, while low powered, can decode media like a motherfucker. There is no chopping or other problems while playing even super high quality full-hd content, with hd class sound. It just works. And CPU load hardly ever goes over 50%.

All things said,  the build is still very quiet, and aesthetically pleasing, with it’s Set-top-box type black case. All that’s missing is a remote. It doesn’t take up much  power when playing media. It’s compatible with most forms of video and audio. Adding spotify through wine, you can even have that functionality all in the same box (though not integrated to XBMC..yet…).

The machine can be used to do pretty much anything except like.. graphics or encoding of media, or playing games. It doubles as a general internet pc in the living room, that you can use from the comfort of your own couch. With a 150 bucks more, you can add a bluray player, and save having to buy yet another box to your already cramped equipment racks.

I’m also pleased with how little tuning XBMC took in the end (save for the partial audio problems). Installing it was easier than i thought. My wife quickly learned to use XBMC as well, though she isn’t what you’d call a total newbie. I’m just waiting to teach it to my 2.5 year old son.. :)

HTPC 2010 – The Install

The Install

Time for the install. Nothing spectacular here. I booted the thing off a USB-drive i created using unetbootin 3.93, with a Ubuntu 9.10 (32-bit) iso slapped on there.  There was some issues booting from the stick, because i couldn’t get to any kind of boot menu (F12 didn’t take me anywhere), so i had to take a look at the BIOS. The setup was a bit different from what i’m  used to, namely, the usb drive is detected as a hard drive, and not as a removable or separate device. So, to start off, i had to set the hard-disk to boot as the first device, and then set the order of the hard disks, so that the “primary” hard disk was the USB-drive, and the secondary drive was the internal 250 GB drive. After this, the boot worked just fine. After the installation was done, removing the USB drive bumped the 250GB to the primary drive.

Other things that need to be noted in the BIOS are: Setting your graphics memory to 512 (or whatever your max is). This will ensure flawless HD playback. Default is usually 64 or 128 or something, which isn’t enough. Also make sure you have all the necessary audio and video ports enabled.

The Ubuntu installation was quick and painless. I chose to use the entire 250GB drive, and let Ubuntu do it’s magic on it. Nothing special during the install.

After the installation, only a few packages are needed. The commands that i ran, in order:

apt-get upate && upgrade

apt-get install nvidia-glx-185

This updates the repositories, upgrades existing packages, and installs the nvidia hardware driver. You can also use the Administration -> Hardware Drivers, which at the time of this writing, installs the 185 driver.

Note! I had some problems with the latest 195 driver. After installing it, there were some dpkg errors that prevented the installation from finishing properly. After this, graphics were fucked, and i couldn’t start x. When i did get the driver installed, and everything seemed to work, i was completely unable to play any HD quality .mkv files. XBMC would crash to the desktop. Also, trying to play them in VLC for instanec, resulted in equally disasterous problems. So unless you are having problems with your ION and the default 185 drivers, don’t upgrade.

After this i pretty much followed the linux installation guide of XBMC in their wiki. Roughly the installation is:

  • add the correct repositories
  • run apt-get update
  • run apt-get install xbmc
  • configure sound
  • configure xbmc
  • done.

The setup i had was: Run video through VGA (i have only one HDMI in my current TV), and audio through spdif to my amplifier. This was a fairly easy thing to set up, though the audio was a bit problematic, as i will describe a bit later.

Connecting the VGA got me a good picture right away with native resolution (1366×768), whereas through the HDMI it got detected as 1280×720, which is incorrect. And the picture wasn’t scaling correctly either, so i figure i would have needed to add some modelines to my xorg.conf. More about this later when i get my new Tv and hook up using HDMI.

About the audio

Getting audio to work was a bit problematic. In XBMC go to System -> Settings -> System, and then to the audio output tab. There, you need to check that you have your amplifier or TV set to support DTS and AC3 audio (if it does), and that you are outputting digital audio. For me, i had to set the audio output device to custom, and the device to plug:dmixer, and the passthrough device to IEC958 to get everything working. Changes to your .asoundrc in your profile root was also necessary, to make it understand the plug:dmixer device.

If you don’t make the above changes, you will find that only surround movies (DTS and the likes) will work. The rest, say shittier mp3 audio movies will not play anything, or even display a “incorrect audio device” message. Which is odd, because you kind of expect it to be the other way around, that the complicated DTS and other encoded sound would not work.

First off, find out which device you want to be using, by running the command aplay -l in your terminal. Look at the card number, and the device number, and see which output you want. In my case, it was the spdif, which was card 0, device 1. In alsa speak, this equals hw0,1

The contents of my .asoundrc file, which is placed in the root of my profile is as follows:

pcm.dmixer {
    type dmix
    ipc_key 1024
    slave {
        pcm "hw:0,1"
        period_time 0
        period_size 1024
        buffer_size 8192
        #periods 128
        #rate 44100
        rate 48000
     }
     bindings {
        0 0
        1 1
     }
}

The bold line over there is the important one, and the only one you possibly need to change. Save the file, reboot the computer to be sure.

Now sound should work in any media files, regardless of the encoding.

Customizations i used in XBMC was the Rapier skin, basically. I stream media from my other machine through gbit lan, which works fine with any type of media.  I used a standard samba share for this, and no issues have cropped up so far.

I could write a bunch on scraping and other XBMC stuff, but they are so well documented in their wiki that i won’t bother. Just remember, the backspace key takes you back one level, and the c-key gives you the “right-click” context menu on any item (like a movie or folder). That is all.

References:

http://wiki.xbmc.org/?title=XBMC_for_Linux_specific_FAQ#S.2FPDIF_out_for_both_analog_and_digital_audio

http://wiki.xbmc.org/index.php?title=Installing_XBMC_for_Linux

http://wiki.xbmc.org/index.php?title=HOW-TO_install_and_switch_between_skins_in_XBMC

http://xbmc.org/skins/

HTPC 2010 – The Build

The build

I got word from Jimm’s Pc-Store that half of my parts had arived. The rest i would buy from Verkkokauppa.com because they had it in stock. I ended up getting a 250 gig hard drive for 39 bucks, simply because the cf solution was not immediately available (not in stock), and it would have cost nearly three times as much. Otherwise the parts list in the first post holds true.

I started by skimming the manuals of the case and the motherboard, and then started taking the case apart to prepare for installation. I had to remove the top cover, obviously, and also add and remove some of the internal cables according to my needs.

All the parts in one pile!

This is what the case looks like on the inside. Note the power supply, or actually just the distribution-point. The powersupply is actually that transformer-brick next to the case there. There is a 24-pin atx, 4pin 12v extra power, cables for floppy, molex, and sata, which are fairly modular, i.e. you can chose not to connect the molex cables if you don’t need them, like me. The case has a rubber-padded spot for the hard drive, on the bottom left in the picture. This should (and did) eliminate most of the vibration caused by the movement. The case also has front panel audio, usb and firewire, as well as a memory card reader. Sadly, the motherboard i got only had one internal usb, so it was a choice between the two front panel usb ports, or the memory card reader. I chose the usb ports, because it’s a handy way to hook up external hard drives and media players. Ofcourse, one can just switch the cable, and use one of the external usb ports to hook up the memory-card reader.

Cables for power and hdd led, as well as the power-switch are also included. Cable management turned out to be a bit hard: the 24-pin atx power cable is very very thick and stiff and needs to be forced down quite a lot to get the top cover back on.

The case, opened

power supply

The "Power Supply"

After this, it was time to put in the Asus motherboard, the hard drive, and hook up all the necessary cables. I forgot to take a pic of the innards with all the parts connected, but i’ll do that today. Here’s a picture of the motherboard, pretty handy-looking huh?

motherboard

The Asus Motherboard

So when everything was connected, it was time to put the case back together, and prepare for installation. The plan is to install Ubuntu 9.10, with XBMC 9.11.  A few more pics of the ready build. Note the fucking awesome blue led, without which, this build would be like, less cool.

Done!

Done!

A view from the top

HTPC 2010

I finally got off my lazy ass and ordered the parts for my HTPC. The build itself, is inspired by Anteuz’ build, which i had the pleasure of fiddling with last weekend. The build was very convincing visually, as well as performance-wise.

I’ll document the entire process of building, installing and configuring on this blog. The first part: The Buy

The Buy

The first task in any computer project is deciding what you want the build to do. I set some goals for this build:

  • Has to be visually appealing, and suitable for my livingroom (that means, slim, silent and black)
  • Has to be able to play 1080p media (and anything below that of course)
  • Has to be usable with a cordless keyboard & mouse and/or remote control
  • Has to be able to run Linux
  • Has to not cost me an arm and a leg!
  • Hast to have some form of expandability, say if i want a Bluray drive later!

Setting out with these goals in mind, the only reasonably priced hardware that does all this is based on the Nvidia ION chipset. The build Anteuz has is a:

  • Asus AT3N7A-I Motherboard
    • Atom 330 dual core processor
    • Nvidia ION chipset
    • Gbit Ethernet
    • 8GB RAM (DDR2) max.
    • DVI/VGA/HDMI/SPDIF etc. outputs
  • 2 x 1GB DDR2 RAM
  • Hard drive
  • Silverstone Lascala SST-LC19S-R with 120W passively cooled powersupply

I ended up ordering pretty much the same set:

  • Asus AT3N7A-I Motherboard (126€ @ Jimm’s Pc-Store)
  • 2 x 1GB DDR2 (800MHZ) (44€ @ Verkkokauppa)
  • Silverstone Lascala SST-LC19S-R (160€ @ Jimm’s Pc-Store)

But as for storage i ended up with a slightly different solution:

  • SATA -> Compact Flash adapter (22€ @ Verkkokauppa)
  • 4 or 8 GB Compact Flash card from Sandisk, the Extreme III model (with ~30MB/s read and write) (34 – 51 € @ Verkkokauppa and elsewhere)

What i’m going to be doing is, putting Ubuntu on the Compact Flash card (which is completely quiet, low power, and physically small). I don’t need a lot of space for Ubuntu, since it’ll be a barebones install, with the XBMC media center application on top, it’ll hardly take more than 2 GB.

I’m not going to store any media on the HTPC, but instead, stream it over the network from my fileserver. With Gbit Ethernet, i’ll be able to stream 1080p content with no problems. The network “backbone” is an HP Procurve 1400-8G, which has more than enough throughput and oomph for my small network.

The total price for the build is 386€ with the 4GB Sandisk Extreme III (add 20 bucks for the 8GB version). For less than 400€, i will therefore have a build that can stream HD media from my network.

A future expansion will be a slim blu-ray drive, which runs at around 150€ right now, which is not a bad price. The hardware is more than capable of playing blu-ray discs in their full 1080p,  surround sound glory. And that’s cheaper than a Playstation 3, which has no games anyway :)

Next up, when i get the parts: Pictures and The Build. After that, it’s time for The Install and then The Conclusion.

What’s the deal with the iPad?

Clever readers will notice the Seinfeld reference. Anyway, on to the topic.

Everyone is writing about the iPad, so as not to arouse suspicion, so will I. The iPad was released a while (a week? two?) back by Apple. Using the standard hypewords “awesome”, “fantastic”, “amazing”, “fabulous” etc. Jobs hailed the device as a whole new class of devices (which it is, more on this later), and quote: “The best web browsing experience you’ve ever had!”.

Let’s first look at the specs. The device has an Apple designed A4 processor (though rumors are, they bought the silicon from some other company), 9.7″ multi touch screen (with IPS panel), 16 -> 64 gigs SSD storage. What it does not have is:

  • Exchangeable battery
  • No expandable memory (no sd slot, no usb slot, no nothing)
  • No usb ports (use apples propietary 30 pin cable, with adapters)
  • No multitasking in the OS
  • No phone functionality
  • No 3g in the standard version (pay $130 extra for that in any size class)
  • No camera
  • No flash!

That seems like a long list. Which is probably because it is. There are a number of shortcomings in the iPad, and with a 499 pricetag, that’s pretty unacceptable. To my eyes, this is a total fucking rip-off product, with no real killer app or usage scenarios. I’m thinking this could be used by say, medical institutions or perhaps, as a device for visitors to a museum or something. But multitasking becomes an issue here as well.

Who is going to use an office suite, without multitasking? Enjoy writing your diary, without surfing or doing anything else at the same time. Enjoy not being able to surf the web while taking notes.

This is a deliberately defective product. According to sources, the parts in the iPad cost apple 300 dollars. Which means, for the cheapest shit-ass model, they are raking in a huge 200 dollar profit. Even if they just sell one for each apple fanatic, they’ll still make enough money to be happy.

Again, this isn’t that they couldn’t have included all of those things, they did so because they decided. This way, they can make the 2nd generation iPad, which has all of the clearly missing features, and everyone will go fucking apeshit about their genious device. But let’s get real here. A device with more features existed 7 years ago, in the form of an HP tablet computer. This is just highway robbery on Apple’s part, and i don’t like it.

Why did Jobs call this the best web browsing experience you’ve ever had? I wonder why their product pages had blatant lies on them at the time of the release? They showed video and images of iPads visiting Flash based websites, until some keen-eyed humans found the lie, and Apple had to quietly take it down. The fact of the matter is, it does not run flash, and probably never will. Jobs says it’s because “Adobe could be making an awesome product, but they choose not to.”

Why not stop lying and tell them the real reason, huh? The real reason is: through flash, people could be watching online video and skipping quicktime. Through flash, people could start creating and distributing games and applications that would circumvent the Apple store, which they want to keep strictly controlled. We all remember the dictionary app that wasn’t allowed because it allowed translation of naughty words. Sure, flash is not perfect, but devices since Symbian S60 have had flash. This is the year 2010 and Apple comes out with a product without Flash? Get with the program! Through process separation, flash could be made perfectly safe, so i’m not seeing the problem. Jobs keeps talking about HTML5 which brings video support (can be tried out on youtube, with certain browsers), but let’s get real. 70% of all online video and most modern sites and portals use Flash. Without it, you’ll get a lesser experience, or miss out on some content altogether.

What is the use for this thing, seriously? What could you possibly want to do with this iPhone XL? Give me some suggestions. Meanwhile, i’ll keep thinking, and i’d rather spend my money on the 58 tons of sand i could buy with the 499 i saved by not getting the maxiPad.

Don’t buy the iPad. It’s a complete fucking ripoff, and you’ll regret it in a year when they come out with a revolutionary product that has a camera *and* 3G built in!!!1one.

Sheep

Today’s blogpost is inspired by the problem with our dear Finnish people. Or maybe it’s a global thing, humanity itself.

I’m talking about a) tolerance b) being a fucking sheep. Let me present to you a problem that i’ve been having lately.

VR is the state operated railway here in Finland. It operates all trains, and is responsible for collecting ticket fees, operating the stations, platforms etc. They have steadily been increasing prices of train tickets, due to uh.. inflation and rises in operating costs. However, trains don’t seem to go on time during the winter, which makes me a bit angry. My problem is, that i’m constantly paying my ticket, and yet, the trains i count on to get to work and back are never on time when there is a little snow on the ground.

Granted, this winter has been exceptionally bad, with more snow than in any previous year since the 1960’s, but none the less. Where is my money going? It sure as hell isn’t going to improving the reliability of trains in “extreme” weather

Winter is not a new concept in Finland, and many places operate trains far more north than Helsinki, in southern Finland. We get snow, which starts gathering in the machinery of the train, the wheels, the gears and whatnot, which is preventing trains from moving. At least this is according to VR. Also we are having problems with tracks freezing so badly, trains can’t switch tracks as they have to to reach the correct places.

This to me seems like an engineering problem. If you throw enough money at a problem it usually goes away. Increase the amount of plows on the tracks. Put heaters in places where icing is a problem. But this isn’t happening. Why?

Traditionally, when consumers (that’s you and me) have a problem with something, they start complaining. This is happening now with the trains. Inneccent complaining results in either a) the company shutting down because they can’t or can’t afford to fix the issues that the complaints are about, b) the company fixing the problem c) company lowering prices or offering compensation due to lost revenue/time or whatever or the consumers. This isn’t happening either.

VR could shut down their customer support, and stop notifying people of late trains, and what would we do? We’d keep complaining, and keep traveling, because that’s what we do. That’s all we do. We have no other option but to keep traveling. They could just lay off 90% of all their staff, send them to Bermuda or where ever, and there isn’t a damn thing we can do about it. We either accept the problems, or we stop using trains. Which isn’t happening. So we make like sheep.

Why i keep paying for tickets during winter, i don’t know. There should be no ticket fees at all. But they just keep raising the prices, and we keep paying. If a ticket inspector came on any of these late trains (i waited 45 minutes this morning), i would probably punch him the fuck out. But there’s a problem with those guys too. Inspectors get paid from the inspection fees (80 euro, or.. what, 120 dollars?) from everyone traveling without a valid ticket. When they increase the inspection cost, it doesn’t go toward anything else, except paying for more inspectors.

It’s like traffic cameras in Helsinki. The fines sent out by traffic camera pictures, are used to invest in new cameras, so more fines can be had, so more cameras can be bought…

So how is this organisation still operating? Because we are sheep and we don’t really care. We just accept what the news is telling us, what VR is telling us and accep that there is nothing anyone can do. This is 2010. We are a nothern country. We have had winter here since the planet was created, oh, 4.6 billion years ago. This is not a new thing. This is an engineering problem that isn’t being dealt with, because frankly, they don’t need to.

Samsung N140 review

So here’s my uh.. long-awaited review of the Samsung N140 netbook. This is a fairly recent model that was released i think some time late last year (and early this year in Finland). It’s basically an upgraded model of the acclaimed N120 (won tests in both Mikrobitti and MikroPC magazines here in Finland).

Let’s get a few things straight right off the bat. This is a netbook. Don’t come crying to me that it’s low powered, because i know. That’s why i got it. Yes, your calculator may have more power than this, but i don’t give a shit. Anyway, on to the review.

What’s in the box

The laptop costs somewhere below 400 euro in Finland. I bought mine from Anttila for 399 + shipping. The box is a very minimalistic (ecological, i suppose) box, with very little graphics or glossy print. Inside the box you’ll find the netbook inside it’s protective bag and set in some foam. An accessory box is next to that, which contain the installation guide, warranty information, declaration of ROHS compliance, and other assorted papers. Also included is a black samsung “second skin”, with zipper for the laptop.

I wasn’t aware of this, so i went out and bought a Tucano Second Skin from Verkkokauppa for 12 euro, but in hindsight, this was a good idea. The included black case is very very thin, and because of this the quality feels a bit cheap. I guess it protects from scratches and such, but i’d prefer something thicker, like the Tucano.

Also included of course, is the power brick, which is very small. Like a small mobile phone, only a bit thicker. A 2 meter power cable is included. Note well that this laptop can also work as a usb charger for a device such as a mobile phone, ipod etc, even when the laptop is powered off!

Specifications

The specifications of the netbook are as follows:

Processor: Intel Atom N270 (1.6ghz, hyperthreading)
Memory: 1 GB 533 MHz DDR2 (upgradable to 2GB, trying this later)
Hard-drive: 250 GB (2.5″, 5400RPM)
Graphics: Chipset is an Intel 945, with Intel GMA950 graphics that uses shared memory from the RAM.
Screen: 10.1″ LED backlit, resolution 1024×600 pixels
Optical drive: NO
USB: 3xUSB 2.0
SD-memory card reader (supports SDHC)
VGA out, Audio in/out, Ethernet, Wireless and Bluetooth 2.1EDR

Physique

The laptop itself is a very solid build, which was a great surprise after having tried some other netbooks, such as early Eee-pc’s. (701 i believe?). It does not flex at all when holding it from a corner, and there are no uncomfortable squeaks or inconsistencies.

The top of the laptop is very shiny glossy plastic, that will retain any memory of any physical object (may apply also to ghosts and spectres) touching it. This means fingerprints, scratches and other scuffs will be visible for all eternity. It’s also easy to clean because it’s so slick, but bear in mind: any rough cloth or dirt on it will leave scratches if you wipe with it. This applies to most samsung products, TV’s etc.

Inside it’s matte, but with a shiny chrome border circling around the keyboard. I’m not sure what the function is of this, i think it just looks cheap.

The touchpad is a decent size for a netbook, and very comfortable to use. The button is a one-piece, two-button affair, which feels a bit fidgetty, but you learn to use it pretty quick. Just hit the left or the right side for the desired button.

I would call the keyboard Thinkpad-esque. It’s bloody awesome. The size takes up the whole width of the netbook, and has very nice feedback and a generally i give it high marks. Includes function and windows button. Functions behind the fn key are: sleep, battery, the euro sign, external/internal screen, brightness, mute, volume+ and -, “turbo mode”, wireless, touchpad on/off, home, end and num- and scroll lock.

Memory is easily accessible under a one-screw hatch in the bottom. This is also a feature that most netbooks don’t have. There is a single slot, that is occupied by a Samsung brand 1GB stick, 533mhz.

Battery is removable, and there are rumors of a new more powerful battery, but i haven’t seen it yet.

Software

Comes bundled with Windows 7 Starter (32-bit). The bundle is quite horrible, as it includes every damn thing under the sun, most of which are limited time trials, offer very limited benefits for the user. Some of the “highlights” are:

  • Office 2007 (1 year trial)
  • McAfee Anti Virus + Firewall + Doohickies
  • Samsung Backup solution (only thing i’ve actually liked, more on this later)
  • Various small farming-related games, such as Dairy Dash.. (wtf?)

The Office 2007 trial didn’t work, as it just offered a 60 day trial, or an option to buy it for a very affordable 600 euro (more than the machine).  Uninstalled that fucker right off the bat. McAfee, slow as molasses, and didn’t activate. Uninstalled. Games. Uninstalled.

The Samsung backup utility makes a full disk restore image when you first start the netbook, and it’s apparently stored on the 15 GB recovery partition that’s configured on the drive. This came in very handy, as i was able to bluescreen the bitch right away, after installing newer drivers for the touchpad. So uh, don’t do that. I booted the thing, and hit F4 to access the recovery image. Full restore (10GB) took about 20 minutes. After that i had to re-uninstall everything, but now i’m cool.After this, i created another backup image, this time of the customized operating system, so i wouldn’t have to do this all over again.

Updated the BIOS to the latest version, dated 10.1.2010. Nothing notable, no changelog on Samsung’s site. There’s a program called Samsung  Update which takes care of updating the drivers (however messing up with the touchpad driver). Drivers can ofcourse be downloaded manually too.

Performance

I did some simple tests to compare the performance of the Samsung N140, with my previous “netbook”, the IBM Thinkpad X41. Specs of the thinkpad are: 1.6GHz single core Centrino, 2GB DDR2, 1.8″ 40GB Hard Drive, Intel 845 chipset.

Here are the results, which i won’t analyze other than to say that the results were largely expected. The Atom is low powered, but the hard drive kicks ass.

  • HyperPI (calculates decimals of PI):

1 million digits:

Thinkpad: 48 seconds
Samsung: 1 minute 57 seconds (running 2 threads), 1 minute 36 seconds (running 1 thread)

2 million digits:

Thinkpad: 1 minute 57 seconds
Samsung: 4 minutes 22 seconds (2 threads), 3 minutes 37 seconds (1 thread)

  • HDTach 3 (measures hard drive performance)

Thinkpad: Burst 90,2 MB/s, Random Access 19.7ms, Average Read: 17.2 MB/s, Sequential reads: 20 -> 14 MB/s
Samsung: Burst 118.2 MB/s, Random Access 19.6ms, Average Read 71.4 MB/s, Sequential reads 89-43 MB/s

I was unable to run PCMark05 due to (maybe?) the resolution of the Samsung (below the required 1024×768).

Windows Experience Index scores are: 2.1 for the Samsung, and 1 for the Thinkpad. Biggest differences were CPU (thinkpad wins hands down), and HD (Samsung wipes the floor). I’m not sure what the net difference is, when you account for all the differences in performance, but the Samsung is a netbook.

Overall impressions

So far, i’ve had it for about 24 hours, and i’m very happy with it, despite the small hickup with Windows 7.

Pro’s

  • Good bang for the buck
  • Build quality
  • Visually appealing (mostly)
  • At least some upgradability

Con’s

  • Bundled software doesn’t work or sucks
  • Windows 7 starter…
  • Glossy edge around the keyboard

I purposefully left out performance from the con’s section, because you can’t expect performance from a sub 400 e netbook. You get it for the battery life and the portability. If you’re looking to do more than surf the web, read your mails or sit on IRC, i recommend a computer.

Future projects

I have this idea of putting a Sandisk Extreme III SD card in to the SD slot, and installing some netbook linux, and seeing if that is any faster. The 8GB variant of this card comes at around 40 € here in Finland, which isn’t all that bad. The question remains, what bus is the SD card hooked to?

The memory will also be upgraded to 2GB, though i’m not expecting much difference in performance here.

Recent Developments

So it’s been a long while since i last wrote anything. So what’s been happening lately. Well, a few things.

Dorsia has been replaced by a “slightly” less powerful machine, namely an old P3 rig. Dorsia is my shell machine that i’ve used to hand out shells to people i know. Nothing really special here, it does the same job as before, but with less overhead. The previous Dorsia machine was a G4p HP Proliant, with dual Xeon’s, so it’s best off doing something else. In this case, something else is installing VMware ESXi on it, and using it as a test bench for numerous virtual machines. It’s better suited for that task. This project is stil pending, but, the server hardware is compatible with ESXi, and i should get on that with P at some point. Our plan is to build a kind of virtual lab environment, where we can have different server operating systems, such as Windows 2003 and 2008, among others, and then run a hostile machine,perhaps with the recently released Backtrack 4 final. As soon as we have time..

I’ve ordered a netbook. So yeah, i became yet another sheep and got myself a netbook. Yes, i’m aware they are very slow etc. etc, but i’m just interested in surfing the web and writing stuff down, and for that, i think it’ll be just fine. The one i got was a Samsung N140, which is a 10″ netbook, with a 1.6GHz Atom 270 processor, 2 gigs of memory, a 320 gig hard drive (5400rpm), and various other parts of lesser interest. There are a few things that are of concern. 1) Is the machine powerful enough to run some flash content? I’m not talking about some multimedia extravaganza, but simply youtube and such? 2) The resolution is small, and i know this. But, it has a VGA out, and where i’ll be using it “proper”, i’ll have an external screen to hook up to it.

Basically, i’m not expecting much, but it’ll be interesting to see how it compares with my previous “netbook”, my Thinkpad X41, which has developed some problems with the battery and charging. This puppy has a 1.6 GHz Centrino,  with 2 gigs of memory. I’ll be running some benchmarks to see how the Atom fares against this 5 year old machine. Should be interesting, as there aren’t a lot of benchmarks that compare older hardware with netbooks, and as M pointed out, there are so many different architechtures; comparison becomes difficult on a larger scale. I’ll be reporting on this as soon as i get the machine, which should be next week.

I’m also trying to find out what the perfect linux distro would be to install on this. I’m taking suggestions, if you have them.

Adobe presented me with an interesting perdicamen this week at work. I was fiddling around with trying to get the Adobe PDF printer working under Windows 7. This proved to be a bitch. After countless hours of testing, i found out that Adobe Acrobat version 7, works just fine under windows 7. This is an old old version, from like 2003, which doesn’t even have support for Vista, let alone Windows 7. Adobe 8, which was used in this particular case, just didn’t work, not even with the latest patches. It installed the printer, but you were unable to use it, as Acrobat claimed the product was unactivated (it worked otherwise just fine, so i think that’s just a bogus error message). Again, version 9, the latest version (patch 9.3 released 14th of January) has official Windows 7 support as of 9.2, and that worked fine from the get go.

So Adobe, why doesn’t version 8 work, when the older technology of version 7 works just fine? You wouldn’t be out to get Windows 7 users to buy Acrobat 9 now would you? Tsk tsk.

Glamorama, the recent book by author Bret Easton Ellis (notably of American Psycho-fame), is what i’m reading next. Hopefully, even today. It was shipped out from Jersey, at play.com last week, so i should be getting it either today or tomorrow.I hope it’s as good as American Psycho! I think i’ll be reading his entire bibliography, since i very much like his topics (glamour,  yuppies, decadence and horror), and his writing style.

Ham radio. Me and B decided we were going to become ham radio operators during the year of 2010. We haven’t started yet, but i’m definately going through with this. I have a few ham friends who i’ll be talking to about where to take the exam and so on. The basic level exam isn’t too hard, plus i was in the signals battalion during my one-year army stint, so this shouldn’t really be a problem by any stretch of the imagination.

http://www.hilavitkutin.com/2010/01/20/muistutus-ala-laita-foliota-mikroon/

ATI Stream & Pyrit update!

You might remember a while back, i posted some entries about using your ATI GPU to do some number-crunching for you. Specifically, Pyrit can be used to break the PMK or Pairwise Master Key of a WPA protected WLAN. Pyrit can use both ATI and NVIDIA cards (plus some others); this entry will deal only with ATI, since i have an ATI Radeon 4850.

Prerequisites

Let’s get started. The platform that i have for doing all this is as follows:

  • ATI Radeon HD4850 graphics card (Asus brand, 512 MB memory)
  • Gigabyte motherboard with AMD790 chipset
  • AMD Phenom II X4 processor
  • 4 GB DDR2 memory
  • Ubuntu 9.10 64-bit clean installation
  • Latest fglrx drivers from ATI, installed using the System -> Administration -> Hardware Drivers
  • Kernel is 2.6.31-16

To start out, i installed the following packages (packages are in the ubuntu repositories):

  • binutils, build-essential, libssl-dev, python-dev, zlib1g-dev, libzlcore-dev

There shouldn’t be other dependencies, but do download anything that apt suggests with the aforementioned packages. After this, you need to install the ATI-stream packages, which is split into two parts: Atical and Atibrook. The files can be downloaded from ATI’s site, but installation may be tricky. I used alien to convert the .rpm packages to .deb packages, which worked somewhat well. I’m not brave enough to distribute the .deb’s i made on this site, as i never heard anything from ATI when i asked about this. Sufficed to say it can be done and wasn’t too hard, since i managed.

After this you can go two ways. Either install the stable 0.2.4 packages of Pyrit, or go the SVN route, and get the very latest builds (revision 193 or 0.2.5-dev at the time of writing). In either case, the process is the same, but the SVN is always the “latest”, which doesn’t necessarily translate to “most stable” or even “working”. I tried SVN, because i had an issue (which later turned out not to be Pyrit’s fault, more on this later).

The SVN-way:

Install a svn client by doing:

sudo apt-get install subversion

Go to your home directory, or other location where you have write privileges. Run the following command:

svn checkout http://pyrit.googlecode.com/svn/trunk/ pyrit_svn

It will create a directory called pyrit_svn where you are, and download the latest source-code. To update this later, run:

svn update

You will end up with a directory-tree that contains everything in the pyrit project. The ones we are interested in now are the directories called pyrit and cpyrit_stream.

From here on the instructions continue the same way, whether you got the SVN or the stable code.

Compiling Pyrit

If you downloaded the packages, open them up and place them for instance in your home directory. First, enter the directory called pyrit and run the following command:

python setup.py build

If that succeeds, and you don’t see any errors (it should be pretty quick), type in the following command:

sudo python setup.py install

You should also get no errors from this before moving on.

Compiling cpyrit_stream

Now we’re compiling the ATI Stream component of Pyrit (as opposed to CUDA for Nvidia cards). Go back to the directory you unpacked the stream files (or the pyrit_svn directory if you downloaded that), and enter the cpyrit_stream directory. Run the same commands as you did with Pyrit main, i.e python setup.py build and then sudo python setup.py install.

Note! You will probably hit a glitch here, as i have done every single time i’ve compiled Pyrit. These are known issues, which are adressed in the following way:

You’ll get an error that says something about:

/usr/local/atibrook/sdk/include/brook/CPU/brtvector.hpp:190: explicit template specialization cannot have a storage class

There’s an error in two files (with the latest version of Linux Kernel/ATI drivers, i’m not a developer so i can’t say what changed, but these changes were necessary) that need to be corrected before you can compile cpyrit_stream.

You need to locate and open the following file: /usr/local/atibrook/sdk/include/brook/CPU/brtvector.hpp

Inside this file, find the following line: #define SPECIALGETAT(TYP) template <> static TYP GetAt (const TYP& in,int i) {return in;}

From this line, remove the word static. Save and close the file. Do this as sudo, because atistram is installed somewhere where you probably don’t have write permission.

From the same directory, open as sudo the file brtarray.hpp, and in the beginning of the file, find the line or lines that start with include, and add the following there:

#include cstdio (with cstdio inside < these > characters)

Save and close the file. cpyrit_stream should now compile perfectly. If you have doubts, replace the word build with clean, and then start the compilation again.

After this, add the following lines to your .bashrc .bash_profile .profile file (s). I frankly don’t know which of them is the effective one, but the idea is to load this when you load your profile. We want to add a few variables so that Pyrit can execute the ATI stream code successfully.

export LD_LIBRARY_PATH=/usr/local/atibrook/sdk/lib:/usr/local/atical/utilities/lib64:$LD_LIBRARY_PATH
export PATH=/usr/local/atibrook/sdk/bin:$PATH

Additional problems & Testing

You should now have a working Pyrit that can utilize ATI Stream. I ran in to some more problems at this point, but i was able to solve them with the help of the internets.

Next, try seeing of you can locate the GPU using the FindNumDevices which should tell you that you have one device ready, or the number equal to the amount of GPU’s you have. The bin is inside /usr/local/atical/bin/lnx64 in my case, and you can run it with ./FindNumDevices.

Note! At this point i ran in to a segfault, which is caused by the fglrx driver and the PAT option being enabled in the kernel. You can try the command, and see what you get, but if you get a segfault, see the next chapter.

Your output should be like this:

Supported CAL Runtime Version: 1.3.185
Found CAL Runtime Version: 1.4.427
Use -? for help
CAL initialized.
Finding out number of devices :-
Device Count = 1
CAL shutdown successful.

Press enter to exit…

Where the device count is .. what i said before.

If you get this, you are ready to try out Pyrit. Type in pyrit list_cores to see the devices available for calculation use in Pyrit. You should get your processor cores minus one, and your gpu(s).  My output looks like this:

Pyrit 0.2.5-dev (svn r193) (C) 2008, 2009 Lukas Lueg http://pyrit.googlecode.com
This code is distributed under the GNU General Public License v3

Connecting to storage… connected

The following cores seem available…
#1:  ‘ATI-Stream device 1′
#2:  ‘CPU-Core (SSE2)’
#3:  ‘CPU-Core (SSE2)’
#4:  ‘CPU-Core (SSE2)’

You can now run pyrit benchmark to see what kind of processing power you are looking at. Refer to the pyrit site for a more complete howto of the program. The benchmark command will give you the amount of PMKs per second that the different cores can do. In my case, the output was something like, 8400 PMKs/s for my Radeon, and around 700 PMKs/s for each of my Phenom cores.

Troubleshooting the Segfault

Starting out according to the instructions on various sites (mainly the Pyrit site), i ran into a segfault with both pyrit list_cores and ./FindNumDevices. It wouldn’t execute at all. Running list_cores as sudo, i didn’t get the segfault, i got my four Phenom Cores  (and no Radeon cores anywhere).

I found exactly one (1) result with google, but that got me in the right direction. It has something to do with a problem between PAT and fglrx, PAT being Page Attribute Table (yeah, i googled that..). To get rid of the problem, pass the nopat option to the kernel at boot. If you haven’t done this before, boot your machine, and when you get to to grub, hit e to edit the commands being run.

Locate the line which has the boot command, and at the end of my line (my line ended with the options quiet nosplash) so i made it quiet nosplash nopat and hit ctrl-x to boot with those commands. You can edit your grub to always start with nopat, but i will not get in to that here.

After this, both ./FindNumDevices and pyrit list_cores ran like a charm and produced the end-result i was looking for, that is, using your GPU to chip away at some pesky PMK.

This is just an expansion and update on the great instruction in Pyrit’s wiki, but other sources were used as well!

A distinct disinterest

What is it with the state of security that i’m seeing around me?

People are using weak passwords, or the same password for everything, and not only that. The people who are supposed to be responsible for security do not discourage or prohibit the use of such passwords. Hell, weak passwords are sometimes even encouraged. “Pick something that you’ll remember for sure, as long as it has at least one capital letter”. Then we end up with passwords like “Dog1234″ and then when the obligatory tri-monthly change comes a-knocking, we get “Cat1234″, because of poor user education and poor (or non-existant) complexity rules.

If we have something like full-disk encryption, chances are it’s synchronized with windows, using a single sign-on. Or then it’s a PIN code or something that’s way too easy to guess or deduce.

Security is just simply abhorent everywhere i look. And i’m not sure how to start changing it. Other people are making the policies, i can only offer suggestions, and complement users on good choices (and i’ve seen some of those too!). I’m more for positive feedback, but sometimes i just want to scream. It’s like nobody cares that a fucking VPN password only has single factor authentication, and the password is like December2009.

“But it has numbers and a capital letter in it!”