setup_system.sh 3.1 KB

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