-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.sh
43 lines (25 loc) · 1.89 KB
/
setup.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
#!/bin/bash
# Use f8 to boot from USB and install Linux. Be sure to copy all old files onto the thumb drive.
# Then ...
sudo apt-get install -y qgis gimp neovim python3 python3-pip screen git \
curl wget musescore3 whois tldr gnupg kgpg php-cli sqlite3 composer npm \
php-xml php-curl php-sqlite3 php-mysql mariadb-client-core mariadb-client \
tree wmdocker docker-compose audacity openshot-qt docker-compose-v2
# Now we configure the terminal to copy automatically on select, like iTerm2 does, per https://superuser.com/a/1721880
touch ~/.Xresources
echo "xterm*selectToClipboard: true" >> ~/.Xresources
# NeoVim stuff ...
mkdir -p $HOME/.config && cd $HOME/.config && git clone https://github.com/kevinquinnyo/nvim.git
sh -c 'curl -fLo "${XDG_DATA_HOME:-$HOME/.local/share}"/nvim/site/autoload/plug.vim --create-dirs \
https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim'
sudo pip3 install --upgrade neovim
# Now run nvim and then do :PlugInstall to get all those new plugins running.
# Now copy your documents from the old machine to the new machine via your thumb drive or backup drive.
# Then (assuming you used the thumb drive) re-download your Linux distribution of choice and use Balena Etcher to flash the USB drive again.
# Or even better, flash the USB drive with a different version. You want to be able to start up your backup machine if needed.
# Then reinstall PHPStorm anyway, since it has better Symfony support than neovim, using a Google Drive document to hang onto the necessary user key.
sudo snap install phpstorm --classic
# Then reinstall Skype, using the Microsoft email address that you never use in that same document. (You'll have to reset the password that you also never use.)
# Then add the Symfony CLI command.
curl -1sLf 'https://dl.cloudsmith.io/public/symfony/stable/setup.deb.sh' | sudo -E bash
sudo apt install symfony-cli