metalx1000

2020 setup

Jun 13th, 2020
552
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. user="metalx1000"
  2. newcomputer="192.168.1.158"
  3.  
  4. sudo apt install i3blocks i3lock i3lock-fancy i3status tmux git vim-nox dunst zsh openssh-server pcmanfm pulsemixer mpv curl sudo wget pulseaudio xorg xfce4-terminal
  5.  
  6. adduser $user sudo
  7. visudo
  8.  
  9. #copy basic settings/configs
  10. #!!!!!!!!run on old install!!!!!!!!
  11. scp -r .tmux* $newcomputer:
  12. scp -r .config/dunst $newcomputer:.config/
  13. scp -r .config/i3 $newcomputer:.config/
  14. scp -r .conkyrc $newcomputer:
  15. scp -r ~/.imgs $newcomputer:
  16. scp -r ~/.zsh* $newcomputer:
  17. scp -r ~/.bg.jpg $newcomputer:
  18. scp -r ~/.config/xfce4 $newcomputer:.config/
  19.  
  20. #back to new machine
  21. sudo scp -r $user@192.168.1.150:/usr/local/bin/* /usr/local/bin/
  22.  
  23. #set timezone
  24. ln -sf /usr/share/zoneinfo/America/New_York /etc/localtime
  25. /sbin/hwclock --systohc
  26.  
  27. #set sudo
  28. adduser metalx1000 sudo
  29.  
  30. #vim and fzf
  31. git clone "https://gitlab.com/metalx1000/My-Vim-Setup.git"
  32. cd My-Vim-Setup
  33. ./install.sh full
  34.  
  35.  
  36. #ohmyzsh
  37. sh -c "$(curl -fsSL https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
  38.  
  39. #set web folders
  40. sudo apt install apache2 php
  41. mkdir $HOME/www
  42. sudo ln -s $HOME/www /var/www/html/metalx1000
  43. sudo rm /var/www/html/index.html
  44. echo '<?php header("Location: http://filmsbykris.com/"); ?>'|sudo tee  /var/www/html/index.php
  45.  
  46. #ssh
  47. ssh-keygen -o
  48. ssh-copy-id -i ~/.ssh/id_rsa <serverIP>
  49.  
  50. #copy for git
  51. cat ~/.ssh/id_rsa.pub
  52.  
  53. #youtube-dl
  54. sudo curl -L https://yt-dl.org/downloads/latest/youtube-dl -o /usr/local/bin/youtube-dl
  55. sudo chmod a+rx /usr/local/bin/youtube-dl
  56.  
  57. #add user to groups
  58. usermod -a -G pulse,pulse-access,vboxusers,dialout $user
RAW Paste Data