setup_system.sh 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105
  1. #!/bin/bash
  2. #the bare essentials
  3. sudo apt install -y vim
  4. ~/dotfiles/setup-vim.sh
  5. sudo apt install -y git
  6. cp ./scripts/vimv /usr/bin
  7. #make home folders I'll need
  8. mkdir -p ~/screenshots
  9. mkdir -p ~/pictures
  10. mkdir -p ~/shared
  11. mkdir -p ~/downloads
  12. mkdir -p ~/.config
  13. #window manager
  14. sudo apt install -y sway
  15. sudo apt install -y swaybg
  16. ln -sn ~/dotfiles/devuan_setup/config/sway ~/.config/sway
  17. rm -rf ~/.profile
  18. rm -rf ~/.bashrc
  19. ln -sn ~/dotfiles/devuan_setup/.profile ~/.profile
  20. ln -sn ~/dotfiles/devuan_setup/config/user-dirs.dirs ~/.config/
  21. ln -sn ~/dotfiles/devuan_setup/.bashrc ~/.bashrc
  22. ln -sn ~/dotfiles/devuan_setup/scripts ~/scripts
  23. #so pasting works in the vim in the terminal
  24. sudo apt install -y wl-clipboard
  25. #install terminal emulator
  26. sudo apt install -y foot
  27. ln -sn ~/dotfiles/devuan_setup/config/foot ~/.config/foot
  28. #dialog boxes
  29. sudo apt install -y zenity
  30. #let there be sound (over bluetooth too)!
  31. sudo apt install -y pipewire
  32. sudo apt install -y pipewire-pulse
  33. sudo apt install -y xdg-desktop-portal-wlr
  34. sudo apt install -y pulsemixer
  35. sudo apt install -y bluez
  36. sudo apt install -y bluez-firmware
  37. sudo apt install -y bluez-tools
  38. #screen brightness control
  39. sudo apt install -y brightnessctl
  40. #battery measurement
  41. sudo apt install -y acpi
  42. sudo apt install -y acpid
  43. #displays "progress" bars - used for brightness and volume
  44. #sway config contains the named pipes necessary for it to work with my shortcuts
  45. sudo apt install -y wob
  46. ln -sn ~/dotfiles/devuan_setup/config/wob ~/.config/wob
  47. #launcher
  48. sudo apt install -y wofi
  49. ln -sn ~/dotfiles/devuan_setup/config/wofi ~/.config/wofi
  50. #wofi will search for desktop files in here
  51. mkdir -p ~/desktop
  52. ln -sn ~/dotfiles/devuan_setup/desktop/applications.txt ~/desktop/applications.txt
  53. #automount external drives
  54. sudo apt install -y udiskie
  55. #love2d stuff
  56. sudo apt install -y love
  57. sudo apt install -y apktool
  58. #actual programs
  59. sudo apt install -y zsh
  60. sudo apt install -y firefox-esr
  61. sudo apt install -y inkscape
  62. sudo apt install -y keepassxc
  63. sudo apt install -y calibre
  64. sudo apt install -y filezilla
  65. sudo apt install -y thunar
  66. sudo apt install -y krita
  67. sudo apt remove -y thunar-volman
  68. #screenshots
  69. sudo apt install -y grimshot
  70. #work stuff
  71. sudo apt install -y git-flow
  72. sudo apt install -y docker.io
  73. sudo apt install -y docker-compose
  74. sudo apt install -y npm
  75. curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.1/install.sh | bash
  76. DOCKER_COMPOSE_VERSION=$(curl --silent https://api.github.com/repos/docker/compose/releases/latest | grep -Po '"tag_name": "\K.*\d')
  77. DOCKER_COMPOSE_PATH=/usr/local/bin/docker-compose
  78. curl -L https://github.com/docker/compose/releases/download/${DOCKER_COMPOSE_VERSION}/docker-compose-Linux-x86_64 -o $DOCKER_COMPOSE_PATH
  79. chmod 755 $DOCKER_COMPOSE_PATH
  80. #flatpak install flathub org.freedesktop.Platform/x86_64/19.08
  81. #wifi and bluetooth
  82. sudo apt install -y connman-gtk
  83. #give user ability to shutdown
  84. sudo groupadd wheel
  85. sudo adduser bc wheel
  86. echo "%wheel ALL= NOPASSWD: /sbin/shutdown" | sudo tee -a /etc/sudoers > /dev/null
  87. echo "%wheel ALL= NOPASSWD: /sbin/reboot" | sudo tee -a /etc/sudoers > /dev/null