Press "Enter" to skip to content

Category: Linux

All posts related to linux topics, including raspberry pi and general linux scripts and tricks

Provide USB sound output for Alexa Voice Services (useful for the Raspberry Pi Zero) + headless restart

Running AVS on a Raspberry Pi zero doesn’t work out of the box. The reason is that the installation script provides no output via USB is because this is not available in the script. In my opinion this is something that is just overlooked as making the changes manually is not hard at all:

Put the following text to the .asoundrc file in your home directory (/home/pi/.asoundrc)

This will allow usb input and output from AVS.


Create a file using  nano .config/autostart/AlexaPi.desktop with following content:

The AlexaStart script contains the following (requires TMUX):


Leave a Comment

DIY NAS – Installing OpenMediaVault (OMV) on a Raspberry Pi 3

NOTE: These instructions were made for Raspberry Pi 3. From my experience these will not work on a Raspberry Pi that does not have ARM7.

Have you always wanted your own NAS, but don’t want to spend the money on it? Have an old Pi laying around and don’t know what to do with it? You have many old harddrives laying around and always have to sift trough them to get the correct files?

Install OpenMediaVault, a NAS solution with a heap of services (ssh, ftp, smb, torrent clients, …) and tons of plugins. While a Pi is not designed for running a NAS, it is very well capable of doing so.

NOTE: if you are having trouble, refer to the video that explains all this in more detail.

Let’s stat with a standard installation of raspbian jessie (I choose jessie lite, without desktop environment). Flash it on your SD card as usual. With the new release of jessie, ssh is disabled by default. Put a file called “ssh” (no file-extension) on the FAT32 partition of your SD card (see here for more info).

The boot partition on a Pi should be accessible from any machine with an SD card reader, on Windows, Mac, or Linux. If you want to enable SSH, all you need to do is to put a file called ssh in the /boot/ directory. The contents of the file don’t matter: it can contain any text you like, or even nothing at all. When the Pi boots, it looks for this file; if it finds it, it enables SSH and then deletes the file. SSH can still be turned on or off from the Raspberry Pi Configuration application or raspi-config; this is simply an additional way to turn it on if you can’t easily run either of those applications. –


NOTE: during the installation process the ssh access for the user pi will be disabled.
If you log out of your ssh session during the installation you don’t have a way of going back in over ssh. Access will be restored from the OMV GUI.

Now we can start installing OMV. Put the below scripts in 2 different .sh files in the home folder of the pi user (/home/pi). Note that you may need to add execution permission to the scripts – using chmod  chmod +x

This will add the repository to your sources, install some dependencies and initialize OMV. (original source)

Execute it with:

NOTE: Script one should NEVER be executed again. This will cause problems in your sources file.

Now you can navigate to the IP address of your pi (ifconfig command)using a browser (no port is required, OMV runs by default on port 80).


Default login credentials are admin:openmediavault. You can now connect to the gui and experience OMV in all its glory. Format your external drives to a file format for Linux. OMV can handle this the best by default and it will increase your speed drastically. (note that only Linux based computers can read this by default.)

After OMV has picked up your drive, you have to mount the file system. If you are having issues, have OMV format your filesystem by manually unmounting the drive, creating a new filesystem via the GUI and mount it.
Once that is done you are free to create folders, configure them for samba, manage your users and so much more.


Enhance your OMV experience using a bunch of plugins. omv-extras is the best library for all of them.

Download the .deb file of OMV-extras. In the plugins section choose upload, and upload your .deb file. Install the openmediavault-omvextrasorg plugin which will allow you to have access to all the plugins you would ever need! (note that you may need to click “check” after installing to ensure the plugins are being picked up).



You now have a PiNAS. A Raspberry Pi running NAS software which allows you to manage your shared folders on your network, manage user access and so much more!


Retropie 4.1 – WiFi, Scraper, Runcommand, Remove kodi from Ports and Themes

Hi guys

With the release of retropie 4.1 some new features where introduced. I’ll also try to clear up some questions on last few videos.

Many people wanted to remove Kodi from the ports system after they made Kodi its own system. After some checking I was able to come up with a solution that is very easy to implement. I’ve also added some fun tips and tricks to the video.

Want more? Leave a comment here or on the video!

Leave a Comment

Raspberry Pi Zero necessary accessories: Connectors, cases and expansion boards (USB hub)

Looking into some awsome and must-have accessories for the raspberry pi zero!

I bought some of these to protect the pi and expand some of its capabilities. The ZERO4U is also one of (if not THE best) USB hubs for the pi zero out there!

Check it out below:

Today we are checking out some awsome Pi Zero accessories:

  • Pi Zero + HDMI & usb connectors:
  • Protection case for pi Zero:
  • Zero4u:

Hope you guys enjoy!

Leave a Comment

Retropie 4.0 – Start Kodi on Launch

Using my retropie-Kodi combo for a while now I walked into some issues where Kodi wasn’t active for some reason (usually me forgetting about it after rebooting my Pi). This interfered with my SickRage Kodi notification.

With the release of Retropie 4.0 this option has finally been built-in! After upgrading to the new Retropie release you can go to the retropie-setup menu and choose the following options:

C Configuration / tools > 001 autostart – Auto-start Emulation Station / Kodi on boot > 2 Start Kodi at boot (exit for Emulation Station)

Exit the retropie setup and restart your raspberry. You will now be greeted by your Kodi! On exiting Kodi you will go back to emulation station.

Leave a Comment

Remove torrents that finished downloading in transmission (WebUI)

Ever found your transmission queue filling up with torrents that have been completed which makes you lose the overview? I have, and coming home to start removing these files was a major waste of time, so I stared writing my first ever Bash script to solve this issue.

First thing you have to do is ensure you have “transmission-remote” installed. For me it was included when I installed transmission on my raspberry pi.

Once you have verified you have this installed you can continue with the creation of the script. Create a new file using you favorite text editor (for example “nano”) and paste the following code:

This is assuming you are running transmission and this script on the same server, and transmission-daemon is listening on localhost:9091. For other hosts/ports you need to pass additional parameters to the transmission-remote command.

Now that you have your script in place, remember to call it using crontab. In below example it is getting called once a day at noon.

The reason I am using this instead of the ability to call a script once a download completes, is because I had to clean up a whole chunk of backlog torrents that were still in my queue. This script will clean up ALL torrents that have status “Finished” once a day.


Note: In case your torrents never have status “Finished”, this will not work. Torrents are only set to status Finished if they are not seeding or downloading anymore. This can be forced in transmission by changing the options under “Seeding”.

transmission settings

Leave a Comment

RetroPie and Kodi – Disable auto usbmount and choose mount location

I recently installed Kodi next to my RetroPie installation. While all was going well, I disliked that my external drives would be mounted automatically, hence I was not able to specify a permanent Kodi library path to my media. It seemed that when attaching multiple devices the order they got mounted wouldn’t be consistent. I quickly found out RetroPie comes with “usbmount” which auto mounts the USB storage devices.

Disabling the usbmount is as easy as editing the file located at

There are a few changes you can make here, but the one we are interested in is one of the first ones available. Changing ENABLED to 0 will disable this add-on (at least not auto mount your drives).

Now you can edit you /etc/fstab file and mount the drive to a location of your choosing at boot.

Kodi is able to find your media files in the same directory every time now!

Leave a Comment

RetroPie – My adventures into Retro-gaming

So it has been a while since I did anything interesting except for playing some games… Like most of the time.

Recently I had the idea of utilizing my Raspberry Pi for something else than my “perfectly legal” Torrent box. Quickly I came to the idea of using my pi as an oldschool gaming console using the wonderful work of the guys at RetroPie. I quickly found out I can emulate a whole lot of different consoles, from SNES (Super Nintendo Entertainment System) to GBA (GameBoy Advanced) to PS 1 (PlayStation 1) and DOSBox. I quickly found some ROMS and started my adventures with a plain old keyboard. Turns out retro gaming with a Keyboard is not that easy…

To fully breath the retro-gaming feel I decided to order some SNES controlles with USB extensions (from one of my favorite online WebShops, Banggood). Now I haven’t received them yet so I hope they’ll work without to much of a hassle. For now I will keep playing with a keyboard and hope my controllers arrive soon.

If I have more games set-up I might jump in some more advanced stuff with the RetroPie and share the details, as this is -in my opinion- a very fun little project.

RetroPie worms
RetroPie worms

See you guys later… I’ll be retro-gaming for now!

Leave a Comment

By continuing to use the site, you agree to the use of cookies. more information

The cookie settings on this website are set to "allow cookies" to give you the best browsing experience possible. If you continue to use this website without changing your cookie settings or you click "Accept" below then you are consenting to this.