summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
Diffstat (limited to 'scripts')
-rw-r--r--scripts/create-archiso-zfs.sh33
-rwxr-xr-xscripts/gitrepos.sh6
-rwxr-xr-xscripts/post-install.sh52
3 files changed, 91 insertions, 0 deletions
diff --git a/scripts/create-archiso-zfs.sh b/scripts/create-archiso-zfs.sh
new file mode 100644
index 0000000..3028468
--- /dev/null
+++ b/scripts/create-archiso-zfs.sh
@@ -0,0 +1,33 @@
+#!/usr/bin/env bash
+#
+# create-archiso-zfs.sh
+# Craig Jennings <c@cjennings.net>
+# Creates an arch linux iso with zfs support.
+# This script must be run as root.
+
+pacman-key -r DDF7DB817396A49B2A2723F7403BD972F75D9D76
+pacman-key --lsign-key DDF7DB817396A49B2A2723F7403BD972F75D9D76
+
+pacman -Syu --noconfirm archiso
+mkdir ~/iso
+
+# copies the releng profile
+cp -r /usr/share/archiso/configs/releng/* ~/iso
+
+# add the archzfs repository to the pacman configuration
+echo -e '
+[archzfs]
+Server = https://archzfs.com/$repo/$arch
+SigLevel = Optional TrustAll' >> ~/iso/pacman.conf
+
+# tell archiso to install the zfs dkms module and zfs utils to resulting iso
+echo -e '
+linux-headers
+archzfs-dkms
+zfs-utils' >> ~/iso/packages.x86_64
+
+# build the iso. this takes some time
+mkarchiso -vo ~/iso/out ~/iso
+
+
+
diff --git a/scripts/gitrepos.sh b/scripts/gitrepos.sh
new file mode 100755
index 0000000..b33c72c
--- /dev/null
+++ b/scripts/gitrepos.sh
@@ -0,0 +1,6 @@
+#!/usr/bin/env bash
+# cjennings
+# replaces original http remote repositories with git ones
+
+cd ~/.emacs.d && git remote remove origin && git remote add origin git@cjennings.net:dotemacs.git && git pull --set-upstream origin main
+cd ~/.dotfiles.d && git remote remove origin && git remote add origin git@cjennings.net:dotfiles.git && git pull --set-upstream origin main
diff --git a/scripts/post-install.sh b/scripts/post-install.sh
new file mode 100755
index 0000000..57825a5
--- /dev/null
+++ b/scripts/post-install.sh
@@ -0,0 +1,52 @@
+#!/bin/sh
+
+logfile="$HOME/post-install.log"
+touch $logfile
+
+echo "fixing perms on gpg directory"
+{
+ chown -R $(whoami) ~/.gnupg/
+ find ~/.gnupg -type f -exec chmod 600 {} \;
+ find ~/.gnupg -type d -exec chmod 700 {} \;
+} >> $logfile 2>&1
+
+echo "fixing remote repositories"
+{
+ cd ~/.dotfiles && \
+ git remote remove origin && \
+ git remote add origin git@cjennings.net:dotfiles.git
+
+ cd ~/.emacs.d && \
+ git remote remove origin && \
+ git remote add origin git@cjennings.net:dotemacs.git
+}
+
+echo "cloning git repos"
+{
+ git clone cjennings@cjennings.net:git/org.git ~/sync/org
+ git clone --depth 1 cjennings@cjennings.net:git/wallpaper.git ~/pictures/wallpaper
+ git clone cjennings@cjennings.net:git/documents.git ~/projects/documents
+ git clone cjennings@cjennings.net:git/kit.git ~/projects/kit
+ git clone cjennings@cjennings.net:git/clipper.git ~/projects/clipper
+ git clone cjennings@cjennings.net:git/finances.git ~/projects/finances
+
+ git clone git@cjennings.net:dwm.git ~/code/dwm
+ git clone git@cjennings.net:dmenu.git ~/code/dmenu
+ git clone git@cjennings.net:st.git ~/code/st
+ git clone cjennings@cjennings.net:git/slock.git ~/code/slock
+ git clone git@cjennings.net:pinentry-dmenu.git ~/code/pinentry-dmenu
+
+ git clone cjennings@cjennings.net:git/bsdsetup.git ~/code/bsdsetup
+ git clone git@cjennings.net:archsetup.git ~/code/archsetup
+
+ git clone cjennings@cjennings.net:git/exercism.git ~/code/exercism
+ git clone cjennings@cjennings.net:git/elisp.git ~/code/elisp
+ git clone cjennings@cjennings.net:git/clisp.git ~/code/clisp
+ git clone cjennings@cjennings.net:git/100dayspython.git ~/code/100dayspython
+
+ git clone cjennings@cjennings.net:git/nasbuild.git ~/projects/nasbuild
+ git clone cjennings@cjennings.net:git/nextjob.git ~/projects/nextjob
+ git clone cjennings@cjennings.net:git/elibrary.git ~/projects/elibrary
+} >> $logfile 2>&1
+
+printf "\n\nDone.\n\n"