Running Kodi on a Raspberry Pi 5

Raspberry Pi 5 on a table top

When the Raspberry Pi 5 was announced, I had added a task to look at replacing my quad core Intel Celeron with it. The specs looked perfect for a living room media system. I had already invested in a Nvidia quad HDMI PCIe 1x card to fit into the current box, struggled to get the drivers working on Ubuntu but then it all just stopped.

I tried to replace the PSU but it didn’t work. Its been ages since I really built a PC so in the end, decided rather than I should complete that task and bought a 8gig Raspberry Pi 5 from cool components.

Today I set it up in a few hours complete with LibreELEC.

I’m going to get a new case because the basic case is so so for what I’m trying to add to it. It also looks a bit lost in such a big space under the TV. But I’m looking forward to seeing it run 4k H.265 HVEC across my TV and projector. Of course I would need to finally upgrade my first generation smart TV first.

Update progress

Kodi running on my TV in a darken room

This has been quite a journey.

I’m adding this information for anyone else who is thinking of doing similar. I still have a Raspberry Pi 5 running Kodi under my TV but I had to do a lot and only today somewhat happy. To be clear I installed the stable libreelec 32bit ARM as its seemed easy and good enough. I switched to the nightly edition 64bit ARM version. Tried installing OSMC (decided against this for lack of updates and Raspberry Pi 5 support looks a long way off) and finally installed the official Raspberry PI image/Raspbian and installed Kodi within that.

Dual display output running Kodi to my TV and Projector?

I seen many examples of people running displays next to each other at 4k and some high refresh rate. So assumed it would be possible across my TV and projector. Heck its mirrored so it should be easier right? No its not possible using Libreelec at all. I got it working in Raspbian but failed to get Kodi to mirror at all. After lots of research it seemed the much easier way to do this is with a HDMI splitter. I ended buying this one, which does exactly what I needed even if it requires a USB port for power.

AC3, DTS, multichannel sound output?

This one really kicked me where it hurts. I assumed I could finally get all those multichannel sound formats to my Onkyo 7.1 surround sound receiver over HDMI. I can get Dolby Digital/AC3 but when I plugged it directly into my receiver, the TV kept turning off as there was a issue where the remote inputs were not being transferred to the TV via the receiver. I considered turning off any standby options but there was worst to come.

I couldn’t find anyway to output DTS or AAC let alone anything like DTS Master audio. In the end I bought a external USB sound card with optical output and 8 channel analogue outputs if I invested in more 7.1 in the future. There was still some tweaking to Kodi get the settings right but its working now.

Raspberry Pi5 in a case under a TV bench

The upside

I found it extremely easy to make many versions across multiple SD cards and simply swap them out. For example just 2 days there was a release which looks good, so I’ll likely just make another SD card and copy my files to the home directory.

Generally its working now and I assume it will get better as development grows around the Raspberry Pi 5.

Another update

I found out the problem with the TV standby comes from the CEC adapter, which is installed as default on the Raspberry Pi but not on my previous built Kodibox. I was able to disable it via the Setting > System > Input > Peripherals > CEC adapter. Because this is now working, I have the Raspberry Pi 5 plugged directly into the Onkyo receiver and also plugged in the Chromecast.

Once the HDMI audio is sorted, I can finally remove the external sound card and may consider moving the HDMI splitter to the output of the receiver but need to work out how this would effect the Freeview HD output on the TV’s HDMI return channel path/arc. Although to be fair my antenna has not worked in months if not a year.

Downloading podcasts on a QNAP nas, the hard way

QNAP NasFor a long time I have had this quite unique way to download podcasts on my home network. It’s served me very well but since getting the NAS it’s been an endless fight to find a good way to do the same with minimal effort. Up till recently I have been running another machine on my network with Ubuntu, to download the podcasts using the tiny tiny rss source.

I would sync the podcasts over the network to my NAS mainly for connivance but I like the idea of the NAS being the place to access everything.

So after many years I finally come to a solution which might be useful to others too, as I couldn’t find a good solution in one place. To be fair I stopped running Tiny Tiny RSS (TTRSS) in favour of FreshRSS but regardless.

These are all for informational purposes and aimed at technical people who understand their way around a the terminal, have sudo and SSH access and can use alternative app repos.

  1. Install CrontabUI and Entware-std on your QNAP using the linked repo.
  2. I tried using CastGet which you can install via OPKG store but couldn’t get to grips with it, as it didn’t support what Podget did.
  3. I downloaded and unzipped Podget then ran it from the terminal. It worked once I found the user directory /share/homes/{username}
  4. Then I started moving the download directory and where the config files sat by modifying the permissions.
  5. Once it was working, I created a shell script which would pull the downloads and have all the parameters set. Remembering to make it executable checked it can work under a admin user
  6. Then started on the Qnap cron, which is a pain and needs attention. This is also where CrontabUI can save you a lot of time. I did do it manually but found it tiresome and there was little feedback.
  7. In CrontabUI, I tried a number of different options and would check they would run, looking at the timestamps of files. In the end what work ed for me was, /sbin/download-podcasts.sh. I tried many times to get it working but found it wouldn’t actually run outside of /sbin even with the right execute permissions.
  8. Now it works but may reconsider switching to Castget now I stopped using TTRSS and I have found I need to use Podget 0.6 as it throws a lot of errors from missing libraries and out of date fgrep commands.

Hopefully this might be useful to others? There might be an update if I switch back to Castget.

Growing up in the age of the search

Gnome shell search

This has been massively shared on the internet but I did find it interesting as something to look at how I organise myself.

Generally I use folders of hierarchy on most of my systems including my Android devices. I find the linux operating system encourages you put files in certain locations, especially when you are using different applications and different app systems. For example using snap, flatpak, apt and appimage. Its quite a diverse (sometimes complex) ecosystem compared to OSx and Windows I found.

I do use symbolic links (shortcuts) a lot on my systems and find it useful to link things within remote locations like my NAS or online storage.

Gnome shell has search built in from the super key (windows key on most laptops). I don’t tend to use the search for files or folders, which in hindsight is a bit silly because its much quicker. I guess it just wasn’t as good & quick as it is now, and so never got use to using it. Even now I still would put the files in a certain folder to be clear where it is for my mind.

I use dropbox, which kind of forces you to use a folder hierarchy. There is most of my files on there and that includes personal, work, app, etc. I have my Google drive mounted as a folder inside of Linux, so I also manage that in a similar way.

Now I’m looking at the list of Gnome shell search extensions and thinking about using it much more. Heck I can search my email, files, music, etc from Gnome shell (no Joplin however) time to start using it more.

This is my pacemaker editor running on a Chromebook

Chromebook running Linux, Windows and ChromeOS

I won’t lie, I was up till 2am getting the pacemaker editor to work with my Chomebook. But honestly it wasn’t so bad, most of the time was unzipping and moving things around in ChromeOS.

It all kicked into gear when I saw you could install Wine5 on Linux on ChromeOS. I gave it a try on my chromebook, as I could never quite get it working correctly on my Dell XPS13 (likely the something to do with the Pacemaker app being 32bit or something?). However it worked on ChromeOS and my only issue is the Pacemaker app makes everything super tiny even when changing the DPI settings in Wine. Luckily I have very sharp eyes and can actually see it ok without changing the native resolution of the chomebook.

Its a bit of testament to my knowledge of Linux, one thing lead to another thing, including copying the settings from my other wine running machine, changing config files, mounting the SD card full of mp3s in Linux and pick up my Pacemaker maker device in wine.

For reference I have my music collection on a external microSD and the chromebook has one USB A port, meaning I can plug my Pacemaker in without a USB C to A converter. Wine 5 is installed under the ChromeOS – Linux beta. I launch the Pacemaker editor (windows app) from the command line using

wine ~/.wine/drive_c/Program\ Files\ \(x86\)/Tonium/Pacemaker/Binary/Pacemaker

Although I have made a pacemaker.sh for it now. Of course this doesn’t show in ChromeOS’s own launcher but thats not too much of a problem. Its not like I will need it every day.

Now its all working, it means when we can finally go away more easily than right now (written during the Covid19 pandemic). I can record mixes and put them out before going home to transfer them. Which was always a bit of a pain to tell the truth.

Next steps is to see what happens when I use the other pacemaker device which has the upgraded firmware.

The Asus C434 Chromebook

Asus Chromebook Flip C434 review image 1

I recently bought myself a new Chromebook. I considered getting a Dell XPS13 (which is my work machine) or Lenovo X1 carbon but decided I wanted to replace my old Asus Chromebook which I was giving to my parents to replace their very old Samsung Chromebook.

Its been good to have my own laptop as a backup when my work laptop goes wrong for what ever reason (i’m currently running it off a external SSD). I have enjoyed the Android integration in the past but when I learned about the Linux integration and I was sold.

I opted for the i5 version with 128gig of storage and 8 gig of memory. Why? Well I decided it needed to be slightly more powerful and act a bit more like a full laptop if it was going to run Linux apps. I see this Chromebook as a laptop I can use for most things including audio/image editing. Originally I got a good deal on a refurbished version which was great except Bluetooth was broken and it had to go back. I then bought this laptop brand new and it was shopped and delivered in all of 18 hours!

So far I have only installed htop, inkscape, Joplin, audacity, barrier, cheese and firefox in the linux terminal (love that its ian@penguin in the terminal and I have firefox installed!) then decided to install Flatpak on ChromeOS, I considered installing Snap but it sounds problematic currently.

Just checking out a bunch of ChromeOS blogs and I found this reddit faq useful to fix my linux install when it broke after I installed it and shutdown my chromebook too early.

Generally I’m very happy with this Asus Chromebook and its a good size, weight and I still love the tablet mode.

Flokk contacts app

I recently gave flokk a run on my laptop as a snap. I was surprised how different a concept it is and also the decisions they made.

Its simply a google contact manager but its focused around social. Its not perfect but I wasn’t sure about it at first, I didn’t want to enter in additional information if it wasn’t actually syncing with my google contacts. I checked and all the details I entered into my contacts were correctly synced and not dumped into additional data. They were!

Quite a few friends have complained that I don’t follow them on twitter. This is a really neat way to see what they up.

Its got some work to do on the contact management but as a social tool its good. Currently it only supports Twitter and Github but I can imagine Mastodon could be easily added in the future. I know Facebook would be interesting for other people too I guess.

Looking at flutter more and more now

Windows 10 inside of Ubuntu 18.04, the way it should be…?

windows 10 inside of ubuntu

Its been forever since I moved from Windows to Linux and the idea of running Windows is quite a scary idea for me now. I made the decision I was never going to use Windows Vista (remember that pile of crap!) and wiped my main computer and installed Ubuntu 6.04.

It felt strange downloading Windows 10 from Microsoft’s site (all 5.4gig of it!) using the serial number which came with the Dell XPS, easily extracted using this terminal command.

There certainly was a disturbance going on, as it installed then attempted to get a ton of updates.

Due to a number of changes coming soon, it seems sensible to virtualise Windows inside of Ubuntu for certain future tasks at work. Of course others think it should be the other way, but of course they are sadly mistaken…

I’m happy to say it works but I could really do with some more memory, as 16gig is tight for my daily usage. Shame I can’t upgrade the memory easily on my Dell XPS 13.

Twitter is now somewhat back for me… for how long?

cawbird on linux

I pretty much stopped using twitter after the change to their streaming API which broke my Linux client Corebird, meaning the only way to refresh the timeline is to close the app and start it again. Yeah crazy stuff!

On top of this my client on Android, Plume only gets direct messages a few times a day and there’s other messed up things happen which just cause all types of problems.

I refuse to install the twitter app because I’m pretty peed off about Twitter and to be frank I was using Mastodon to connect to twitter in the Indieweb POSSE way.

Then today I saw there is a fork of Corebird called Cawbird. I installed it and its working (currently). However I don’t trust Twitter to not mess with things making it impossible for such a linux app to work without constant changes.

Making Slack useable on x64 Linux?

 

Slack

Its been a while since I reinstalled my work laptop; one thing I haven’t reinstalled properly is the Slack app.

The amount of times I use to start it up and go and make a tea because it would make my ubuntu install act like Windows 95. Most of the time I would come back to find my laptop completely frozen.

I tried removing the amount of slack workspaces I had attached to the app but it made little difference. So I decided to hell with the slack app, which seems to be a wrapper for Chrome, with each slack instance being another instance of chrome!

This time I’m using Slack in Firefox and limiting how many I have open at a time. I noticed if you login into the different slacks, the cookie will hold them open for you without using the resources. This can be done from the main page using the Workspace options.

Slack home

I also noticed the enterprise slack version also has a front page which can be used to reach the other slacks.

Recently I decided to give Flatpak Slack a try. Interestingly I found you can launch the Slack app from the slack pages mentioned above.

It sounds like a lot of hassle but it works and mean my ubuntu system is fully useable.

Hopefully this will be useful for other Linux Slack users?

I bought a Chromebook

https://www.youtube.com/watch?v=YDIhZZJQWRw

The other day my work Dell XPS 13 which has been running Ubuntu 16.04.1 asked me to upgrade. This message has been coming up for a while but I decided it was time for a upgrade, 18.04 was running well on my server and well it was time.

However the upgrade broke and I was left with Ubuntu 18.04 with Busybox. I had backups but as it was a BBC R&D build of Ubuntu, I needed to go to work for them to reinstall it. All of this was just before I went away to Mydata 2018 in Helsinki. On top of that my ubuntu server also had a problem.

Double wammy!

It was clear I could reinstall Ubuntu quickly but I would need to do a bunch of configuration and that takes time. I have a task to create a live CD with a bunch of configurations just for me, incase similar happens again.

I’d been looking at Chromebooks since I bought one for my parents ages ago and seen how ChromeOS has matured. I’m not the only one. It was the ability to run Android and Linux apps which pushed to get one.

Google Makes it Easier to Run Linux Apps on Chromebooks

So I bought the Asus chromebook flip c302, and I’m quite impressed with it. The size is good and the performance is good. As a backup laptop its ideal. It also kinda a solution to my lack of a decent tablet now my Nexus 7 is pretty much dead. I was tempted with the Google Pixelbook but it seemed too close to what the Dell XPS 13 is for.

I did consider getting a second hand XPS and sticking ChromeOS on it myself actually.

Maybe it really time to drop twitter…

Dead twitter

I use to use Corebird on my laptop for twitter access. Today this was broken and with a quick search found a page explaining all.

As many of you may know, Twitter decided to remove the UserStream API, which many third-party clients use, including Corebird. It’s a vital part of the user experience and is used for real-time timeline updates, DM retrieval, mentions, etc.

The replacement is the Accounts Activity API. I have not looked much into its details since the technical difficulties are enough to make it virtually impossible for me to port Corebird to it, but what I know is that real-time tweet updates aren’t supported and the prices are well beyond what I could possibly pay (“$2,899 per month for 250 users”).

Now, there would be a few ways out, of course. Porting to the Accounts Activity API is off the table, but other protocols exist. Since Corebird has never been anything else than a Twitter client, there is no abstraction for the Twitter API however, so porting to another protocol will be a lot of work again. Since I’m not a student anymore, I can’t promise to do any of that work. The master branch is additionally in a very WIP state with the ongoing GTK4 port and a bunch of other features.

The API removal will take place mid-August, so Corebird will mostly stop working at that point. I do not know of any real alternative that is not twitter.com of course.

If this explanation was too convulted, http://apps-of-a-feather.com/ has one as well.

I’d like to thank everyone who helped me over they years and all the patrons on here especially for all the support.

Seriously… I’m so very very close to dropping twitter, as although I benefited greatly from it in the past. They seriously have over stepped the mark and my alternative Mastodon is growing massively. I already stopped cross posting to Facebook after their decision to drop automated posting.

Tiny tiny RSS experience a week later?

I have had quite a bit of feedback from my post about moving away from Feedly to a self hosted solution called Tiny Tiny RSS.

Some interesting questions have emerged from people and to be fair it certainly deserves a follow up.

I made my instance of TT-RSS available on the public netw, because I didn’t see the point of installing my VPN software on my eink reader. I also installed the official TT-RSS app which is a 7 day trail before you buy the full version for 4 pounds. I haven’t bought the full version yet because the app doesn’t seem to work well when offline? It would be great if the app understood if the device was offline and automaticilly disabled the update feeds option. It currently doesn’t seem to do this well… I much prefer Greader for this, but ttrss app isn’t far behind.

Simon commented he paid for Feedly because of the IFTTT options, but it seems weird to pay for this  because you can easily turn most of TT-RSS into a another feed and IFTTT has a RSS option which you can use to trigger most things. This reminds me of my work along while back about pipelines.

Because of this, I have been thinking about feeding Greader with the RSS from my TTRSS install. The only real disadvantage is nothing would be synced to the server? This is also something I’ve been thinking about with a linux desktop reader like thunderbird because I can’t seem to install a TTRSS reader which works.

I tried a few but each has had problems.

Feed the Moneky looked very promising but when I finally get the appimage loaded, it shows nothing? Feedreader looked great and after finally getting flatpak working, I’m faced with the error that I need to install the api-feedreader plugin in my TTRSS server. How I do this when I’m using docker is a question I have no answer for, except it seems I need to use another docker container?

So generally its going well but hitting a few points which need straighing out. It would be so useful to compile supported applications into a wiki page.

Oh I found this useful when understanding about appimages, snap, flatpak, etc.

Love Linux but sometimes…

DELL XPS13&XPS15_29

Sometimes I come across simple things which just need someone to think about it from a user point of view.

One such example is adjusting the sensitivity on my XPS 13 trackpad. The XPS 13 has a widescreen trackpad which is good (although I do miss the Thinkpad pointer) but the right hand tends to hover around the edge, as there isn’t much room to rest my hand due to the keyboard and trackpad. The solution is to adjust the sensentivity of the trackpad, so I get less hover mistakes trigger from my thumb. Simple!

On my ubuntu setup, the trackpad driver is called synaptics and it can be configured anyway you like. Except to do so, you need to mess with the terminal and maybe even log out and in for the changes to stick.

If I was doing one #lazyweb request, it would be to automaticlly create a gui/wrapper for terminal operations like changing your mouse settings.

How to run two Whisper systems Signal clients on Linux side by side

Running two signal clients on Ubuntu
Running two signal clients on Ubuntu without the stress, made one d.ark and other light themed to remind me which one is which

I’m very sure I’m not the only one with 2 mobile phones (heck I really have 3 actual active SIM cards in 3 phones but thats another story).

I have chosen not to use WhatsApp as their EULA doesn’t fit well with me, so instead I always suggest Whisper Systems Signal client. I have many reasons including a linux web client but I have been wondering why one client couldn’t support multiple accounts? Especially since you can easily and securely verify the phone to the desktop client, using a generated token.

I’ve been wondering if I could run two signal apps or run them under different system users… then it dawned on me, its using Google Chrome’s app framework, maybe I could use Open Source Chrome aka Chromium to do the same? Surprisingly without having to setup another user account for the Chrome store, I was able to download Signal again and make Chromium launch it.

Now I have 2 completely separate signal apps which are linked to different phones but using the same Ubuntu desktop environment.

I know it might seem obvious but there seems to be a few people asking for multiple users using a single signal desktop app. I also saw if it could be installed in Firefox, but it looks more tricky that just hitting install from an app store. Sure my tip will work for MacOSX and likely Windows too?

Little tip for friends and followers which I thought was worth sharing… Now get yourself on Signal

Using Amazon Glacier on Ubuntu

2015-04-27 10.55.13

Looking at my little home server, I noticed a Spideroak warning telling me I am up to maximum on online storage. I assume the reason for this is the 1391 pictures I took over the course of the 2 weeks in Tokyo.

Rather than just pay for the next band up, I thought I’d give Amazon Glacier a chance. because frankly I don’t need to view the pictures all the time. I uploaded the best ones to my Japan photoset on Flickr already.

Can I say one thing!

Amazon Glacier is certainly not ready for the general public!

Yes I’m using Ubuntu and yes I was seeking to do it with a GUI but boy oh boy… Amazon webservices is very very developer focused.

In the end after about 4 hours, I finally settled on using Simple Amazon Glacier Uploader, which uses Java 1.6+. It was that or try and use Wine to emulate a Windows app called FastGlacier. Don’t get me wrong there are many clients but not many for Mac and even less for Linux.

The thing which I think most people will miss is the fact you need to setup a user just for the uploading. Once you do that you need to setup a bucket and then give that user permissions to control that bucket. This is done in the policy control, without this you will get lots of errors which don’t make a lot of sense.

I’m still waiting to verify my test upload worked but I believe its correct now. If so, then the next few days would be the time I could really do with Hyperoptic fibre broadband. My picture count is currently at 91.9 gigs over 68794 files…