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.

INSTALL THE LOCALE PLUGIN

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.

SET THE LOCALE TO ENGLISH

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.

INSTALL JAVA

sudo apt install default-jre

INSTALL JENKINS

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

SETTING UP JENKINS

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

http://your_server_ip_or_domain:8080

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

ALLOWING JENKINS TO EXECUTE AS SUDO

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

jenkins   ALL=(ALL:ALL) NOPASSWD:ALL