Tag: linux

How to use ProtonVPN on Arch Linux

Install the necessary packages# Install openvpn if needed: # pacman -S openvpn --needed To prevent DNS leakage you'll need an additional package, for more info see Arch Linux Wiki. Using systemd <

Ruby cheat sheet with examples

Take it easy Ruby! Basic concepts# Hello World# puts "Hello World!" Comments# # single line comment =begin Multi-lines comment =end Variables# my_var = 42 My_constant_var = 31337 Shorthand assign

Snapshot for KVM via libvirt with virsh

Context# I am using KVM, and use/manage my VMs with virt-manager. But I asked myself this question: how can create or revert some snapshot? I'm giving examples for qcow2 disk images and commands are

OpenSUSE : Install rTorrent and ruTorrent

Install rTorrent, git ang nginx: # zypper install rtorrent git nginx Warning: rtorrent package in official openSUSE repository is not compiled with xmlrpc so you won't be able to use it with rutorre

OpenSUSE : change ssh port / use a cutom ssh port

For this exemple, our custom ssh port will be 52222. Edit /etc/ssh/sshd_config: # vim /etc/ssh/sshd_config Uncomment Port 22 and change it to Port 52222. Note: You can add several times the Port direc

Python 3 "No module named SimpleHTTPServer"

If the default python on your machine is python 3 so running the following command will result an error: $ python -m SimpleHTTPServer python: No module named SimpleHTTPServer So use instead: python -m

ArchLinux - Temporarily resize /tmp partition

Context# tmpfs is a temporary file system that resides in memory and/or swap partition(s). tmpfs is commonly used for /tmp. By default, a tmpfs has its maximum size set to half the total of RAM. Note