Raspberry Pi | how to disable swapping

If you wan’t to disable swapping on your raspberry pi to prevent fast weardown of you SD card or even if you are using a SSD to boot on via USB it can reduce your disks lifespan if you have swapping turned on and it’s default on.

Here is how to completely disable swapping on Raspberry Pi (raspberian)

sudo dphys-swapfile swapoff
sudo dphys-swapfile uninstall
sudo update-rc.d dphys-swapfile remove
apt purge dphys-swapfile

This is tested on my Raspberry Pi 3 with Raspberian 9 (Debian 9 based)

WARNING: this is only a good idea if you know that the server has enough ram for it’s tasks.

CS:GO | Linux | Playing against my 10 year old kid and losing

I have tested Steam on my old Lenovo T450 laptop that is my secondary machine, it’s running Linux Mint 19 Cinnamon Edition and is working great with Steam. I’m quite surprised that it was fast enough to Play CS:GO and in the same time being recording a full desktop session, but it worked out just fine. My hardware is Core 5i CPU, 8 GB RAM, Intel HD 5500 Grapichs card, 128 GB SSD harddisk. I used KaZam to record with, it came with Linux Mint.

Jenkins – change default locale to english

To my surprise today Jenkins startede to speak to me, that was pretty scary. To change that behaviour then you have to install a locale pluging and set the default language.


Go to -> Manage Jenkins -> Manage Plugins -> Click on Availables -> Check the “Locale plugin”

Just choose the option “Download now and install after restart”

Go to the plugin manager again and check if it is enabled.


Go to -> Manage Jenkins -> Configure System -> Locale -> set it to en

Check the option Ignore browser preferences otherwise your browser language would set it to your locale and it won’t work.

How To Install Jenkins on Ubuntu 18.04

Jenkins – automation software

Jenkins is an automation server, that automates repeating tasks that is used in continuous integration and development.

It can also be used as an advanced crontab that send you an e-mail whenever a jobs has failed with a log from the console output.

It can pull code from a repository and trigger every thime there is a new release or it can be triggered by a push from github or other kinds of systems that can use webhooks

Its very userfriendly to setup and use.

This guide describe how to install it on a brand new Ubuntu 18.04 instance.


sudo apt install default-jre


wget -q -O - https://pkg.jenkins.io/debian/jenkins.io.key | sudo apt-key add -

sudo sh -c 'echo deb http://pkg.jenkins.io/debian-stable binary/ \
> /etc/apt/sources.list.d/jenkins.list'

sudo apt update

sudo apt install jenkins

sudo systemctl enable jenkins

sudo systemctl start jenkins


Start your browser and go to the url where jenkins is running


You should see a Jenkins screen that asks for a generated install password

Go to you terminal and type this to get the password

sudo cat /var/lib/jenkins/secrets/initialAdminPassword


If you have the needs to give Jenkins access to execute commands as root trough sudo then the solution to is to add this line in the /etc/sudoers file


zfs snapshot script with timestamp

I have created a small simple snapshot ruby script that create a timestamp for each snapshot

#!/usr/bin/env ruby
servername = ARGV[1]
tank = ARGV[0]
require 'date'
t = Time.now()
t = t.strftime("%d-%m-%y")
cmd = "zfs snapshot " + tank + "/" + servername + "@snap-" + t
puts "taking snapshot of " + servername + " " + cmd
exec (cmd)

Here is an example of how to use it in your /etc/crontab

05 5 * * * root /root/scripts/snapshot.rb backup rasp1 >/dev/null 2>&1

It makes a snapshot of /backup/rasp1 on a daily basis