Compare commits

...

10 Commits

2 changed files with 26 additions and 32 deletions

View File

@@ -1,32 +0,0 @@
#!/bin/bash
#
# This is the boot-to-charlesreid1 script
#
# Run it as a one-shot installer:
# bash <( curl https://charlesreid1.com:3000/dotfiles/cloud-init/raw/master/linode/deploy_charlesreid1.com )
# first things first
apt-get update
apt-get install -y git
cd $HOME
mkdir -p $HOME/codes
cd $HOME/codes
mkdir -p $HOME/codes/dotfiles
cd $HOME/codes/dotfiles
git clone https://charlesreid1.com:3000/dotfiles/debian.git
cd $HOME/codes/dotfiles/debian
./pre_bootstrap.sh
./make_user_charles.sh
./bootstrap.sh -f
./install_packages.sh
./fix_ssh.sh
./remove_packages.sh
./set_machine_name.sh krash
sudo -H -i -u charles ./charles_tasks.sh

26
linode/deploy_krash.sh Executable file
View File

@@ -0,0 +1,26 @@
#!/bin/bash
#
# This is the boot-to-charlesreid1 script
#
# Run it as a one-shot installer:
# bash <( curl https://charlesreid1.com:3000/dotfiles/cloud-init/raw/master/linode/deploy_krash.sh )
set -x
# first things first
apt-get update
apt-get install -y git
# Get a copy of the dotfiles for the root user
DOTFILES="/root/codes/dotfiles"
mkdir -p $DOTFILES
DEBIAN="$DOTFILES/debian"
git clone https://charlesreid1.com:3000/dotfiles/debian.git $DEBIAN
# Run the root init script
$DEBIAN/tasks_sudo/sudo_init.sh krash
# Copy the charles init script
cp $DEBIAN/tasks_charles/charles_init.sh ~charles/.
chown charles:charles ~charles/charles_init.sh
sudo -H -i -u charles ~charles/charles_init.sh