Skip to content

Instantly share code, notes, and snippets.

@sarcasticadmin
Created December 29, 2017 23:21
Show Gist options
  • Save sarcasticadmin/b2520046880c5b75c7c84f9c5987464f to your computer and use it in GitHub Desktop.
Save sarcasticadmin/b2520046880c5b75c7c84f9c5987464f to your computer and use it in GitHub Desktop.
Simple Laptop Config
#!/usr/bin/env bash
echo "deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main" > /etc/apt/sources.list.d/google-chrome.list
wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | sudo apt-key add -
apt-get update
apt-get install -y vim curl openssh-server tmux stow git google-chrome-stable
test -d ~/.ssh || mkdir ~/.ssh && chmod 750 ~/.ssh
test -f ~/.ssh/authorized_keys || curl -o ~/.ssh/authorized_keys https://github.com/sarcasticadmin.keys
test -d ~/dotfiles || git clone https://github.com/sarcasticadmin/dotfiles ~/dotfiles && \
cd ~/dotfiles && git submodule update --init && \
rm -f ~/.bashrc && rm -f ~/.viminfo
stow_list=(bash vim tmux)
for config in "${stow_list[@]}";do
# Simple check to make sure stow hasnt happened yet
#test "$(ls .${config}* 2> /dev/null | wc -l)" -ge "1" || stow -d ~/dotfiles $config
stow -d ~/dotfiles $config
done
install_serial(){
apt-get install -y cu
usermod -a -G dialout john
# cu -l /dev/ttyUSB0 -s 9600
# sudo -g dialout cu -l /dev/ttyUSB0 -s 9600
}
install_serial
# Disable bluetooth from starting
echo 'manual' > /etc/init/bluetooth.override
systemctl restart ssh
systemctl enable ssh
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment