Configure wifi

Find the wifi interface name

$ ip link
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN mode DEFAULT group default qlen 1
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP mode DEFAULT group default qlen 1000
    link/ether XX:XX:XX:XX:XX:XX brd ff:ff:ff:ff:ff:ff
3: wlxxxxxxxxxxxxx: <BROADCAST,MULTICAST> mtu 1500 qdisc mq state DOWN mode DEFAULT group default qlen 1000
    link/ether xx:xx:xx:xx:xx:xx brd ff:ff:ff:ff:ff:ff

Bring the wifi interface up

$ sudo ifconfig wlxxxxxxxxxxxxx up

Scan for wifi networks

$ sudo iwlist wlxxxxxxxxxxxxx scan

Edit /etc/wpa_supplicant/wpa_supplicant.conf

ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev update_config=1

Do NOT modify /etc/network/interfaces

# interfaces(5) file used by ifup(8) and ifdown(8)

# Please note that this file is written to be used with dhcpcd
# For static IP, consult /etc/dhcpcd.conf and 'man dhcpcd.conf'

# Include files from /etc/network/interfaces.d:
source-directory /etc/network/interfaces.d

auto lo
iface lo inet loopback

iface eth0 inet manual

allow-hotplug wlan0
iface wlan0 inet manual
    wpa-conf /etc/wpa_supplicant/wpa_supplicant.conf

allow-hotplug wlan1
iface wlan1 inet manual
    wpa-conf /etc/wpa_supplicant/wpa_supplicant.conf

Edit /etc/wpa_supplicant/wpa_supplicant.conf

ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev

Get power save mode of wifi device

sudo iw dev wlan0 get power_save

Set power save mode off

sudo iw dev wlan0 set power_save off

Tribute to Malcolm Maclean and Norman Dunbar

Migrate from OpenDJ to 389DS


  • 389DS running on Ubuntu 16
  • export.ldif from OpenDJ-2.5.0-Xpress1
  • user schema files

Update schema, add attributes

$ ldapmodify -h -p 1389 -D "cn=Directory Manager" \ 
-W -x -v -f ./user-at.ldif

Update schema, add object classes

$ ldapmodify -h -p 1389 -D "cn=Directory Manager" \
-W -x -v -f ./user-oc.ldif

Prepare import file

  • Remove objects where objectclass =*subentry* from export.ldif
  • Remove attributes from export.ldif. entryUUID,aci:,createTimestamp,creatorsName,modifyTimestamp,modifiersName,ds-rlim,ds-privilege-name,pwdfailuretime,pwdChangedTime
$ sed '/entryUUID\|aci:\|createTimestamp\|creatorsName\|modifyTimestamp\|modifiersName\|ds-rlim\|ds-privilege-name\|pwdfailuretime\|pwdChangedTime/d' export.ldif > import.ldif

Add base object

$ ldapadd -h -p 1389 -D "cn=Directory Manager" \ 
-W -x -v -c -f ./baseobject.ldif -S ./reject.ldif

Import data

$ ldapadd -h -p 1389 -D "cn=Directory Manager" \ 
-W -x -v -c -f ./import.ldif -S ./reject.ldif

Ubuntu Base Server 16.04




Install Ubuntu Server

Select a language

English – English

Select your location

Other, Europe, Sweden

Configure locales

United States – en_US.UTF-8

Configure the keyboard,

Detect keyboard layout


Country of origin of the keyboard


Keyboard layout


Configure the network



Set up users and passwords

Full name for the new user

user one

username for your account


Choose a password for the new user


re-enter password to verify


encrypt home directory


Configure the clock

Is this time zone correct


Partition disks

Partitioning method

<Guided – use entire disk and set up LVM>

Select disk to partition


Write the changes to disk and configure LVM


amount of volume group to use for guided partitioning


Write the changes to disk


Configure the package manager


Configuring tasksel

<No automatic updates>

Software selection

  • standard system utilities
  • OpenSSH server


Install the GRUB boot loader on a hard disk


Finish the installation



Install additions to Ubuntu server

Prereq is a ”vanilla” Ubuntu 16.04 LTS server

Update Ubuntu

$sudo apt-get update
$sudo apt-get upgrade
($sudo apt-get dist-upgrade)
$sudo apt-get autoremove

Install ntpd and unzip

$ sudo apt-get install ntp unzip

Install xinit

$ sudo apt-get install xinit
($ sudo apt-get install x11-apps)

Install Minimal Xfce Desktop

$ sudo apt-get install --no-install-recommends xubuntu-desktop

Tribute to Dan Nanni for the info on How to install minimal Ubuntu desktop

Install xRDP

$ sudo apt-get install xrdp

Change keyboard settings

$ sudo dpkg-reconfigure keyboard-configuration

Change time zone settings

$ sudo dpkg-reconfigure tzdata


Install Homebrew

$ /usr/bin/ruby -e "$(curl -fsSL"

Check your system for potential problems

$ brew doctor

Fetch the newest version of Homebrew

$ brew update

List all installed formulae

$ brew list

Install formulae

$ brew install [package]

Install Telldus-core for Tellstick Duo

Prereq is Raspbian Jessie Lite

Add the following line to your /etc/apt/sources.list:

deb stable main

Download and register Telldus public key

$ wget -q -O- | sudo apt-key add -

The key fingerprint is

$ 70C4 10C9 D73D 53E8 38B3 1C58 5A94 9181 E501 EA76
Telldus Technologies AB <>

Update the repository

$ sudo apt-get update

Install telldus-core and FTDI USB driver

$ sudo apt-get install telldus-core libtelldus-core-dev libftdi1


$ sudo init 6