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

country=SE
ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev update_config=1
network={
ssid="abcd"
psk="1234567890"
proto=RSN
key_mgmt=WPA-PSK
pairwise=CCMP
auth_alg=OPEN
}

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

country=SE
ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
update_config=1
network={
        ssid="abcd"
        psk="1234567890"
        proto=RSN
        key_mgmt=WPA-PSK
        pairwise=CCMP
        auth_alg=OPEN
}

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 https://leanpub.com/jerpi/read#leanpub-auto-for-jessie-edit-the-dhcpcdconf-file and Norman Dunbar http://qdosmsq.dunbar-it.co.uk/blog/2016/03/does-your-raspberry-pi-3-lose-wifi-connections-after-a-while/

Migrate from OpenDJ to 389DS

Prereq:

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

Update schema, add attributes

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

Update schema, add object classes

$ ldapmodify -h 127.0.0.1 -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 127.0.0.1 -p 1389 -D "cn=Directory Manager" \ 
-W -x -v -c -f ./baseobject.ldif -S ./reject.ldif

Import data

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

Ubuntu Base Server 16.04

Language

English

Ubuntu

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

<No>

Country of origin of the keyboard

<Swedish>

Keyboard layout

<Swedish>

Configure the network

Hostname

ubuntu

Set up users and passwords

Full name for the new user

user one

username for your account

user

Choose a password for the new user

{password}

re-enter password to verify

{password}

encrypt home directory

<No>

Configure the clock

Is this time zone correct

<Yes>

Partition disks

Partitioning method

<Guided – use entire disk and set up LVM>

Select disk to partition

<enter>

Write the changes to disk and configure LVM

<Yes>

amount of volume group to use for guided partitioning

<Continue>

Write the changes to disk

<Yes>

Configure the package manager

<Continue>

Configuring tasksel

<No automatic updates>

Software selection

  • standard system utilities
  • OpenSSH server

<Continue>

Install the GRUB boot loader on a hard disk

<Yes>

Finish the installation

<Continue>

 

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 http://ask.xmodulo.com/install-minimal-ubuntu-desktop.html 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

Homebrew

Install Homebrew

$ /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"

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 http://download.telldus.com/debian/ stable main

Download and register Telldus public key

$ wget -q http://download.telldus.com/debian/telldus-public.key -O- | sudo apt-key add -

The key fingerprint is

$ 70C4 10C9 D73D 53E8 38B3 1C58 5A94 9181 E501 EA76
Telldus Technologies AB <info.tech@telldus.se>

Update the repository

$ sudo apt-get update

Install telldus-core and FTDI USB driver

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

Reboot

$ sudo init 6