]> apps.delaporte.us Git - dotfiles.git/blob - bootstrap_pi.sh
Recipe to overclock Pi4
[dotfiles.git] / bootstrap_pi.sh
1 # Reminder to future self:
2 # Step 0: git clone https://github.com/edthedev/dotfiles
3 # Step 1: Run this bootstrap script.
4
5 echo "Git, vi are already installed."
6
7 mkdir -p ~/.installed
8
9 ## Setup Git and Vim
10 if [ ! -d ~/dotfiles ]; then
11 sudo apt-get install git vim-nox
12 cd ~; git clone git@github.com:edthedev/dotfiles.git
13 fi
14
15 # sudo apt-get install vim-nox
16
17 if [ ! -f ~/.vimrc ]; then
18 git config --global user.email "edward@delaporte.us"
19 git config --global user.name "Edward Delaporte"
20 git config --global core.editor /usr/bin/vim
21 ln -s ~/dotfiles/vimrc ~/.vimrc
22 fi
23
24 if [ ! -f ~/.installed/i3 ]; then
25 sudo apt-get install i3
26 touch ~/.installed/i3
27 fi
28
29 ## Setup PowerShell
30 if [ ! -f ~/.config/powershell/Microsoft.PowerShell_profile.ps1 ]; then
31 sudo apt-get install powershell
32 chsh --shell /usr/bin/pwsh
33 mkdir -p ~/.config/powershell/
34 ln -s ~/dotfiles/Microsoft.PowerShell_profile.ps1 ~/.config/powershell/Microsoft.PowerShell_profile.ps1
35 fi
36
37 ## Create SSH Keys
38 if [ ! -f ~/.ssh/id_rsa ]; then
39 ssh-keygen
40 fi
41
42 ## Setup Remote Access
43 # if [ ! -f ~/id_rsa.pub ]; then
44 # cp ~/dotfiles/id_rsa.pub ~/id_rsa.pub
45 # chmod go+r ~/id_rsa.pub
46 # fi
47
48 ## Setup Screen
49 if [ ! -f ~/.screenrc ]; then
50 sudo apt-get install screen
51 ln -s ~/dotfiles/screenrc ~/.screenrc
52 fi
53
54 ## Setup Vundle for Vim
55 if [ ! -d ~/.vim/bundle ]; then
56 git clone https://github.com/gmarik/Vundle.vim.git ~/.vim/bundle/Vundle.vim
57 vim +BundleInstall +qall
58 fi
59
60 if [ ! -d ~/.installed/code ]; then
61 # sudo apt install snapd
62 # sudo snap install --classic code
63 wget https://packagecloud.io/headmelted/codebuilds/gpgkey -O - | sudo apt-key add -
64 curl -L https://raw.githubusercontent.com/headmelted/codebuilds/master/docs/installers/apt.sh | sudo bash
65 touch ~/.installed/code
66 fi
67
68 echo "https://github.com/settings/keys"
69 echo "vim .git/config -- add: url = git@github.com:edthedev/dotfiles.git"
70 cat ~/.ssh/id_rsa.pub
71
72 ls -al ~/.installed