You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

48 lines
1.2 KiB

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