Deploying Multipass Containers

I’ve been running a lot of experiments using Multipass, which is a (fairly) new application for deploying and working with containers on various operating systems (including all the ones I use). I’ve now set up a script to deploy these containers on any Ubuntu machine I install, and thought it might be worth sharing the script that I use.

#!/bin/bash

# Script to set up multipass and then deploy a load of containers for various things
echo "---------------------------------------------"
echo "Multipass Deployment Script - v0.1, June 2020"
echo "---------------------------------------------"

# Changelog:
# 28/6/20 - Created script to deploy 5 containers (POC)

# First off, install multipass:

sudo snap install multipass --classic

# What we're going to do next is:
# 1. Deploy a container for the current LTS version of Ubuntu
# 2. Run my usual post-deployment and update scripts inside that container
# 3. Shut the container down

multipass launch focal --name ubuntu-lts
multipass exec ubuntu-lts -- wget https://www.dropbox.com/s/p5jjsbvuuskeotl/deploy_ubuntu_wsl.sh
multipass exec ubuntu-lts -- sudo mv deploy_ubuntu_wsl.sh /usr/local/bin/
multipass exec ubuntu-lts -- sudo chmod 755 /usr/local/bin/deploy_ubuntu_wsl.sh
multipass exec ubuntu-lts -- deploy_ubuntu_wsl.sh
multipass stop ubuntu-lts

# We will then do the same for the LTS before

multipass launch bionic --name ubuntu-lts-old
multipass exec ubuntu-lts-old -- wget https://www.dropbox.com/s/p5jjsbvuuskeotl/deploy_ubuntu_wsl.sh
multipass exec ubuntu-lts-old -- sudo mv deploy_ubuntu_wsl.sh /usr/local/bin/
multipass exec ubuntu-lts-old -- sudo chmod 755 /usr/local/bin/deploy_ubuntu_wsl.sh
multipass exec ubuntu-lts-old -- deploy_ubuntu_wsl.sh
multipass stop ubuntu-lts-old

# Then we will follow the same process for the latest build of the next version of Ubuntu

multipass launch daily:20.10 --name ubuntu-devel
# TODO: investigate why the devel alias doesn't work for this
multipass exec ubuntu-devel -- wget https://www.dropbox.com/s/p5jjsbvuuskeotl/deploy_ubuntu_wsl.sh
multipass exec ubuntu-devel -- sudo mv deploy_ubuntu_wsl.sh /usr/local/bin/
multipass exec ubuntu-devel -- sudo chmod 755 /usr/local/bin/deploy_ubuntu_wsl.sh
multipass exec ubuntu-devel -- deploy_ubuntu_wsl.sh
multipass stop ubuntu-devel

# Do the same for any other versions of Ubuntu you want but this is probably enough for a POC

# Next up let's try a snapcraft development and test environment. This bit needs work once I know more about it

multipass launch snapcraft:core18  --name snapcraft-build
multipass stop snapcraft-build
multipass launch core18 --name snapcraft-test
multipass stop snapcraft-test

# Finally let's see what we now have:

multipass list

A few words on why I still listen to albums (and how)

I’ve been talking and writing about music a lot over the last week, and am part way through writing up my thoughts on what live music might look like when we all emerge from lock down. In the meantime, my response to Jehnny Beth on how I listen to albums. Jehnny’s question was:

What’s your favourite way of listening to an album? Do you still take time to immerse yourself? What do you think an album represents in 2020? I’d love to read your thoughts.

My response was:

I love to immerse myself in it. I tend to buy albums I really love on vinyl and listen to them when I can fully concentrate on the music. I also prefer to listen to them in the order they were sequenced. I also have playlists on shuffle, but that’s a different type of listening.

I think there is still a place for the album in the world of streaming. A proper album is as different to a load of songs in a playlist as a novel is to a tweet or a short blog post, and I think we still have room for both.

Using the i3 window manager

i3 is a window manager for Linux that I’ve been using for the last few weeks. It’s a fairly steep learning curve, but definitely brings some productivity gains. i3 is a tiling window manager, and by default will fill up the whole screen with applications. So if you have one application open it’s full screen, if you have two open then they each take up 50% of the screen, etc.

Installing i3

A excerpt from my installation script:

# Install the i3 window manager and some basic utilities

sudo apt install -y i3 feh arandr byobu htop

# Download some wallpaper and set it as default when using i3

wget https://www.dropbox.com/s/n5o7jjg4qpuebjn/2017-12-27-13.38.44.jpg
mv 2017-12-27-13.38.44.jpg  default_wallpaper.jpg
echo "feh --bg-scale default_wallpaper.jpg" >> .profile

## Add some aliases

echo alias ls="ls -l" >> .bashrc
echo alias top="htop" >> .bashrc

Using i3

When you log in for the first time you’ll be asked to choose a modifier key (I chose ALT). The keyboard shortcuts below use $mod to refer to that modifier.

  • Open a terminal window – $mod + Enter
  • Open a different application – $mod + d then type the application name (eg firefox)
  • Open (or go to) a second desktop – $mod + 2
  • Send the focused application to that desktop – $mod + Shift + 2
  • Split a container vertically – $mod + v
  • Split a container horizontally – $mod + h
  • Move between containers – $mod + arrow keys
  • Switch to a tabbed layout – $mod + w
  • Switch to a stacked layout – $mod + s
  • Close a window – $mod + Shift + q
  • Exit i3 – $mod + Shift + e

For multiple monitors it’s possible to enable/define them using xrandr. The sysntax is something like:

`xrandr --output HDMI-2 --auto --right-of HDMI-1`

As I have three monitors I find arandr to be a better way to set them up though. It’s a graphical wrapper to xrandr and lets me see the layout of my monitors which I find much more useful.

More information about i3 can be found at https://i3wm.org/docs/userguide.html.

Life During Lockdown

I’ve been maintaining a lock down blog since the start of April. Reading through it I note with interest that there is very little there that I wouldn’t want on the public internet, and that a slightly redacted version might serve as a decent record of these difficult times. I could just dump these into my regular blog, but as with my cycling blog and my micro-KB I thought it was worth keeping it separate (because containers are still important to me). I think this might be the one that aggregates to Twitter (for now) though, as I’m hardly prolific enough anywhere else to make copying and pasting links into Buffer a particularly time consuming task.

https://andy.teknostatik.co.uk/lockdown/ is where it lives. It’s live now, and should be updated most days until we reach whatever the new normal looks like. I will still write here about music and technology, but probably at my usually sporadic rate.

Ubuntu Update Scripts 2020

I’ve maintained my own scripts for updating software on a few Linux distributions for a while. This weekend I decided it was time to consolodate all my installation and update scripts in one place, and amend them to reflect the new ways I work with Linux (both in using i3 as a window manager and relying more on WSL and Multipass).

What follows is largely for my benefit, but I thought it may be of interest to others.

Ubuntu

  wget https://www.dropbox.com/s/hwfvynamcy6bkcs/deploy_ubuntu.sh
  sudo mv deploy_ubuntu.sh /usr/local/bin/
  sudo chmod 755 /usr/local/bin/deploy_ubuntu.sh
  deploy_ubuntu.sh

Windows Subsystem for Linux (WSL)

wget https://www.dropbox.com/s/p5jjsbvuuskeotl/deploy_ubuntu_wsl.sh
sudo mv deploy_ubuntu_wsl.sh /usr/local/bin/
sudo chmod 755 /usr/local/bin/deploy_ubuntu_wsl.sh
deploy_ubuntu_wsl.sh

This one also works with Multipass (which will probably be the subject of a blog post soon).

Music in the age of Coronavirus

One of the last social things I did before lockdown was the 6 Music Festival (and an excellent non-festival Jehnny Beth concert that is probably the musical highlight of my year so far). I’ve been trying to do more live music (combined with cycling adventures) and this sort of event really works for me as it takes me to a different city and builds in enough time to properly explore.

Obviously more adventures of this type are not possible now, but over the last week I’ve been participating in Tim Burgess’ Twitter listening parties where people all listen to the same record at the same time, and the people who made the record in the first place commentate. I’ve never consumed music in quite this way before, but I now think it’s something I’d like to continue doing after lockdown. I’ve rediscovered some old music that required hunting down CDs and MP3 backups, connected with people who share my love of some of my current favourites, and generally added a bit of structure to my evenings.

This is my calendar for this week. I’ve been off work so I’ve had a lot of free time, but even next week I think I’ll tune in for a few as well as nothing actually eats into work time.

My new social life

I know this is making things easier for a lot of people, and also that this is introducing people to new music that they can buy, and thus support the artists who are really struggling right now without the revenue from gigs. It’s a good thing, and I’m glad I’m part of it.

Albums of the Year 2019

I realised this week that I have a single blog post for all my other Album of the year lists, and would probably regret doing 2019 in sections at some point. This blog post addresses this issue, and also has undergone some light editing to preserve the narrative.

I’ve been compiling a list of my favourite records of each year for a decade or more. This year I’ve listened to music slightly differently; with monthly Spotify playlists on shuffle during train journeys and walks, but otherwise by putting a record on my record player and listening to the songs in the order they were sequenced. These are my top 10, starting with something that came out during a surprisingly warm February.

Ex:Re – Ex:Re

Ex:Re is the solo project of Elena Tonra (from Daughter), and this record is touched by heartbreak, but also by the realisation that you sometimes need to pick the pieces of other people out of your skin before you can start to heal. It’s sparse and beautiful, and one of the most emotionally raw collections of songs I’ve heard this year.

The Twilight Sad – It Won/t Be Like This All the Time

The second selection from my list of my favourite records from 2019 takes me back to the very start of the year.

Anyone who has known me for a while will know that The Twilight Sad are one of my favourite bands, and that their music often soundtracks the winter months for me. This year they delivered an excellent new record in January, which got me in the right head space for a couple of weeks of sub-zero cycling and an extremely challenging month at work (but it’s good to get the worst month out of the way at the start of the year, right?).

Weyes Blood – Titanic Rising

Part 3 of my list of my favourite records from 2019.

At this point I realise there are very few cheery records on this year’s list. This one is probably the most uplifting musically, although lyrically it deals with climate change, and the growing sense that if we don’t do something to avert the climate catastrophe then it doesn’t really matter what else we do because we are underwater. This one is a grower, and nothing like what I usually listen to, but it’s one I keep coming back to.

Nick Cave & The Bad Seeds – Ghosteen

I said previously that there are very few cheery records on this list, and this one doesn’t help. It is however one of the most beautiful pieces of music I’ve ever heard (this year or any other year), and it’s a million miles away from where Nick Cave started all those years ago (check out Release the Bats by The Birthday Party for something a lot angrier). This reminds me of one of those books where you just have to read it all in one go. Partly to find out what happened and partly because it deserves your full attention until you have consumed it completely. I would be surprised if there is an album of the year list that doesn’t include this record; it really is that good.

Kate Tempest – The Book of Traps & Lessons

This is a record that definitely needs to be listened to in the order it is sequenced. It’s also probably my favourite record by an artist who is responsible for at least one of my favourite records already (2016’s Let Them Eat Chaos). Kate Tempest is a writer who also performs, and The Book of Traps & Lessons is a single long poem put to music that demands to be listened to in one go. The music is much sparser than anything she has done before, but it allows the words to take centre stage as they should do. This record has probably provoked the most extreme emotional reaction of anything I’ve listened to this year, and I suspect I’ll listen to it for many years to come.

Belle & Sebastian – Days of the Bagnold Summer

This next record takes me back to September. I spent about half of September in Japan, and as a result couldn’t buy this record until it had been out a couple of weeks. It was my soundtrack to that trip though (thanks to Spotify), and also to the desolate weather and subsequent mood crash that followed my return to the UK. Many people will know that Belle & Sebastian are one of my favourite bands, and this record serves as a great introduction to them, from the re-recordings of two old favourites to the newer songs that may themselves become old favourites in the years to come. They managed to provide at least two of my favourite songs of last year (Cornflakes and Best Friend) and in This Letter and Safety Valve they have added two more songs that just seemed to perfectly sum up how I was feeling at the time I first listened to them. They have made better records, but for now this one will do nicely.

The Delines – The Imperial

My seventh record of the year is from January, when 2019 was only a few days old. I loved the soulful gin-soaked vibe of the first Delines record (Colfax), and this one picks up very much where the last one left off. It’s very much an album of stories, with clear narratives, believable characters (with names – which reminds me a bit of The Hold Steady), and songs that sound like they could have been written at any time since the early 70s. This isn’t a fashionable record, and I suspect it won’t be in many end of year lists, but it’s one that is well worth giving a chance to if you are interested in well-written songs performed to perfection.

Cigarettes After Sex – Cry

My 8th record of the year is much newer than most of the rest, but definitely deserves a place on this list. The first Cigarettes After Sex record was on my list in 2017, and I was wondering what direction they would go in next. The answer is very much that they are going in exactly the same direction, but are much closer to getting there. It’s very much still all about crooning falsetto, shimmering guitars, and lyrics that don’t look like anything special when written down, but which still manage to blend perfectly with the music; but if anything there are even more great songs this time around. This record sound-tracked most of November and December for me, and if the year started in November it would easily be my record of the year.

Durand Jones & The Indications – American Love Call

This is a record that I got as part of my Rough Trade Club membership, and I don’t think I would have given it a chance otherwise. From the cover I had it pegged as retro American soul, and while that’s not too far off the mark there is something about this record that transcends genre and just transports me to America in the sunshine instead (not bad considering I’ve only ever been to America in December). Both vocalists can really sing, there isn’t a bad song on the record, and it has very quickly become the record I put on if I just want to feel better about myself and the world for a little while.

William Doyle – Your Wilderness Revisited

For my 10th selection I’m going to pick something that I’ve only owned for a few days, but which I’ve loved since the first time I’ve heard it. William Doyle used to record as East India Youth, but this record is very different than anything that has gone before, and swaps electronic music for something more organic and breathable. It still does a fair bit of genre-switching, but is on the whole a collection of excellent songs with clever and thoughtful lyrics. Words are important to me, and these words are perfect.

The Best of the Rest

There is more though (there always is), and there are some records that I’ve really enjoyed but I don’t really have anything to say about. These are the rest:

  • She Makes War – And Peace
  • DIIV – Deceiver
  • Lost Crowns – Every Night Something Happens
  • Fontaines DC – Dogrel
  • Pip Blom – Boat
  • Mark Kozelek and Petra Haden – Joey Always Smiled
  • Sudan Archives – Athena
  • FKA Twigs – Magdalene
  • Maps – Colours. Reflect. Time. loss.
  • The National – I Am Easy to Find
  • Angel Olsen – All Mirrors
  • Viagra Boys – Street Worms
  • Big Thief – UFOF
  • Big Thief – Two Hands
  • Richard Dawson 2020
  • Kim Gordon – No Home Record
  • Pixies – Beneath The Eyrie
  • The Comet is Coming – Trust in the Lifeforce of the Deep Mystery
  • Snapped Ankles – Stunning Luxury
  • Julia Jacklin – Crushing

World class IT support

I attended a talk by James Stanger from CompTIA at the SITS17 conference in 2017 (I totally forgot I’d written these notes until now). He talked a lot about the sort of skills and knowledge that world class Service Desk staff needed to have, and it dovetailed nicely with a list I drew up myself a couple of years earlier, and also with ideas from other presentations from the same conference.

What follows is notes I took at the time (with my observations in italics)

Tech support today

  • Evolving endpoint – IOT
  • Analytics
  • Automation
  • The cloud and mobility – BYOD
  • Cyber / security
  • Complexity of privacy
  • Device diversity
  • We are all knowledge workers

Helpdesk are the frost line of defence against security.
More Mac and Linux now than 10 years ago.
More business units than ever before
Service desk and service management is a growing industry and there are more jobs available. This should be an increasing trend.
Need a more diverse skills set – increase in cloud, and move from Helpdesk to service desk.

Technical skills that Service Desk staff need

  • Security
  • Database
  • PC
  • Storage
  • Backups
  • Cloud
  • Telecoms
  • Web dev
  • Server
  • Mobile
  • Etc.

Top skills

  • Troubleshooting
  • App management
  • PC
  • Security
  • Data
  • Mobility
  • Repair
  • Ticketing
  • Cloud
  • Permissions and directory services

It’s about accessing data from any device rather than the device itself. The device breaks, then you just try and access it on another device.

Five essential skills

  1. Cybersecurity
  2. Linux
  3. Programming – shell scripts and python
  4. Networking – TCP/IP, network segmentation, VPN
  5. Soft skills – customer service mindset, project management, ability to turn negatives into positives.

Can we take these 5 skills and turn them into a blueprint for the sort of person we want to recruit into IT support roles (and I’m talking across the institution here, not just Service Desk people)? Should also add some stuff from the other lists though – especially around cloud, troubleshooting and application management. Do our people need to be lesss skilled but more knowledgeable? Or is it just that they need to be skilled and knowledgeable about different things?

I look at this list and see a lot of things that have previously been on our “nice to have” list. Things like cybersecurity, Linux and the ability to script solutions to IT problems have never been things we have tried to recruit at first line, and maybe even most second line teams. That is going to have to change if we are going to meet the demands of our customers and provide the sort of service they need from us.

Other things:

We want someone who loves problems

Can this person really look beneath the hood?

Can they see around the corners of a problem? Trend analysis and documenting new things and fixes to hard problems.

Hackers will go after the points where one technology interacts with another (where people are a technology – interface between people and technology is a big vulnerability).

Security trends

  • Notice the unknown (Ransomware, social engineering etc.)
  • Zero day attacks
  • Malware

Top security skills

The usual, plus social engineering, authentication methods.

Attacks occur where people and technology converge. This isn’t news.

We have too much information, too much data, if we had less there would be less to attack.

A good Helpdesk person will spot trends in security, and will help visualise data in a way that other people can understand.

Multi factor authentication – something you know and something you hold. 3rd factor is something you are (fingerprint, iris scan, face etc.)

Understanding monitoring and performance via command line tools is an important skill. All the stuff I have been talking about for years.

Saying things the right way is absolutely vital. Change geek speak into plain language. This is a key skill.

Give suggestions / say no / transfer a call

  • Identify the problem
  • Define the problem
  • Explore and examine the options
  • Act on the solutions
  • Look back at the solution and the consequences, or learn from the problem.

80% technical, 20% soft skills. And technical skills are much easier to teach, so recruit people who already have the soft skills.

Albums of the Year for 2019 – The Full List

I’ve posted writeups of 10 records I really loved this year on Facebook and in a couple of previous blog posts (part 1 and part 2). There is more though (there always is), and there are some records that I’ve really enjoyed but I don’t really have anything to say about. This is the full list:

  • Ex:Re – Ex:Re
  • The Twilight Sad – It Won/t Be Like This All the Time
  • Weyes Blood – Titanic Rising
  • Nick Cave & The Bad Seeds – Ghosteen
  • Kate Tempest – The Book of Traps & Lessons
  • Belle & Sebastian – Days of the Bagnold Summer
  • The Delines – The Imperial
  • Cigarettes After Sex – Cry
  • Durand Jones & The Indications – American Love Call
  • William Doyle – Your Wilderness Revisited
  • She Makes War – And Peace
  • DIIV – Deceiver
  • Lost Crowns – Every Night Something Happens
  • Fontaines DC – Dogrel
  • Pip Blom – Boat
  • Mark Kozelek and Petra Haden – Joey Always Smiled
  • Sudan Archives – Athena
  • FKA Twigs – Magdalene
  • Maps – Colours. Reflect. Time. loss.
  • The National – I Am Easy to Find
  • Angel Olsen – All Mirrors
  • Viagra Boys – Street Worms
  • Big Thief – UFOF
  • Big Thief – Two Hands
  • Richard Dawson 2020
  • Kim Gordon – No Home Record
  • Pixies – Beneath The Eyrie
  • The Comet is Coming – Trust in the Lifeforce of the Deep Mystery
  • Snapped Ankles – Stunning Luxury
  • Julia Jacklin – Crushing

Albums of the Year for 2019 – Part 2

I’ve been compiling a list of my favourite records of each year for a decade or more. This year I’ve listened to music slightly differently; with monthly Spotify playlists on shuffle during train journeys and walks, but otherwise by putting a record on my record player and listening to the songs in the order they were sequenced. This is the second half of the list (the first half can be found here).

Belle & Sebastian – Days of the Bagnold Summer

Part 6 of my review of music from 2019 takes me back to September. I spent about half of September in Japan, and as a result couldn’t buy this record until it had been out a couple of weeks. It was my soundtrack to that trip though (thanks to Spotify), and also to the desolate weather and subsequent mood crash that followed my return to the UK. Many people will know that Belle & Sebastian are one of my favourite bands, and this record serves as a great introduction to them, from the re-recordings of two old favourites to the newer songs that may themselves become old favourites in the years to come. They managed to provide at least two of my favourite songs of last year (Cornflakes and Best Friend) and in This Letter and Safety Valve they have added two more songs that just seemed to perfectly sum up how I was feeling at the time I first listened to them. They have made better records, but for now this one will do nicely.

The Delines – The Imperial

My seventh record of the year is from January, when 2019 was only a few days old. I loved the soulful gin-soaked vibe of the first Delines record (Colfax), and this one picks up very much where the last one left off. It’s very much an album of stories, with clear narratives, believable characters (with names – which reminds me a bit of The Hold Steady), and songs that sound like they could have been written at any time since the early 70s. This isn’t a fashionable record, and I suspect it won’t be in many end of year lists, but it’s one that is well worth giving a chance to if you are interested in well-written songs performed to perfection.

Cigarettes After Sex – Cry

My 8th record of the year is much newer than most of the rest, but definitely deserves a place on this list. The first Cigarettes After Sex record was on my list in 2017, and I was wondering what direction they would go in next. The answer is very much that they are going in exactly the same direction, but are much closer to getting there. It’s very much still all about crooning falsetto, shimmering guitars, and lyrics that don’t look like anything special when written down, but which still manage to blend perfectly with the music; but if anything there are even more great songs this time around. This record sound-tracked most of November and December for me, and if the year started in November it would easily be my record of the year.

Durand Jones & The Indications – American Love Call

This is a record that I got as part of my Rough Trade Club membership, and I don’t think I would have given it a chance otherwise. From the cover I had it pegged as retro American soul, and while that’s not too far off the mark there is something about this record that transcends genre and just transports me to America in the sunshine instead (not bad considering I’ve only ever been to America in December). Both vocalists can really sing, there isn’t a bad song on the record, and it has very quickly become the record I put on if I just want to feel better about myself and the world for a little while.

William Doyle – Your Wilderness Revisited

For my 10th selection I’m going to pick something that I’ve only owned for a few days, but which I’ve loved since the first time I’ve heard it. William Doyle used to record as East India Youth, but this record is very different than anything that has gone before, and swaps electronic music for something more organic and breathable. It still does a fair bit of genre-switching, but is on the whole a collection of excellent songs with clever and thoughtful lyrics. Words are important to me, and these words are perfect.