-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpi_starter
More file actions
executable file
·67 lines (52 loc) · 2.07 KB
/
pi_starter
File metadata and controls
executable file
·67 lines (52 loc) · 2.07 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
#!/bin/bash
# This is for after raspbian has been squirted onto sd
#update and upgrade
yes | sudo apt-get update && sudo apt-get upgrade
#generate locales
#sudo locale-gen en_US.UTF-8
#sudo dpkg-reconfigure locales
#echo "LANG=en_US.UTF-8" >> "/etc/default/locale"
#echo "LANG=en_US.UTF-8" >> "/etc/environment"
#ruby and brew
yes | sudo apt-get install ruby-full
printf '\n' | sh -c "$(curl -fsSL https://raw.githubusercontent.com/Linuxbrew/install/master/install.sh)"
#vim
yes | sudo apt-get remove vim-tiny
yes | sudo apt-get install vim-nox
#git and zsh
yes | sudo apt-get install git zsh
chsh -s /bin/zsh
yes | sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
#homeshick
git clone https://github.com/andsens/homeshick.git $HOME/.homesick/repos/homeshick
printf '\nsource "$HOME/.homesick/repos/homeshick/homeshick.sh"' >> $HOME/.bashrc
printf '\nsource "$HOME/.homesick/repos/homeshick/homeshick.sh"' >> $HOME/.zshrc
source ~/.bashrc
yes | homeshick clone -v https://github.com/Abhijay/zsh-dotfiles;
yes | homeshick clone -v https://github.com/Abhijay/vim-dotfiles;
yes | homeshick clone -v https://github.com/Abhijay/git-dotfiles;
# nodejs
wget http://node-arm.herokuapp.com/node_latest_armhf.deb
sudo dpkg -i node_latest_armhf.deb
node -v
rm node_latest_armhf.deb
# configure Code folder
cd; mkdir Code; cd Code
git clone https://github.com/Abhijay/utility-scripts.git
mv utility-scripts Scripts
mkdir One-offs
mkdir -p .archive/{inactive-major-projects,inactive-pet-projects}
##final system configs
#setup static ip
IPADR=$(ip -4 addr show | grep global) #192.168.1.24/24
ROUTER=$(ip route | grep default | awk '{print $3}') #192.168.1.1
cat /etc/resolv.conf #e.g. 192.168.1.1
sudo echo "interface wlan0" >> /etc/dhcpcd.conf
sudo echo "static ip_address=$IPADR" >> /etc/dhcpcd.conf
sudo echo "static routers=$ROUTER" >> /etc/dhcpcd.conf
sudo echo "static ip_address=$ROUTER" >> /etc/dhcpcd.conf
sudo vim /etc/dhcpcd.conf
#change password (standard new format w/ leading 4)
sudo raspi-config
#reboot to make sure it all takes effect
sudo reboot