Skip to content

Instantly share code, notes, and snippets.

@xtolid
xtolid / Ubuntu_i3_kiosk.md
Created December 17, 2017 16:56
Ubuntu 16.04 Kiosk using i3 Window Manager & Cockpit

I recently found myself in need of a kiosk setup at work. I also wanted to be able to easily monitor these computers remotely, so this is the solution I have chosen.

We start off with a fresh image of Ubuntu 16.04 server from the Canonical website.

Ubuntu Server

I won't detail how to install this iso as there are hundreds of threads about this already. We will begin after the installation has completed and a reboot has been performed.

First, we will make sure our packages are up to date.

@xtolid
xtolid / DD_iso_to_USB.md
Last active December 18, 2017 00:01
DD .iso to USB

I like using DD to write .iso files to USB drives, but I'm terrible and remembering the command. This a script I put together that lists the devices available, and prompts a choice for device and image to be used. Afterwards, it unmounts the drive so I can safely remove it and try it out.

#!/bin/bash
lsblk
read -e -p "Enter path of drive to be imaged. " DRIVEPATH
read -e -p "Enter path to ISO. " ISOPATH
dd bs=4M if=$ISOPATH of=$DRIVEPATH && sync
umount $DRIVEPATH

Please exercise caution when using this script. DD won't think twice about writing over your data if instructed to do so.