Yo, nard dogs!
This is the story of one brave man buying a HTPC (Zotac ZBOX HD-ID40), installing XBMC and getting it to work with Ubuntu. I'm writing this in English, because
a) I believe some other non-Finnish speaking fellows out there might get a kick out of these tips
b) I'm interested to see, if writing actually something relevant1 in English has any effect on the amount of visitors
c) I get to write kick-ass one-liners such as "Bloody monkey balls", and "Tame the beast". Faaan-tastic!
So this is what happened. I was minding my own business, idling at IRC, when someone pasted a link of a Zotac ZBOX HD-ID40 mini-PC. Bloody monkey balls, I had to get one myself in order to still be valued among the coolest people on Earth.
The Zotac did not include any hard-drive or memory, so I had to get those as well. The complete setup was as follows:
I wanted to build a HTPC setup utilizing WLAN (wasn't2 too keen on having a network cable running across the living room for about 20 meters), using a HDTV as an output for audio/video (connected with HDMI) and having XBMC as the media center software.
Well, whadaya know... everything did not work. Main problems were WLAN which got disconnected time after time, and getting the HDMI audio output to work. I won't get into all the dirty details I had to endure, in order to get it finally working. Instead, here are simply the steps I used, in order to get my setup working.
Tättädädää!
I installed the 32bit Ubuntu 10.10 into the ZBOX using a USB-stick. You know the drill. I chose to automatically update all packages during installation. Not that it should matter.
I installed the NVIDIA proprietary drivers from the GNOME UI. Also, I installed the following packages:
These are required for proper video/GPU support.
The ZBOX does have HDMI audio output capabilities out of the box. But here's the catch; with Ubuntu they are disabled by default. Which makes sense, if you're accustomed to trimming your armpits with scissors that are designed for left-handed people EVEN THOUGH you are right-handed! Holy Bat Mobile... Note to self: I'm awesome at metaphors.
Anyway, here's how to enable them:
sudo alsamixer. Press F6, amd select "HDA NVidia" -card, which offers the HDMI audio outputaplay -l to list audio playback devices available
card 1: NVidia [HDA NVidia], device 7: NVIDIA HDMI [NVIDIA HDMI]
plughw:$CARD_ID,$DEVICE_ID that matches the HDMI audio device gotten from using the aplay -l command. For example, I used value plughw:1,7.I could not get the WLAN driver to function properly. It periodically got disconnected, which was extremely annoying. Also, even though the chipset supports 802.11n, it connected only at 54Mbps. I googled the problem, and it was caused by the RaLink RT2860 WiFi Network driver. There were many suggestions on how to solve it. Tried many of them, but none of the "simple" tips worked. So finally I was forced to compile the driver by myself. Here are the steps I used to tame the beast:
$SRC_DIR from now on).$SRC_DIR/os/linux/config.mk to contain the following parameters (these have value "n" by default):$SRC_DIR/common/cmm_wpa.c by finding the only occurrence of string MIX_CIPHER_NOTUSE and replacing it with string WPA_TKIPAES_WPA2_TKIPAESLay back, and enjoy the feeling of true accomplishment. You can't do this Windows, because the bloody thing tends to work nowadays. Go figure...
1) Debatable, I know
2) Girlfriend ordered told kindly suggested not to...
Hiiohoi, kullannuput!
Allekirjoittanut on koodaillut salaa timantin tiukkaa Android-looppia. Aiight!
Pari kuukautta sitten näpräilin PyppeGPS -mokkulan. Ohjelma käyttää puhelimen paikannustietoja (network/gps) ja tallentaa niitä KML-formaatin mukaiseen muotoon. Tallennettuja reittejä voi katsoa puhelimella kartasta ja lähettää niitä palvelimelle katseltavaksi Google Mapsista.
Alla video, jolla osallistuin em. tekeleellä työnantajani järjestämään ohjelmointikilpaan.
Tänään koodasin Kuntokantaan Android-sovelluksen, jolla voi tallentaa treenejä/muuta dataa helposti suoraan puhelimesta. Ohjelma on ladattavista täältä (koko 71 Kt).
Täytyy sanoa, että Java-ohjelmoijalle Android SDK:n API:t ovat erittäin intuitiivisia, ja alkuun pääsee todella nopeasti. Esimerkiksi HTTP-kutsuihin SDK:ssa on mukana Apachen tuttu ja turvallinen HttpClient, jolla kommunikointi taustapalvelimen kanssa on erittäin helppoa. Tässä lyhyt esimerkki:
Java-lähdekoodia sovellus sisältää 1700 riviä, ja XML-"lähdekoodia" 370 riviä (Android-sovelluksessa monet UI-näkymät voidaan konfiguroida XML:llä). Eipä tule ikävä J2ME- / Symbian-koodausta. o_O
Tässäpä vielä muutama kuva Kuntokanta-sovelluksesta: