-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathlinux.sh
54 lines (40 loc) · 1.41 KB
/
linux.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
44
45
46
47
48
49
50
51
52
53
54
#!/bin/bash
# Request sudo, necessary to run first as user to modify them rerun as root
(( EUID != 0 )) && exec sudo -- "$0" "$@"
# Add repositories
# Spotify
apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 931FF8E79F0876134EDDBDCCA87FF9DF48BF1C90
echo deb http://repository.spotify.com stable non-free | tee /etc/apt/sources.list.d/spotify.list
# qBittorrent
add-apt-repository ppa:qbittorrent-team/qbittorrent-stable -y
# Create temp directory for Downloads
mkdir -m 777 temp
# Download packages
wget -O temp/hyper.deb https://releases.hyper.is/download/deb
wget -O temp/nordvpn.deb https://repo.nordvpn.com/deb/nordvpn/debian/pool/main/nordvpn-release_1.0.0_all.deb
wget -O temp/vscode.deb https://go.microsoft.com/fwlink/?LinkID=760868
# Install downloaded packages
dpkg -i temp/hyper.deb
dpkg -i temp/nordvpn.deb
dpkg -i temp/vscode.deb
# Delete folder and packages
rm -rf temp
# Update all packages
apt update
apt upgrade
# Install packages
apt install filezilla nordvpn qbittorrent spotify-client vlc
# Remove Unnecessary packages
apt autoremove
# Move all current dotfiles into new folder
cd ~
rm -rf tempDotFiles
mkdir -m 777 tempDotFiles
mv -t tempDotFiles .bash_profile .bashrc .gitconfig .gitignore .inputrc .profile 2>/dev/null
# Symlink bash folder
ln -sv ~/dotfiles/bash/.bash_profile ~
ln -sv ~/dotfiles/bash/.gitconfig ~
ln -sv ~/dotfiles/bash/.inputrc ~
# Close terminal and reopen
hyper
exit