update rpi base installer

This commit is contained in:
2024-11-27 20:05:07 +01:00
parent 6767688ef0
commit edcc19e653
2 changed files with 21 additions and 12 deletions

View File

@@ -3,19 +3,20 @@
echo "updating" echo "updating"
sudo apt-get update sudo apt-get update
echo "installing neovim" echo "installing vim"
sudo apt-get -y install neovim sudo apt -y install vim
curl -fLo ~/.local/share/nvim/site/autoload/plug.vim --create-dirs \
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 https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
echo "installing tmux" echo "installing tmux"
sudo apt-get -y install 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" echo "setting xmodmap config"
cp ../.Xmodmap ~/.Xmodmap cp ../.Xmodmap ~/.Xmodmap
xmodmap ~/.Xmodmap xmodmap ~/.Xmodmap
@@ -24,7 +25,9 @@ echo "setting tmux config"
cp ../.tmux.conf ~/.tmux.conf cp ../.tmux.conf ~/.tmux.conf
echo "append .bashrc of this repo lines to the .bashrc system file" echo "append .bashrc of this repo lines to the .bashrc system file"
cp ../.sh_alias ~/.sh_alias
cat ../.bashrc >> ~/.bashrc cat ../.bashrc >> ~/.bashrc
source ../.bashrc
# Additionally, fix the IP: # Additionally, fix the IP:
# vim /etc/dhcpcd.conf: # vim /etc/dhcpcd.conf:

View File

@@ -1,4 +1,7 @@
# UPDATE: for newer systems better directly use: # UPDATE: for newer systems better directly use:
#
# install dhcpcd: sudo apt-get install dhcpcd5
#
# vim /etc/dhcpcd.conf: # vim /etc/dhcpcd.conf:
# #
# interface eth0 # interface eth0
@@ -6,7 +9,10 @@
# static routers=192.168.1.1 # static routers=192.168.1.1
# static domain_name_servers=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 # static ip configuration