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 →