Skip to content

Instantly share code, notes, and snippets.

View paescuj's full-sized avatar

Pascal Jufer paescuj

View GitHub Profile
@flexiondotorg
flexiondotorg / preseed-snaps.sh
Created July 17, 2019 09:34
Pre-seed snaps
#!/usr/bin/env bash
if [ -f build-settings.sh ]; then
source build-settings.sh
else
echo "ERROR! Could not source build-settings.sh."
exit 1
fi
SEED_DIR="/var/lib/snapd/seed"
@atkinchris
atkinchris / run.sh
Last active October 26, 2022 14:09
Scripts to create a custom Ubuntu ISO
#!/bin/bash
set -e
mkdir -p /tmp/custom/{_squash,_work,iso,newiso,newlive,project}
mount -o loop ./ubuntu-budgie-17.04-desktop-amd64.iso /tmp/custom/iso
mount -t squashfs /tmp/custom/iso/casper/filesystem.squashfs /tmp/custom/_squash
mount -t overlay overlay -onoatime,lowerdir=/tmp/custom/_squash,upperdir=/tmp/custom/project,workdir=/tmp/custom/_work /tmp/custom/newlive
cp ./setup.sh /tmp/custom/newlive/
@kalxas
kalxas / README
Created July 23, 2016 00:15 — forked from gdamjan/README
Customize ubuntu live image
# first, get the iso from http://releases.ubuntu.com/
# make working dir hierarchy in /tmp (you'll need enough ram for this)
sudo mkdir -p /tmp/custom/{_squash,_work,iso,newiso,newlive,project}
sudo mount -o loop ~/Downloads/ubuntu-15.10-desktop-amd64.iso /tmp/custom/iso
sudo mount -t squashfs /tmp/custom/iso/casper/filesystem.squashfs /tmp/custom/_squash
sudo mount -t overlay overlay -onoatime,lowerdir=/tmp/custom/_squash,upperdir=/tmp/custom/project,workdir=/tmp/custom/_work /tmp/custom/newlive
# customize the live fs with systemd-nspawn (a better chroot)
sudo systemd-nspawn --bind-ro=/etc/resolv.conf:/run/resolvconf/resolv.conf --setenv=RUNLEVEL=1 -D /tmp/custom/newlive
@Forst
Forst / build.sh
Last active October 25, 2022 23:43
Ubuntu ISO with preseed.cfg generation script
#!/bin/bash
## FORSTWOOF UBUNTU PRESEED :: BUILD SCRIPT
# Quit on first error
set -e
# Temporary directory for the build
TMP="/var/tmp/ubuntu-build"
@rexcze-zz
rexcze-zz / custom_live.sh
Last active January 12, 2023 01:05
Ubuntu livecd creation script
#!/bin/sh
#https://help.ubuntu.com/community/LiveCDCustomization
#set -e
if [ "$1" = "" ];then
echo "Call this script with part1, part2 or clean as argument"
exit 0
fi
IMAGE_NAME="LIVE_TEST"
ISO="kubuntu-12.04.2-desktop-i386.iso"