lets just call this a git init okay?
This commit is contained in:
2
src/Oh-My-ZSH(TO-DO).sh
Normal file
2
src/Oh-My-ZSH(TO-DO).sh
Normal file
@@ -0,0 +1,2 @@
|
||||
sudo apt install zsh -y
|
||||
sh -c "$(curl -fsSL https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh)" -y
|
37
src/applications/BootstrapStudio.sh
Executable file
37
src/applications/BootstrapStudio.sh
Executable file
@@ -0,0 +1,37 @@
|
||||
# Get the full html and get the link of the button
|
||||
wget https://bootstrapstudio.io/download
|
||||
latestversionimage="$(grep -w 'data-linux="' "download")"
|
||||
latestversionsh="$(grep -w 'data-linux-install="' "download")"
|
||||
|
||||
# remove useless stuff of the link
|
||||
latestversionimage=${latestversionimage#*'data-linux="'}
|
||||
latestversionimage=${latestversionimage%'"'*}
|
||||
|
||||
# remove useless stuff of the link
|
||||
latestversionsh=${latestversionsh#*'"'}
|
||||
latestversionsh=${latestversionsh%'"'*}
|
||||
|
||||
# Safe the path
|
||||
curdir="$(pwd)"
|
||||
homedir="$(getent passwd $SUDO_USER | cut -d: -f6)"
|
||||
|
||||
# go to app folder to safe the files
|
||||
cd $homedir
|
||||
cd Applications
|
||||
|
||||
sudo -u $SUDO_USER mkdir BootstrapStudio
|
||||
cd BootstrapStudio
|
||||
|
||||
# get images
|
||||
sudo -u $SUDO_USER wget https://bootstrapstudio.io/$latestversionimage
|
||||
sudo -u $SUDO_USER wget https://bootstrapstudio.io/$latestversionsh
|
||||
|
||||
# downloadd app
|
||||
echo "y" | sudo -u $SUDO_USER bash launcher.sh
|
||||
|
||||
# remove unnesesary files
|
||||
rm launcher.sh
|
||||
|
||||
# get back to main folder
|
||||
cd ~
|
||||
cd $curdir
|
2
src/applications/Firefox.sh
Normal file
2
src/applications/Firefox.sh
Normal file
@@ -0,0 +1,2 @@
|
||||
sudo apt-get update
|
||||
sudo apt install firefox
|
2
src/applications/Git.sh
Executable file
2
src/applications/Git.sh
Executable file
@@ -0,0 +1,2 @@
|
||||
sudo apt-get update
|
||||
sudo apt-get install git
|
3
src/applications/Node.sh
Normal file
3
src/applications/Node.sh
Normal file
@@ -0,0 +1,3 @@
|
||||
curl -sL https://deb.nodesource.com/setup_14.x | sudo -E bash -
|
||||
./../applications/gcc.sh
|
||||
sudo apt-get install -y nodejs
|
4
src/applications/NordVPN.sh
Normal file
4
src/applications/NordVPN.sh
Normal file
@@ -0,0 +1,4 @@
|
||||
wget https://repo.nordvpn.com/deb/nordvpn/debian/pool/main/nordvpn-release_1.0.0_all.deb
|
||||
sudo apt-get install ./nordvpn-release_1.0.0_all.deb
|
||||
sudo apt-get update
|
||||
sudo apt install nordvpn
|
2
src/applications/OBS.sh
Normal file
2
src/applications/OBS.sh
Normal file
@@ -0,0 +1,2 @@
|
||||
sudo apt update
|
||||
sudo apt install obs-studio
|
3
src/applications/Slack.sh
Normal file
3
src/applications/Slack.sh
Normal file
@@ -0,0 +1,3 @@
|
||||
sudo snap install slack --classic
|
||||
sudo apt-get update
|
||||
sudo apt-get upgrade slack-desktop
|
10
src/applications/VSCode.sh
Normal file
10
src/applications/VSCode.sh
Normal file
@@ -0,0 +1,10 @@
|
||||
# get package
|
||||
wget -qO- https://packages.microsoft.com/keys/microsoft.asc | gpg --dearmor > packages.microsoft.gpg
|
||||
sudo install -o root -g root -m 644 packages.microsoft.gpg /etc/apt/trusted.gpg.d/
|
||||
sudo sh -c 'echo "deb [arch=amd64,arm64,armhf signed-by=/etc/apt/trusted.gpg.d/packages.microsoft.gpg] https://packages.microsoft.com/repos/code stable main" > /etc/apt/sources.list.d/vscode.list'
|
||||
rm -f packages.microsoft.gpg
|
||||
|
||||
# install package
|
||||
sudo apt install apt-transport-https
|
||||
sudo apt update
|
||||
sudo apt install code
|
3
src/applications/Yarn.sh
Normal file
3
src/applications/Yarn.sh
Normal file
@@ -0,0 +1,3 @@
|
||||
curl -sL https://dl.yarnpkg.com/debian/pubkey.gpg | sudo apt-key add -
|
||||
echo "deb https://dl.yarnpkg.com/debian/ stable main" | sudo tee /etc/apt/sources.list.d/yarn.list
|
||||
sudo apt-get update && sudo apt-get install yarn
|
1
src/applications/gcc.sh
Normal file
1
src/applications/gcc.sh
Normal file
@@ -0,0 +1 @@
|
||||
sudo apt-get install gcc g++ make
|
2
src/applications/openjdk.sh
Normal file
2
src/applications/openjdk.sh
Normal file
@@ -0,0 +1,2 @@
|
||||
sudo apt update
|
||||
sudo apt install default-jdk
|
3
src/applications/spotify.sh
Normal file
3
src/applications/spotify.sh
Normal file
@@ -0,0 +1,3 @@
|
||||
curl -sS https://download.spotify.com/debian/pubkey_0D811D58.gpg | sudo apt-key add -
|
||||
echo "deb http://repository.spotify.com stable non-free" | sudo tee /etc/apt/sources.list.d/spotify.list
|
||||
sudo apt-get update && sudo apt-get install spotify-client -y
|
0
src/applicationsTODO/AndroidStudio.sh
Normal file
0
src/applicationsTODO/AndroidStudio.sh
Normal file
1
src/applicationsTODO/Defold.sh
Normal file
1
src/applicationsTODO/Defold.sh
Normal file
@@ -0,0 +1 @@
|
||||
echo "defold"
|
3
src/applicationsTODO/Discord.sh
Normal file
3
src/applicationsTODO/Discord.sh
Normal file
@@ -0,0 +1,3 @@
|
||||
wget -O discord.deb "https://discordapp.com/api/download?platform=linux&format=deb"
|
||||
sudo dpkg -i discord.deb
|
||||
echo "y" | sudo apt install -f
|
1
src/applicationsTODO/Docker.sh
Executable file
1
src/applicationsTODO/Docker.sh
Executable file
@@ -0,0 +1 @@
|
||||
apt-get update
|
0
src/applicationsTODO/Python.sh
Normal file
0
src/applicationsTODO/Python.sh
Normal file
0
src/applicationsTODO/Xampp.sh
Normal file
0
src/applicationsTODO/Xampp.sh
Normal file
2
src/applicationsTODO/chromium.sh
Normal file
2
src/applicationsTODO/chromium.sh
Normal file
@@ -0,0 +1,2 @@
|
||||
sudo apt-get update
|
||||
sudo apt install chromium -y
|
10
src/services/connection.sh
Normal file
10
src/services/connection.sh
Normal file
@@ -0,0 +1,10 @@
|
||||
check_connection() {
|
||||
wget -q --spider http://google.com
|
||||
|
||||
if [ $? -ne 0 ]; then
|
||||
echo "ERROR: NO INTERNET CONNECTION. Please make sure that there is a stable internet connection."
|
||||
exit 1
|
||||
fi
|
||||
}
|
||||
|
||||
# check_connection
|
62
src/services/help.sh
Executable file
62
src/services/help.sh
Executable file
@@ -0,0 +1,62 @@
|
||||
setup_color() {
|
||||
# Only use colors if connected to a terminal
|
||||
if [ -t 1 ]; then
|
||||
RED=$(printf '\033[31m')
|
||||
GREEN=$(printf '\033[32m')
|
||||
YELLOW=$(printf '\033[33m')
|
||||
BLUE=$(printf '\033[34m')
|
||||
BOLD=$(printf '\033[1m')
|
||||
RESET=$(printf '\033[m')
|
||||
else
|
||||
RED=""
|
||||
GREEN=""
|
||||
YELLOW=""
|
||||
BLUE=""
|
||||
BOLD=""
|
||||
RESET=""
|
||||
fi
|
||||
}
|
||||
|
||||
print_logo() {
|
||||
# set color
|
||||
printf %s "$YELLOW"
|
||||
cat <<'EOF'
|
||||
-------------------------------------------------------------------------------
|
||||
-------------------------------------------------------------------------------
|
||||
-------------------------------------------------------------------------------
|
||||
-------------------------------------------------------------------------------
|
||||
--- ---
|
||||
---██ ███ ██ ███████ ████████ █████ ██ ██ ██ ███████ ██ ██---
|
||||
---██ ████ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ---
|
||||
---██ ██ ██ ██ ███████ ██ ███████ ██ ██ ██ █████ ████ ---
|
||||
---██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ---
|
||||
---██ ██ ████ ███████ ██ ██ ██ ███████ ███████ ██ ██ ██ ---
|
||||
--- ---
|
||||
-------------------------------------------------------------------------------
|
||||
-------------------------------made by spekulaas-------------------------------
|
||||
---------------------------------Version 1.0.0---------------------------------
|
||||
-------------------------------------------------------------------------------
|
||||
|
||||
EOF
|
||||
# set color to default
|
||||
printf %s "$RESET"
|
||||
}
|
||||
|
||||
print_help() {
|
||||
# set color
|
||||
printf %s "$YELLOW"
|
||||
cat <<'EOF'
|
||||
Usage: Sudo ./install.sh [command oprions]
|
||||
|
||||
Command options:
|
||||
-h, -help Show a list of all commands
|
||||
-v, -version Show the current version of the application
|
||||
-d, -debug Display all the download information
|
||||
EOF
|
||||
# set color to default
|
||||
printf %s "$RESET"
|
||||
}
|
||||
|
||||
print_version() {
|
||||
echo "Version 1.0.0"
|
||||
}
|
16
src/services/loadbar.sh
Normal file
16
src/services/loadbar.sh
Normal file
@@ -0,0 +1,16 @@
|
||||
ProgressBar() {
|
||||
# Process data
|
||||
program=(${3})
|
||||
|
||||
let _progress=(${1}*100/${2}*100)/100
|
||||
let _done=(${_progress}*4)/10
|
||||
let _left=40-$_done
|
||||
# let _program=${3}
|
||||
fill=$(printf "%${_done}s")
|
||||
empty=$(printf "%${_left}s")
|
||||
# program=$(printf "${_program}")
|
||||
|
||||
printf "\rProgress : |${fill// /▇}${empty// / }| ${_progress}%%"
|
||||
printf " Installing ${program} \r"
|
||||
|
||||
}
|
0
src/temp/.gitignore
vendored
Normal file
0
src/temp/.gitignore
vendored
Normal file
Reference in New Issue
Block a user