configs/raspberry/install-raspberry-minimum.sh
raspberry/install-raspberry-minimum.shRaw
1# assumming that git is already installed and this repo is installed
2
3echo "updating"
4sudo apt-get update
5
6echo "installing vim"
7sudo apt -y install vim
8
9echo "setting vim config"
10cp ./.vimrc ~/.vimrc
11cp ./vimconfigbase.vim ~/vimconfigbase.vim
12
13echo "installing PlugInstall vim"
14curl -fLo ~/.vim/autoload/plug.vim --create-dirs \
15 https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
16
17echo "installing tmux"
18sudo apt-get -y install tmux
19
20echo "setting xmodmap config"
21cp ../.Xmodmap ~/.Xmodmap
22xmodmap ~/.Xmodmap
23
24echo "setting tmux config"
25cp ../.tmux.conf ~/.tmux.conf
26
27echo "append .bashrc of this repo lines to the .bashrc system file"
28cp ../.sh_alias ~/.sh_alias
29cat ../.bashrc >> ~/.bashrc
30source ../.bashrc
31
32# Additionally, fix the IP:
33# vim /etc/dhcpcd.conf:
34#
35# interface eth0
36# static ip_address=192.168.1.150/24
37# static routers=192.168.1.1
38# static domain_name_servers=192.168.1.1
39
40# UPDATE: in newer systems (ie. raspbian on rpi5):
41# vim /etc/network/interfaces:
42#
43# auto eth0
44# iface eth0 inet static
45# address 192.168.1.150
46# netmask 255.255.255.0
47# gateway 192.168.1.1
48# dns-nameservers 192.168.1.1
49#
50# and then restart the network interfaces with:
51# sudo systemctl restart networking