Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- user="metalx1000"
- newcomputer="192.168.1.158"
- 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
- adduser $user sudo
- visudo
- #copy basic settings/configs
- #!!!!!!!!run on old install!!!!!!!!
- scp -r .tmux* $newcomputer:
- scp -r .config/dunst $newcomputer:.config/
- scp -r .config/i3 $newcomputer:.config/
- scp -r .conkyrc $newcomputer:
- scp -r ~/.imgs $newcomputer:
- scp -r ~/.zsh* $newcomputer:
- scp -r ~/.bg.jpg $newcomputer:
- scp -r ~/.config/xfce4 $newcomputer:.config/
- #back to new machine
- sudo scp -r $user@192.168.1.150:/usr/local/bin/* /usr/local/bin/
- #set timezone
- ln -sf /usr/share/zoneinfo/America/New_York /etc/localtime
- /sbin/hwclock --systohc
- #set sudo
- adduser metalx1000 sudo
- #vim and fzf
- git clone "https://gitlab.com/metalx1000/My-Vim-Setup.git"
- cd My-Vim-Setup
- ./install.sh full
- #ohmyzsh
- sh -c "$(curl -fsSL https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
- #set web folders
- sudo apt install apache2 php
- mkdir $HOME/www
- sudo ln -s $HOME/www /var/www/html/metalx1000
- sudo rm /var/www/html/index.html
- echo '<?php header("Location: http://filmsbykris.com/"); ?>'|sudo tee /var/www/html/index.php
- #ssh
- ssh-keygen -o
- ssh-copy-id -i ~/.ssh/id_rsa <serverIP>
- #copy for git
- cat ~/.ssh/id_rsa.pub
- #youtube-dl
- sudo curl -L https://yt-dl.org/downloads/latest/youtube-dl -o /usr/local/bin/youtube-dl
- sudo chmod a+rx /usr/local/bin/youtube-dl
- #add user to groups
- usermod -a -G pulse,pulse-access,vboxusers,dialout $user
Add Comment
Please, Sign In to add comment