Compile Realtek rtl8812AU/8821AU USB WiFi driver on Debian Jessie

Install the driver first from github:

sudo apt-get install git
git clone https://github.com/abperiasamy/rtl8812AU_8821AU_linux
cd rtl8812AU_8821AU_linux
sudo cp -R . /usr/src/rtl8812AU_8821AU_linux-1.0
sudo dkms add -m rtl8812AU_8821AU_linux -v 1.0
sudo dkms build -m rtl8812AU_8821AU_linux -v 1.0
sudo dkms install -m rtl8812AU_8821AU_linux -v 1.0

Continue reading “Compile Realtek rtl8812AU/8821AU USB WiFi driver on Debian Jessie”

Use two wireless network interfaces on Raspberry Pi 3

Recently I have made some physical changes to my home network. Moved the WiFi router to a more central position to get better coverage, but that meant also my main media player running Xbian could no longer be connected via Ethernet cable, but had to switch to WLAN.

Well wireless adapter on Pi3 is ok for basic stuff, but it does not have good antenna to achieve better network quality or it could run at least 150Mbits which I required. Continue reading “Use two wireless network interfaces on Raspberry Pi 3”

Force ntp update with systemd

Old way most of us are used to is not working with underlying operating systems that use systemd. After trying a lot of things with ntpd and ntpdate I found out that correct way to force sync the clock is:

timedatectl set-ntp true

High Performance USB stick formatting with ext4

To format my USB sticks that I use following set of commands:

Assuming my USB stick is recognized as sdc, and has a primary partition created this is the set of commands that I use:

# create ext4 filesystem without journal
 mkfs.ext4 -O ^has_journal /dev/sdc1

# give your newly formatted partition a name
 e2label /dev/sdc1 storage

# Use data mode for filesystem as writeback for better performance
 tune2fs -o journal_data_writeback /dev/sdc1 

# Disable reserved space on my 57GB drive it wastes 5% which is 3GB
 tune2fs -m 0 /dev/sdc1