Ubuntu 16.04 LTS / firewalld/systemd and fail2ban

just before Fedora 24 I wanted to check out Ubuntu 16.04 LTS and the Gnome flavor.. basically same as last time it feels like 3 years in the past from fedora.
anyway, SystemD is now default and let’s see if I can get it to work as before

One Bummer: Fail2Ban doesn’t work with default settings!
it says in the log that it blocked but I could still connect…

solution: (in jail.local)
backend = systemd

this re-enables the functionality and I verified it works!

Continue reading

O2 micro sdcard reader doesn’t work with kernel 4.2/4.4 on DELL latitude

all of a sudden (don’t know when) my sdcard reader stopped working…

seems there is a bug report and discussion since 4.1.8
https://bugzilla.kernel.org/show_bug.cgi?id=109231
http://comments.gmane.org/gmane.linux.kernel.mmc/34979

this guy seems to have fixed it:
http://www.0xf8.org/2016/01/workaround-for-broken-o2-micro-sd-card-reader-support-since-linux-kernel-version-4-1-8/
Continue reading

Fedora 23

Aaaaand once again I grew tired of Ubuntu and wanted a new Fedora install… Seriously, if this continues like this I will start using Arch…
Here is my install log with caveats and tweaks.
Continue reading

openVPN server ubuntu

For those moments when you can’t trust the WLAN.. wherever that may be.
Let’s tunnel the connection using openVPN and get some security / bypass the nosey operator of the WLAN
(using Ubuntu server 14.04 here…)
the client side will be using network-manager

DISCLAIMER: we will be breaking some conventions here – the idea is that I will be the only user most of the time and there will be only one instance of openvpn running. Will adjust later if needed :)

Continue reading

Minecraft LAN play

if you run a server in offline mode you can change client’s username like this:
Linux:
in your homedir in .minecraft
for Windows:
C:\Users\andreas\AppData\Roaming\.minecraft\

open launcher_profiles.json

and change
“displayName”: “YOUR_NAME”,

take care not to go online with this

SDcard format

when you need to format a sdcard for windows (phone) in linux:

sudo mkdosfs /dev/sdc1 -s 64 -F 32

-F is filesystem (32 is vfat/FAT32)
-s is the allocation size multiplier (for disks < = 16 GB it's usually based on a sector size of 512byte) how to find out sector size? fdisk! root@lando:~# fdisk -l /dev/sdc1
Disk /dev/sdc1: 1.9 GiB, 1973416448 bytes, 3854329 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0x00000000
root@lando:~#

16×512 = 4K allocation size (standard for small cards)
64×512 = 32K allocation size (Lumia Phones from 4 – 32 GB)
(larger cards (64 GB and up) need exFAT and 128 kB allocation size for Lumia)

NOTE: for larger sector sizes you have to change the formula accordingly

5 things for better security

following the Snowden events here is what everyone can do to increase privacy/security and prevent man-in-the-middle attacks:

– tor
– otr encryption / GPG email / chatsecure / signal
– password manager and a strong password policy
– 2-factor authentication
– full-disk encryption

Continue reading