<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="FeedCreator 1.8" -->
<?xml-stylesheet href="https://sanity.acromatic.uk/lib/exe/css.php?s=feed" type="text/css"?>
<rdf:RDF
    xmlns="http://purl.org/rss/1.0/"
    xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
    xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
    xmlns:dc="http://purl.org/dc/elements/1.1/">
    <channel rdf:about="https://sanity.acromatic.uk/feed.php">
        <title>Reinstalling Sanity stretch</title>
        <description></description>
        <link>https://sanity.acromatic.uk/</link>
        <image rdf:resource="https://sanity.acromatic.uk/lib/tpl/dokuwiki/images/favicon.ico" />
       <dc:date>2026-05-14T12:05:45+00:00</dc:date>
        <items>
            <rdf:Seq>
                <rdf:li rdf:resource="https://sanity.acromatic.uk/doku.php?id=stretch:alito&amp;rev=1573149492&amp;do=diff"/>
                <rdf:li rdf:resource="https://sanity.acromatic.uk/doku.php?id=stretch:basics&amp;rev=1573149492&amp;do=diff"/>
                <rdf:li rdf:resource="https://sanity.acromatic.uk/doku.php?id=stretch:colemak&amp;rev=1642178357&amp;do=diff"/>
                <rdf:li rdf:resource="https://sanity.acromatic.uk/doku.php?id=stretch:ftp&amp;rev=1573149492&amp;do=diff"/>
                <rdf:li rdf:resource="https://sanity.acromatic.uk/doku.php?id=stretch:get_iplayer&amp;rev=1573149492&amp;do=diff"/>
                <rdf:li rdf:resource="https://sanity.acromatic.uk/doku.php?id=stretch:networking&amp;rev=1573149492&amp;do=diff"/>
                <rdf:li rdf:resource="https://sanity.acromatic.uk/doku.php?id=stretch:qtphoto&amp;rev=1573149492&amp;do=diff"/>
                <rdf:li rdf:resource="https://sanity.acromatic.uk/doku.php?id=stretch:rbenv&amp;rev=1573149492&amp;do=diff"/>
                <rdf:li rdf:resource="https://sanity.acromatic.uk/doku.php?id=stretch:ruby&amp;rev=1573149492&amp;do=diff"/>
                <rdf:li rdf:resource="https://sanity.acromatic.uk/doku.php?id=stretch:samba&amp;rev=1573149491&amp;do=diff"/>
                <rdf:li rdf:resource="https://sanity.acromatic.uk/doku.php?id=stretch:time&amp;rev=1573149492&amp;do=diff"/>
                <rdf:li rdf:resource="https://sanity.acromatic.uk/doku.php?id=stretch:virtualbox&amp;rev=1573149492&amp;do=diff"/>
                <rdf:li rdf:resource="https://sanity.acromatic.uk/doku.php?id=stretch:vpn&amp;rev=1573149492&amp;do=diff"/>
            </rdf:Seq>
        </items>
    </channel>
    <image rdf:about="https://sanity.acromatic.uk/lib/tpl/dokuwiki/images/favicon.ico">
        <title>Reinstalling Sanity</title>
        <link>https://sanity.acromatic.uk/</link>
        <url>https://sanity.acromatic.uk/lib/tpl/dokuwiki/images/favicon.ico</url>
    </image>
    <item rdf:about="https://sanity.acromatic.uk/doku.php?id=stretch:alito&amp;rev=1573149492&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2019-11-07T17:58:12+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>stretch:alito</title>
        <link>https://sanity.acromatic.uk/doku.php?id=stretch:alito&amp;rev=1573149492&amp;do=diff</link>
        <description>Create /etc/rc.local, containing:
#!/bin/sh -e
#
# rc.local
#
# This script is executed at the end of each multiuser runlevel.
# Make sure that the script will &quot;exit 0&quot; on success or any other
# value on error.
#
# In order to enable or disable this script just change the execution
# bits.
#
# By default this script does nothing.

su -l slack -c &quot;VBoxManage startvm alito --type=headless&quot;
exit 0</description>
    </item>
    <item rdf:about="https://sanity.acromatic.uk/doku.php?id=stretch:basics&amp;rev=1573149492&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2019-11-07T17:58:12+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>stretch:basics</title>
        <link>https://sanity.acromatic.uk/doku.php?id=stretch:basics&amp;rev=1573149492&amp;do=diff</link>
        <description>Stretch (9) Basics

Apt

This has x as a dependency:
apt-get install git curl screen build-essential pkg-config ruby ruby-dev rubygems ruby-qt4 \
libmagickwand-dev jhead exiftool linux-headers-$(uname -r) make zsh \
perl libwww-perl libxml-perl libxml-simple-perl atomicparsley rtorrent \
dolphin vlc python-pip net-tools

gem install rmagick mini_exiftool pry awesome_print

pip install cheat</description>
    </item>
    <item rdf:about="https://sanity.acromatic.uk/doku.php?id=stretch:colemak&amp;rev=1642178357&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2022-01-14T16:39:17+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>stretch:colemak</title>
        <link>https://sanity.acromatic.uk/doku.php?id=stretch:colemak&amp;rev=1642178357&amp;do=diff</link>
        <description>&quot; In Debian systems the default keyboard layout is described in /etc/default/keyboard and it is shared between X and the console. --man&quot;

Colemak and other keyboard mods

Default keyboad is listed in /etc/default/keyboard:


# KEYBOARD CONFIGURATION FILE
# Consult the keyboard(5) manual page.

XKBMODEL=&quot;pc105&quot;
XKBLAYOUT=&quot;gb&quot;
XKBVARIANT=&quot;danmak&quot;
XKBOPTIONS=&quot;ctrl:swapcaps&quot;

BACKSPACE=&quot;guess&quot;</description>
    </item>
    <item rdf:about="https://sanity.acromatic.uk/doku.php?id=stretch:ftp&amp;rev=1573149492&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2019-11-07T17:58:12+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>stretch:ftp</title>
        <link>https://sanity.acromatic.uk/doku.php?id=stretch:ftp&amp;rev=1573149492&amp;do=diff</link>
        <description>Path of least resistance seems to be to use openssh-sftp-server (a module in openssl).  This is used by billy.

For a ftp only user with ssh, use rssh (from apt), uncommment allowsftp.  Also used by billy.</description>
    </item>
    <item rdf:about="https://sanity.acromatic.uk/doku.php?id=stretch:get_iplayer&amp;rev=1573149492&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2019-11-07T17:58:12+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>stretch:get_iplayer</title>
        <link>https://sanity.acromatic.uk/doku.php?id=stretch:get_iplayer&amp;rev=1573149492&amp;do=diff</link>
        <description>These requirements do change quite frequently.

ffmpeg is back in Stretch:
apt-get install perl libwww-perl libxml-perl libxml-simple-perl libmojolicious-perl atomicparsley ffmpeg

and
crontab -e

min hour day/month month day/week command
15 0 * * * /usr/local/bin/get_iplayer --pvr --quiet -c &#039;echo &quot;$(date)    &lt;name&gt; &lt;episode&gt;&quot; &gt;&gt; /home/slack/log/iplayer&#039; 2&gt;&gt; /tmp/get_iplayer.log</description>
    </item>
    <item rdf:about="https://sanity.acromatic.uk/doku.php?id=stretch:networking&amp;rev=1573149492&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2019-11-07T17:58:12+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>stretch:networking</title>
        <link>https://sanity.acromatic.uk/doku.php?id=stretch:networking&amp;rev=1573149492&amp;do=diff</link>
        <description>Networking

Networking is horribly fucked up and quickly getting worse.

Static IP, not relying on GUI

networkmanager will just get in the way and fuck everything up every chance it gets.  Make sure at minimum there are no profiles set in the GUI.  If active it will nuke</description>
    </item>
    <item rdf:about="https://sanity.acromatic.uk/doku.php?id=stretch:qtphoto&amp;rev=1573149492&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2019-11-07T17:58:12+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>stretch:qtphoto</title>
        <link>https://sanity.acromatic.uk/doku.php?id=stretch:qtphoto&amp;rev=1573149492&amp;do=diff</link>
        <description>Don&#039;t use rbenv.
rbenv local system
apt-get install exiftool ruby-qt4
gem install rmagick mini_exiftool fileutils

As user if you are using rbenv, otherwise root:</description>
    </item>
    <item rdf:about="https://sanity.acromatic.uk/doku.php?id=stretch:rbenv&amp;rev=1573149492&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2019-11-07T17:58:12+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>stretch:rbenv</title>
        <link>https://sanity.acromatic.uk/doku.php?id=stretch:rbenv&amp;rev=1573149492&amp;do=diff</link>
        <description>rbenv
git clone https://github.com/rbenv/rbenv.git ~/.rbenv

(.bashrc/.zshrc already taken care of in .shellrc)
git clone https://github.com/rbenv/ruby-build.git ~/.rbenv/plugins/ruby-build
(may also want the rehash plugin rbenv-gem-rehash)  rbenv-gem-rehash has been integrated into rbenv core, woop.</description>
    </item>
    <item rdf:about="https://sanity.acromatic.uk/doku.php?id=stretch:ruby&amp;rev=1573149492&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2019-11-07T17:58:12+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>stretch:ruby</title>
        <link>https://sanity.acromatic.uk/doku.php?id=stretch:ruby&amp;rev=1573149492&amp;do=diff</link>
        <description>ruby

gems
apt-get install ruby-dev
gem install rpi_gpio</description>
    </item>
    <item rdf:about="https://sanity.acromatic.uk/doku.php?id=stretch:samba&amp;rev=1573149491&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2019-11-07T17:58:11+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>stretch:samba</title>
        <link>https://sanity.acromatic.uk/doku.php?id=stretch:samba&amp;rev=1573149491&amp;do=diff</link>
        <description>Samba

Standalone server (not domain controller).

Check there is no user called administrator (a new Stretch RPi thing?).
grep administrator /etc/passwd

Install shit.
apt-get update
apt-get install libcups2 samba samba-common cups smbclient

(About 100mb of stuff on Raspbian.)</description>
    </item>
    <item rdf:about="https://sanity.acromatic.uk/doku.php?id=stretch:time&amp;rev=1573149492&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2019-11-07T17:58:12+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>stretch:time</title>
        <link>https://sanity.acromatic.uk/doku.php?id=stretch:time&amp;rev=1573149492&amp;do=diff</link>
        <description>timedatectl set-ntp true
timedatectl status
Config in /etc/systemd/timesyncd.conf
Servers=0.uk.pool.ntp.org 1.uk.pool.ntp.org 2.uk.pool.ntp.org 3.uk.pool.ntp.org</description>
    </item>
    <item rdf:about="https://sanity.acromatic.uk/doku.php?id=stretch:virtualbox&amp;rev=1573149492&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2019-11-07T17:58:12+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>stretch:virtualbox</title>
        <link>https://sanity.acromatic.uk/doku.php?id=stretch:virtualbox&amp;rev=1573149492&amp;do=diff</link>
        <description>Export:


vboxmanage list vms
vboxmanage export alito -o alito.ova


Import:


vboxmanage import alito.ova --options importtovdi</description>
    </item>
    <item rdf:about="https://sanity.acromatic.uk/doku.php?id=stretch:vpn&amp;rev=1573149492&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2019-11-07T17:58:12+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>stretch:vpn</title>
        <link>https://sanity.acromatic.uk/doku.php?id=stretch:vpn&amp;rev=1573149492&amp;do=diff</link>
        <description>PIA VPN
apt-get install -y openvpn
cd /etc/openvpn
wget http://www.privateinternetaccess.com/openvpn/openvpn.zip
unzip openvpn.zip
cp UK\ London.ovpn pia.conf
Edit /etc/default/openvpn to include (unnecessary: if absent, AUTOSTART=“all” is assumed)</description>
    </item>
</rdf:RDF>
