lets just call this a git init okay?

This commit is contained in:
2021-09-24 16:48:53 +02:00
parent f6b0821ad5
commit 4fc74ecbe3
26 changed files with 436 additions and 40 deletions

2
src/Oh-My-ZSH(TO-DO).sh Normal file
View 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

View 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

View File

@@ -0,0 +1,2 @@
sudo apt-get update
sudo apt install firefox

2
src/applications/Git.sh Executable file
View File

@@ -0,0 +1,2 @@
sudo apt-get update
sudo apt-get install git

3
src/applications/Node.sh Normal file
View 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

View 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
View File

@@ -0,0 +1,2 @@
sudo apt update
sudo apt install obs-studio

View File

@@ -0,0 +1,3 @@
sudo snap install slack --classic
sudo apt-get update
sudo apt-get upgrade slack-desktop

View 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
View 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
View File

@@ -0,0 +1 @@
sudo apt-get install gcc g++ make

View File

@@ -0,0 +1,2 @@
sudo apt update
sudo apt install default-jdk

View 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

View File

View File

@@ -0,0 +1 @@
echo "defold"

View 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
View File

@@ -0,0 +1 @@
apt-get update

View File

View File

View File

@@ -0,0 +1,2 @@
sudo apt-get update
sudo apt install chromium -y

View 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
View 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
View 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
View File