Advertisement
metalx1000

My Setup 2022

May 13th, 2022 (edited)
1,242
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 2.75 KB | None | 0 0
  1. user=metalx1000
  2. adduser $user
  3.  
  4. sudo apt install arandr debian-keyring deutex evtest firmware-iwlwifi g810-led imagemagick
  5. sudo apt install  jq nodejs npm numlockx openssh-server osdsh prboom-plus
  6. sudo apt install scrot socat sudo wmctrl adb fastboot scrcpy exiftran tumbler evince ffmpegthumbnailer
  7. sudo apt install sweethome3d sweethome3d-furniture sweethome3d-furniture-editor sweethome3d-furniture-nonfree sweethome3d-textures-editor
  8. sudo apt install xautolock xbindkeys xosd-bin zenity xarchiver rsync
  9. sudo apt install nmap i3 i3lock i3blocks busybox firefox-esr pcmanfm zsh fzf aptitude git
  10. sudo apt install gimp ffmpeg mpv sudo pulseaudio pulsemixer pavucontrol xpdf gpm
  11. sudo apt install alsa-tools alsa-utils lmms cup axel aria2 kdenlive tmux
  12. sudo apt install apache2 phpmyadmin nomacs brightnessctl ocrmypdf exa grc
  13. sudo apt install nextcloud-desktop kdeconnect dos2unix lolcat sqlite3 openssh-server xautolock nextcloud-desktop syncthing
  14. sudo apt install fonts-noto-color-emoji kdeconnect net-tools  i3blocks dunst prboom-plus libnotify-bin python2 numlockx feh network-manager ecryptfs-utils
  15.  
  16. sudo usermod -a -G lp,dialout,sudo,audio,video,plugdev,input,lpadmin,pulse,pulse-access,plugdev $user
  17.  
  18. chsh -s /bin/zsh root
  19. chsh -s /bin/zsh $user
  20. vim /etc/hosts
  21.  
  22. ln -sf /usr/share/zoneinfo/America/New_York /etc/localtime
  23. /sbin/hwclock --systohc
  24.  
  25. adduser $user sudo
  26. visudo
  27.  
  28. apt-get install apache2 mysql-server phpmyadmin
  29. mkdir ~/www
  30. ln -s ~/www /var/www/html/$user
  31.  
  32. #set default programs
  33. xdg-mime default nomacs.desktop image/gif
  34. xdg-mime default nomacs.desktop image/jpeg
  35. xdg-mime default nomacs.desktop image/png
  36.  
  37. ##set media keys
  38. #Check media keycode for current key press
  39. sudo showkey -k
  40. sudo evtest /dev/input/event0
  41.  
  42. #list current key mapings
  43. xmodmap -pke
  44. #set brightness keys for thinkpad
  45. xmodmap -e 'keycode 225 = XF86MonBrightnessUp NoSymbol XF86MonBrightnessUp'
  46. xmodmap -e 'keycode 224 = XF86MonBrightnessDown NoSymbol XF86MonBrightnessDown'
  47.  
  48. #vim setup
  49. cd /home/$user/www
  50. git clone "https://github.com/metalx1000/My-Vim-Setup.git"
  51. cd My-Vim-Setup
  52. ./install.sh full
  53.  
  54. usermod -a -G lp, dialout, cdrom, floppy, sudo, audio, dip, video, plugdev, input, netdev, bluetooth, lpadmin, pulse, pulse-access $user
  55.  
  56. sh -c "$(curl -fsSL https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
  57. git clone https://github.com/zsh-users/zsh-autosuggestions ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions
  58.  
  59. ####for rtl firmware warnings####
  60. sudo mkdir /lib/firmware/rtl_nic
  61. cd /lib/firmware/rtl_nic
  62. wget -qO- "https://git.kernel.org/pub/scm/linux/kernel/git/firmware/linux-firmware.git/plain/rtl_nic/"|\
  63.   cut -d\' -f2|\
  64.   grep rtl|\
  65.   grep linux|while read l;
  66.   do
  67.      sudo wget "https://git.kernel.org$l";
  68.   done
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement