After a year in the making, OSMC, the successor to Raspbmc, has reached final stable release status.
Believe it or not, I’m now running this release on the original 256mb model B Raspberry Pi, the same one I preorderd on 29th February 2012! It’s running from an SD card and it’s just as quick as when I was using a USB3 stick with previous OSMC installs.
It’s a real credit to Sam and his team that they’ve got the latest Kodi running silky smooth on not only a 3 year old credit card sized computer running with 256mb of RAM (this still amazes me!) but also on a range of other platforms.
Anyway, the point of this post is my upgrade routine. I usually let OSMC and Raspbmc update themselves, but as I’m always tinkering with my Pi installing all sorts of add ons and packages behind the scenes, I also like to do a fresh install every now and again – so this is a perfect opportunity to do so.
1. First things first, I backup settings on the existing install. I do this by SFTP’ing into the Pi using FileZilla and grabbing all the files I need:
- /boot/config.txt – contains any custom boot options I may have added
- /etc/hyperion.congig.json – my hyperion settings
- /home/osmc/.kodi/userdata/advancedsettings.xml – this contains my mySQL library database settings
- /home/osmc/.kodi/userdata/sources.xml – folder sources I have added
- /home/osmc/.kodi/userdata/favourites.xml – well… favourite apps/scripts I have fave’d
- /home/osmc/.kodi/userdata/keymaps/remote.xml – custom button mapping for my Samsung TV remote via CEC
2. Once these files are safely installed on my laptop, I will go ahead and format my SD card then run the OSMC installer to install the latest OSMC version.
3. Pop the SD card into the Pi, fire it up and let OSMC installer do it’s thing.
4. The first thing I do on a new install is SSH into it and change the password. Sounds lame, it’s only a Kodi install what’s the worst that someone could do, change some settings? Well it’s worth remembering that running a Pi with a default username/password connected to the internet basically gives someone a way into your home network where they could do a lot more damage. So yes, change your password by SSH’ing in and running this command: passwd and following the instructions.
5. SFTP into the Pi and replace all the files you backed up previously… except for config.txt, you should set those settings within OSMC, but it’s worth referring to the backed up file from the last install.
6. Install hyperion. Follow this blog post, including the bit about boot.config to get hyperion up and running.
7. Reboot
8. Within OSMC, enable the web server on port 8080 (Settings > Services > Webserver) and any other settings you wish to configure.
9. I pre-generate all thumbnails/fanart as it makes browsing for the first time a lot nicer. To do this, install texturecache.py
wget https://raw.githubusercontent.com/MilhouseVH/texturecache.py/master/texturecache.py chmod +x ./texturecache.py
and then run these commands to generate the images:
./texturecache.py c movies ./texturecache.py c tvshows
This can take a while depending on the size of your library and which device you have.
Once that finishes, my OSMC is pretty much back to how I like it, but if you have a non-standard setup there may be a few additional tweaks you need to apply or incorporate into the above.
Nice! Thank you for the guide!
Have you experienced the flashing colored square in the top right (displaying low voltage) when hooked to your hyperion system?
Nope, can’t say I have. How are you powering the Pi and the LEDs?
LEDs are hooked via USB to the Pi and the Pi is fed in by 5V 2.1A, I believe. No colored square or “low voltage message” under Raspbmc back then, just recently occurred when switching to OSMC. I tried different (better) USB cables and power adapters, but without success. People have been experiencing similar issues on the web.
I forced it off in the boot.config and also previously when flashing I didn’t encounter any real problems.. it was just annoying.
How are you powering your Pi?
2.1A is probably not enough to power LEDs and a Pi, that would be really pushing it so I’m surprised you’re not experiencing other issues.
What type of LEDs are you using? can they be powered via a separate USB phone charger for example?
My Pi is powered by a 2A power supply and the LEDs by a seperate 2A supply and never had any issues power wise.
OK thanks for the info. I will try it out once again with an upgraded power adapter 😉