arnaucube
arnaucube/configsPublic Self-hosted repository
update rpi base installer
arnaucube git@arnaucube.com
Wed, 27 Nov 2024 20:05:07 +0100
commit

edcc19e653349cb5ee252e1b888333c2b93578cf

parent

6767688ef0e2ca9d678b38a5096333e61d216402

2 files changed, 21 insertions(+), 12 deletions(-)

jump to
M raspberry/install-raspberry-minimum.sh → raspberry/install-raspberry-minimum.sh

@@ -3,19 +3,20 @@

echo "updating" sudo apt-get update -echo "installing neovim" -sudo apt-get -y install neovim -curl -fLo ~/.local/share/nvim/site/autoload/plug.vim --create-dirs \ +echo "installing vim" +sudo apt -y install vim + +echo "setting vim config" +cp ./.vimrc ~/.vimrc +cp ./vimconfigbase.vim ~/vimconfigbase.vim + +echo "installing PlugInstall vim" +curl -fLo ~/.vim/autoload/plug.vim --create-dirs \ https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim echo "installing tmux" sudo apt-get -y install tmux -echo "setting nvim config" -mkdir ~/.config -mkdir ~/.config/nvim -cp ../init.vim ~/.config/nvim/init.vim - echo "setting xmodmap config" cp ../.Xmodmap ~/.Xmodmap xmodmap ~/.Xmodmap

@@ -24,7 +25,9 @@ echo "setting tmux config"

cp ../.tmux.conf ~/.tmux.conf echo "append .bashrc of this repo lines to the .bashrc system file" +cp ../.sh_alias ~/.sh_alias cat ../.bashrc >> ~/.bashrc +source ../.bashrc # Additionally, fix the IP: # vim /etc/dhcpcd.conf:
M raspberry/netplan-config.yaml → raspberry/netplan-config.yaml

@@ -1,12 +1,18 @@

# UPDATE: for newer systems better directly use: +# +# install dhcpcd: sudo apt-get install dhcpcd5 +# # vim /etc/dhcpcd.conf: # # interface eth0 -# static ip_address=192.168.1.150/24 -# static routers=192.168.1.1 -# static domain_name_servers=192.168.1.1 +# static ip_address=192.168.1.150/24 +# static routers=192.168.1.1 +# static domain_name_servers=192.168.1.1 # -# now reboot the rpi +# +# restart dhcpcd: sudo systemctl restart dhcpcd +# +# now reboot the rpi: sudo reboot # static ip configuration