You got a Raspberry PI at home, but you don´t know what to do with it? With some very simple steps, you can turn it into a Gitlab Runner:
Since i am a big fan of Node.js and wanted to use the latest version on my Raspberry, i´ll explain how to install it in this article. We´ll take the pro route this time and compile Node.js on our own, because we want the latest Node.js version and they are not very fast with the ARM builds. And because it´s cool.
While the older Raspberry versions (A/B/B+) may not be up for the task, you can easily use the Raspberry 2 for a Minecraft server. At least 5 concurrent users are no problem at all, depending on your bandwidth. My Raspberry 2 did not use more than 300% CPU in a test, which is actually 75% – most of the time it was even below 200% (=50% on the Raspberry 2). It seems that Minecraft scales well over the 4 cores, at least with the version i am using.
You already know how to run scripts periodically with a cron job if you read my last blogpost about the Raspberry Pi. This time i will explain how to run scripts on startup. Because you do want to restart your Minecraft server when the Raspberry Pi crashes, right? 😉
I´ve explained the basics of Scripting with Python in my former article, but what if you want to run a script periodically on your Raspberry Pi? Well, there is this crazy little thing called “Cron Job”. It is quite easy to set them up on your Raspberry, this is how.
Although I prefer other languages, here´s a small tutorial to get you started with Python on your Raspberry Pi. The latest Rasbpian distribution already comes with Python so you don´t even need to install anything else. Actually, i even found 2 versions on my Raspberry, 2.7.3 when i just run “python” in the terminal and 3.2.3 with “python3”. Obviously, we will use python3 here.
Before getting serious with a headless Raspberry, it´s a good idea to set up a folder to be uses as network share in Windows. That is, if you are a Windows user. If you are a Linux user, i expect that you know how to reach your Raspberry. In that case, you would not even read my N00b posts, i guess 😉
So you already know how to connect to the LAN, but sometimes the Router is not right next to the Raspberry Pi and you need a wireless connection. Not every WLAN stick is compatible, check the compatibility list before you buy one. I am using a TP-LINK 150Mbps Nano, no additional driver needed and you almost don´t see it when it´s in the Rasbperry. With “ifconfig“, you can see if the WLAN stick is up and running with the correct driver:
Every now and then, it is a good idea to update the Firmware of your Raspberry Pi. There is a very nice tool out there to make that easy for you: https://github.com/Hexxeh/rpi-update
It is quite easy to install the tool, first you have to install GIT:
sudo apt-get install git-core