Getting on the self-hosted train again

Map of the fediverse.space

A long time ago, accessing cubicgarden.com meant accessing my direct server sitting in my home. I use to run Blojsom on top of Resin server. I was self hosting from my 512k ADSL line with 256k up (remember how fast that use to be to!?)

There were a lot of problems I grant you that but it mainly worked ok, although I didn’t like the sysadmin side of it all, as I was using Windows 2000 as the operating system. At some point I decided to switch to wordpress only because PHP hosting was cheaper than Java, although I got some incredible breaks during my time. In 2014 I moved my blog to WPengine thanks to dotBen

That was a while ago and since then I have massively upgraded my connection speed to 1gigabit up and down thanks to Hyperoptic and upgraded my server quite a bit (6 core AMD with 16 gig of memory). The first thing I did was installed Plex server.

Since then I have been slowly adding more services to my server. I guess the most noteworthy ones being tiny tiny rss, icecast2, plex and zerotier vpn (which I’m considering changing to wireguard with the recent announcements). Tiny tiny RSS is useful as I don’t like what feedly and others are doing with my data. Zerotier VPN is very cool and very much like the old and forgotten Hamachi. Because it uses internal ip addresses (non-addressable?) any device I have it connected with can access those addresses like they are on a internal network. This ultimately means I can access all my services including tiny tiny rss without opening up ports on my firewall and exposing it to the internet.

Anyway I’ve been thinking about adding more services to my server including Wekan (alternative to trello), Pixelfed (feiverse instagram), wisemapping (web based mindmapping tool), wallabag (alternative to instapaper), standardnotes server, mastodon (fediverse twitter), funkwhale (fediverse spoitfy), language tool (alternative to grammerly) and matrix (powerful alternative to slack).

Doing it under Ubuntu isn’t a problem as theres lots of tutorials and theres plenty which use Docker to manage everything.

But there is issue it seems when installing multiple services on top of each other. Most of the tutorials require a Apache or Ngnix then some SQL database. The tutorials are written like you are running just one service alone and things become more tricky when you have services using certain ports, etc. Trying to move the ports, database tables is sometimes tricky to follow.

Right now, I’m focused on doing one service at a time or really getting to grips with Docker which was meant to make this easier to deal with???

Ok so why selfhosting (and there is a lot of self-hosting services as I found here) and all the hassle?

I found something which sums it up nicely from a different but connected context.

Decentralized, peer-to-peer networks are evolutionarily superior to the bastardized corporate ‘sharing economy’ platforms like Uber and Lyft. Their billion-dollar budgets won’t save them from the inevitability of the blockchain-based peer-to-peer economy.

The decentralization revolution is here.

Docker & Tiny Tiny RSS sorted finally

TTRSS Php error

I have had on my task list for a long time to fix two problems with my Tiny Tiny RSS setup.

  1. Fix the problem I’m having connecting to TTRSS in a browser since a upgrade
  2. Sort out a decent RSS reader for Ubuntu

Originally it was working fine then a upgrade broke the web interface for me and many others. The confusing and joyful thing for me, was any application which talked to the API was unaffected. Meaning my Android clients were fine including the one on my eink tablet. However all the RSS clients on Ubuntu would either not connect to ttrss, were generally rubbish or wouldn’t work in later versions of Ubuntu (like RSS Owl). The advice seemed to point to using a browser extention.

The first problem was something to do with the PHP which seemed pretty easy to fix but all the solutions assumed you were running it all on a standard webserver and had control over everything. Of course I was running it within Docker and had no idea where config.php was or even where docker had installed anything.

After actually sitting down and looking around my server as a sudo not myself (its the first time I actually dedicated time to do), I found the Docker install and learned what docker was actually doing. My ttrss docker image is actually located under /var/lib/docker/aufs/mnt/{random hash}/var/www/ttrss/.

Under that I could find the config.php file and make changes so it was only accessible over my Vpn connection – yeah, I thought this was very clever but maybe obvious to everyone else. So the only way to hit the web front end of my ttrss install is via my Vpn but API calls are done without the Vpn.

As I found the root of ttrss, I was also able to finally install feedreader which is hightly rated by many. The problem I’ve always had is feedreader complained that it needed a certain plugin installed under ttrss’s plugin directory, which previously I couldn’t find to install. Of course now I know where it is and could copy it there, I was very pleased with myself. Next stop brunch at Ezra & Gil and wait for Feedreader to pull down full text for 8500+ items.

https://twitter.com/cubicgarden/status/929712805053435904

Host your own RSS aggregator?

hosting Tiny Tiny RSS

It started with me getting fed up with Feedly trying to up-sell me to their premium subscription. I mean I get it but $5/month to host a simple RSS aggregator? This seems quite a hefty price (even with all the extras it provides, which I never really use).

So I first looked for alternatives to Feedly and found quite a lot. The main thing for me was having a Sync API, so I’m not reading the same stuff across my different devices. My thought was with a standard API, it wouldn’t matter what client or platform I use (although I’m using Linux and Android mainly). Standard I thought… boy was I dreaming.

After a lot of looking and reading I said screw this, I’m self hosting my own copy of tiny tiny rss, which seems very popular with people like myself trying to do the same thing. It seemed quite straight forward and I decided it was time to give rkt or docker a try as there was a docker image for it.

In a evening I had it setup, running and working with my exported feedly OPML file, while watching a film and cooking. Its currently only available to my network but I’ll likely make it externally available (without my VPN) once I got it setup with a SSL cert and 2 factor auth. I did notice my fav RSS reader on Android did support ttrss then somewhere along the line they pulled support for it. So I’ll try out the android app created by the author of ttrss, but the comments are… well.. interesting?

Building your own private cloud?

Head in the clouds

I recently saw this from Gizmodo Australia, and read it with lots of interest.

Movies and TV shows come and go on Netflix on a regular basis, which means you might be half way through your favourite flick when it gets yanked from the service. The solution? Buy all your own content and set up your own private cloud-based streaming service you can get at from any computer or device.

The stand-out contender here is Plex, which we’ve recommended before. It’s new Plex Cloud service, now in beta, lets you use an Amazon cloud locker to store all your movies and shows and stream them from anywhere.

Previously, you had to host the files yourself, so that meant leaving a computer or network drive switched on all the time to get at your content over the web. With Plex Cloud that’s no longer necessary, though you do need to pay for a Plex Pass(from $US4.99 ($7) a month) and sign up for some Amazon storage (it’s $US59.99 ($79) a year for unlimited storage).

We’ve included a couple of other options if you’re not taken by Plex Cloud. They’re not quite as Netflix-like as Plex Cloud, but if you already pay for storage on these services then they’re good alternatives to consider.

Interestingly there was no mention of the friends sharing option which I have been using without the plex pass or plex cloud service. Its the advantage of self-hosting and having plenty of bandwidth at my disposal, but I like the fact you can also switch to have support from them too. Useful if your server goes down or something. This represents a more ideal solution.

I’ve always been interested in what happens when things are much more distributed. Plex is just the start, I already started looking into Emby and some other solutions for media. But for a long while I have been thinking about replacing some of the services I use which I believe I could run myself on my own server.

The whole owncloud thing has always interested me, but I’m weighing up having to be a sysadmin and my time. Although I found Docker which might take some of admin out of this in future. However I don’t want to replace everything, just the things I’m feeling less comfortable with (its about personal choice).

The ones I’m thinking about currently are Evernote, Last.FM and Instapaper.

Evernote I want to replace with something like simplenote (although I admit its not self hostable but my evernote’s recent restrictions have made me wonder why I pay for a pro account?). I looked at using Turtl but its not reliable and mature enough currently. On a related note, I’ve been tempted to install a GIT server at home. Then using a combination of GitignoreMindmup and some kind of GIT repository syncing between home install and Bitbucket; could be great for working on mindmups.

Last.FM with GNU.fm. I only use last.fm to scrobble/track my music playback. I also hooked up Libre.fm but noticed the actual server for libre.fm was just GNU.fm. It seems like a very simple service and useful when looking back for a song or podcast. Especially when placed in a calendar type system, it really triggers my memory. Its also worth noting the last.FM data lost recently has also made me wonder why I even need it. I mean I never use it for music discovery (as I found it rubbish) or anything else. I might as well dump my logs of usage to my google calendar?

41Mxf-vJwzL

I just discovered Wallabag to replace Instapaper. Before I was using readitlater which became Pocket. I switched to Instapaper because of the deliver a mobil ebook to kindle every morning feature (heck I pay for this feature). But since i’m considering a epaper display android tablet which means it could read anything including PDF, RSS, ePub and Mobi. Plus I wouldn’t lose my kindle books because the Amazon app will run on it too. Having a smarter epaper device will squeeze out instapaper and likely mean I will read even more than I currently do (well worth the investment). I still far prefer to read longer stuff on a epaper display.

Theres no doubt I’ll start running more on my own server in future, already considered Open VPN and Zeronet. I think the money saved from certain subscriptions will easily pay for the electricity of hosting it myself?