Compare commits

...

57 Commits

Author SHA1 Message Date
“Ryan Bakkes”
9e887fe990 removed test 2023-08-30 16:48:42 +02:00
“Spekulaass”
a94a26841c test commit 2023-08-30 16:47:33 +02:00
“Spekulaas”
570ee1b4e2 added execute privalages 2023-08-24 17:09:31 +02:00
0843517021 discord fix 2023-02-17 08:36:43 +01:00
db18e41874 obs with background removal 2023-02-17 08:36:25 +01:00
spekulaas
c5fc379d0f changed name of postman shortkey 2022-11-10 01:30:56 +01:00
3044fb774b node fix 2022-10-08 01:20:42 +02:00
2f34a664ba golang fix 2022-10-08 01:18:47 +02:00
d85ea6c5d4 removed -i from shebang 2022-10-05 01:21:24 +02:00
ca247164ea added -i to shebang 2022-10-05 01:16:04 +02:00
48937f75bb changed calling script from sh > ./ 2022-10-05 01:14:43 +02:00
6a7134147e privelages fix on bashrc 2022-10-05 00:58:02 +02:00
f0a9c874ed fixed golang install, needed to add to bashrc 2022-10-05 00:57:47 +02:00
e8d2fb6aae fixed nvm install, used wrong privelages 2022-10-05 00:57:10 +02:00
b32328e5fa fixed privelages on tempzshrc 2022-10-05 00:56:13 +02:00
7222f2b93e add auto install 2022-10-05 00:55:57 +02:00
e8cc922c61 permission changes 2022-10-03 15:04:43 +02:00
1740c9b5ee removed chromium added chrome instead 2022-10-03 15:04:13 +02:00
4d39769cac removed sleep 2022-10-03 15:03:35 +02:00
0cbb8a326d remove source 2022-09-29 14:21:32 +02:00
082355aee6 fixed comment 2022-09-29 13:18:14 +02:00
e047bc3109 changed ohmyzsh to a manual install 2022-09-29 13:12:08 +02:00
3dc64233d5 i shouldve created a branch 2022-09-29 10:45:48 +02:00
f2c024cd51 test ohmyzsh 2022-09-27 15:37:58 +02:00
074a67e7eb test ohmyzsh 2022-09-27 15:24:20 +02:00
209f1a3cac removed python 2022-09-27 13:20:11 +02:00
a40948c75e added typescript 2022-09-27 13:17:56 +02:00
fea0297084 added typescript 2022-09-27 13:17:26 +02:00
258e3d47dc readme update 2022-09-27 13:14:31 +02:00
d7c5624bd6 loadbar update 2022-09-27 13:07:48 +02:00
59c99ff53e added must install files (files that get prioritised) 2022-09-27 13:07:33 +02:00
fb948873c6 changed readme 2022-09-27 13:06:45 +02:00
8369dbd3da added adb apt install 2022-09-27 11:05:52 +02:00
9392b7e31a apt-get > apt 2022-09-27 11:05:18 +02:00
72fd45736a remove prompts 2022-09-27 11:01:49 +02:00
92e0df51b0 finished defold download 2022-09-27 10:47:39 +02:00
4355f3d8ff remove not needed since temp folder will be cleared 2022-09-26 17:48:07 +02:00
1883d06278 added chromium 2022-09-26 17:40:09 +02:00
2488944619 Removed capital letters from file names 2022-09-26 17:39:36 +02:00
50f0314b6e install latest version of go 2022-09-26 16:00:50 +02:00
39aaad5394 project name update 2022-09-23 11:19:12 +02:00
23571d6b88 project name update 2022-09-23 11:17:51 +02:00
aba0c5eed1 Install postman 2022-09-22 14:23:52 +02:00
92943c0905 removed snap install 2022-09-04 21:55:48 +02:00
d4d04837d2 fixed gpg key 2022-09-04 21:49:03 +02:00
30d9570392 Update 'src/applications/teams.sh' 2022-08-29 10:13:48 +02:00
a4152fc2ad added teams install 2022-08-29 10:12:48 +02:00
9cfd4044f1 install node through nvm 2022-08-28 23:26:40 +02:00
4e3fbd5e61 accept all triggers 2022-08-27 20:17:58 +02:00
b08827a116 Update 'install.sh' 2022-08-27 19:54:45 +02:00
9e02989b18 Update 'src/Oh-My-ZSH.sh' 2022-08-27 19:52:46 +02:00
aa648c90ff zsh install 2022-08-27 19:29:48 +02:00
0b9c115f0b small fixes 2021-09-27 18:04:32 +02:00
340c65178e added chrome install 2021-09-27 02:06:05 +02:00
0c01933424 discord doesnt work so moved to todo 2021-09-26 23:20:41 +02:00
9898475746 Created discord install 2021-09-25 22:42:07 +02:00
8579114cd0 Finished Docker install 2021-09-25 22:31:03 +02:00
36 changed files with 313 additions and 52 deletions

View File

@@ -1,26 +1,35 @@
# Installify
Installify is a Bash shell script to download new software and applications.
## Applications & Software
* Android Studio (TO-DO)
* Bootstrap Studio
* Chromium (TO-DO)
* Defold (TO-DO)
* Discord (TO-DO)
* Docker (TO-DO)
* Firefox
## Important installs
Important installs are installs that might be needed to install other software. These installs will have a prioritisation over the rest of the files.
* Gcc
* Git
* Node
* Golang
* Node/NVM
* Open-jdk
* PHP
## Applications & Software
* ADB
* Bootstrap Studio
* Chrome
* Chromium
* Defold
* Discord (TO-DO)
* Docker
* Firefox
* Ionic
* NordVPN
* OBS
* PHP
* Python (TO-DO)
* Yarn
* Open-jdk
* Postman
* Slack
* Spotify
* Teams
* TypeScript
* Visual Studio Code
* Yarn
* Xampp (TO-DO)
* ZSH (TO-DO)
* Missing any applications or software? Feel free to leave an issue behind or create a merge request with the created files :)
@@ -28,12 +37,12 @@ Installify is a Bash shell script to download new software and applications.
# Use
```console
wget -P ~/ https://git.aterve.com/Spekulaas/BashInstaller/archive/master.zip
wget -P ~/ https://git.aterve.com/Spekulaas/installify/archive/master.zip
unzip ~/master.zip
```
or with git
```console
$ git clone https://git.aterve.com/Spekulaas/BashInstaller.git
$ git clone https://git.aterve.com/Spekulaas/installify.git
```
`cd $PATH_TO/Installify` and run the script interactively using `sudo ./install.sh [argunments]`:
@@ -77,6 +86,5 @@ Install all files with Oh-My-Zsh:
$ sudo ./install.sh -az
```
## TO-DO
Name change BashInstaller -> Installify
# TO-DO
See applications and software tab

View File

@@ -40,23 +40,37 @@ zsh_prompt() {
fi
# run option
if [[ ${zshOption,,} = "n" ]]; then
return
elif [[ ${zshOption,,} = "y" ]]; then
echo "nice choice lets use zsh"
if [[ ${zshOption,,} = "y" ]]; then
# Create temporary zsh file
sudo -u $SUDO_USER touch ~/.tempzshrc
# set up the basics of zsh
./src/services/zsh/zsh.sh
./src/services/zsh/Oh-My-ZSH.sh
fi
}
get_files() {
# Create temp place where files will be stored
cd src/applications
cd src/importantinstalls
> ../temp/importantinstalls.txt
> ../temp/installations.txt
# File info
applications=""
counter=0
for file in *; do
# Every .sh file in application folder will be noted in installations.txt
if [[ $file == *.sh ]]; then
echo "${file%.*}" >> ../temp/importantinstalls.txt
fi
done
cd ../applications
# Write every file name into installations
for file in *; do
# Every .sh file in application folder will be noted in installations.txt
@@ -80,6 +94,9 @@ select_files() {
printf %s "$YELLOW"
# Show all the options
echo "The following items will be installed."
echo "-------------Must install-------------"
cat importantinstalls.txt
echo "--------------------------------------"
cat installations.txt
printf %s "$RESET"
@@ -117,6 +134,9 @@ select_files() {
printf %s "$YELLOW"
echo "The following items will be installed."
echo "-------------Must install-------------"
cat importantinstalls.txt
echo "--------------------------------------"
cat installations.txt
echo
printf %s "$RESET"
@@ -132,11 +152,25 @@ select_files() {
install_files() {
# Check if debug is activated
if $debug; then
# Download important files
while read line; do
#Reading each line and execute file
if ! [ -x "$(command -v $line)" ]; then
sh ../applications/$line.sh
./../importantinstalls/$line.sh
else
echo "$line is already installed"
fi
done < "importantinstalls.txt"
# Download the selected applications
while read line; do
#Reading each line and execute file
if ! [ -x "$(command -v $line)" ]; then
./../applications/$line.sh
else
echo "$line is already installed"
fi
@@ -148,6 +182,7 @@ install_files() {
start=1
end=100
amount="$(wc -l < installations.txt)"
amount=$(($amount + "$(wc -l < importantinstalls.txt)"))
amount=$(($end / $amount))
# set design
@@ -155,17 +190,40 @@ install_files() {
printf %s "$YELLOW"
echo "The following items are going to be installed:"
cat importantinstalls.txt
cat installations.txt
echo ""
printf %s "$RESET"
# download important files
while read line; do
printf %s "$YELLOW"
ProgressBar ${start} ${end} ${line}
#Reading each line and execute file
if ! [ -x "$(command -v $line)" ]; then
sh ../applications/$line.sh >> /dev/null 2>&1
./../importantinstalls/$line.sh >> /dev/null 2>&1
fi
# update progressbar
reach=$(( $start + $amount ))
for number in $(seq ${start} ${reach}); do
ProgressBar ${number} ${end} ${line}
sleep 0.02
done
printf %s "$RESET"
start=$reach
done < "importantinstalls.txt"
# download selected applications
while read line; do
printf %s "$YELLOW"
ProgressBar ${start} ${end} ${line}
#Reading each line and execute file
if ! [ -x "$(command -v $line)" ]; then
./../applications/$line.sh >> /dev/null 2>&1
fi
# update progressbar
@@ -182,7 +240,9 @@ install_files() {
# Completing
if [[ $start != 100 ]]; then
for number in $(seq ${start} 100); do
printf %s "$YELLOW"
ProgressBar ${number} ${end} "..."
printf %s "$RESET"
sleep 0.02
done
fi
@@ -231,6 +291,14 @@ check_sudo_arguments() {
main
}
install_oh_my_zsh() {
# run option
if [[ ${zshOption,,} = "y" ]]; then
# Run Ohmyzsh (ends script)
./services/zsh/Oh-My-ZSH.sh
fi
}
main() {
# check if the computer has a stable connections
source ./src/services/connection.sh
@@ -264,6 +332,8 @@ main() {
cd $dir
cd src
rm temp/*
# install_oh_my_zsh
}
# PROGRAM BODY
@@ -271,8 +341,8 @@ main() {
dir="$(pwd)"
# Make sure the code is runned in the right way
if [[ `basename "$dir"` != "BashInstaller" ]]; then
echo "Please run this script in the Bashinstaller folder."
if [[ `basename "$dir"` != "installify" ]]; then
echo "Please run this script in the installify folder."
exit 1
fi

View File

@@ -1,2 +0,0 @@
sudo apt install zsh -y
sh -c "$(curl -fsSL https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh)" -y

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

@@ -0,0 +1,2 @@
sudo apt-get update
sudo apt-get install android-tools-adb -y

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

@@ -0,0 +1,2 @@
sudo -u $SUDO_USER wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb
sudo dpkg -i google-chrome-stable_current_amd64.deb

23
src/applications/defold.sh Executable file
View File

@@ -0,0 +1,23 @@
# Get logo and zip
wget https://d.defold.com/editor2/channels/editor-alpha/Defold-x86_64-linux.zip
wget https://defold.com/images/logo/defold/logo/logo-ver-classic-white-160.png
# Move to bin location
sudo unzip Defold-x86_64-linux.zip -d "/usr/bin"
sudo mv logo-ver-classic-white-160.png /usr/bin/Defold/logo.png
# Create shortcut file and set info
touch Defold.desktop
{
echo '[Desktop Entry]'
echo 'Type=Application'
echo 'Encoding=UTF-8'
echo 'Name=Defold'
echo 'Comment=Defold Editor 2'
echo 'Exec=/usr/bin/Defold/Defold'
echo 'Terminal=false'
echo 'Icon=/usr/bin/Defold/logo.png'
} >> Defold.desktop
# move file to applications
sudo mv Defold.desktop /usr/share/applications/defold.desktop

15
src/applications/docker.sh Executable file
View File

@@ -0,0 +1,15 @@
sudo apt-get update
sudo apt-get install \
apt-transport-https \
ca-certificates \
curl \
gnupg \
lsb-release -y
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo gpg --dearmor -o /usr/share/keyrings/docker-archive-keyring.gpg
echo \
"deb [arch=amd64 signed-by=/usr/share/keyrings/docker-archive-keyring.gpg] https://download.docker.com/linux/ubuntu \
$(lsb_release -cs) stable" | sudo tee /etc/apt/sources.list.d/docker.list > /dev/null
sudo apt-get update
sudo apt-get install docker-ce docker-ce-cli containerd.io docker-compose -y

4
src/applications/firefox.sh Normal file → Executable file
View File

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

View File

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

4
src/applications/ionic.sh Executable file
View File

@@ -0,0 +1,4 @@
# remove older versions if needed
npm uninstall -g ionic
# install ionic
npm install -g @ionic/cli

View File

@@ -1,3 +0,0 @@
curl -sL https://deb.nodesource.com/setup_14.x | sudo -E bash -
./../applications/gcc.sh
sudo apt-get install -y nodejs

0
src/applications/nordVPN.sh Normal file → Executable file
View File

44
src/applications/obs.sh Normal file → Executable file
View File

@@ -1,2 +1,42 @@
sudo apt update
sudo apt install obs-studio
#!/usr/bin/env bash
# Plugin for enabling virtual camera
sudo apt-get install v4l2loopback-dkms
sudo apt install obs-studio -y
sudo apt install -y libobs-dev libopencv-dev language-pack-en wget git build-essential cmake libsimde-dev
sudo -u $SUDO_USER wget https://github.com/microsoft/onnxruntime/releases/download/v1.7.0/onnxruntime-linux-x64-1.7.0.tgz
sudo tar xzvf onnxruntime-linux-x64-1.7.0.tgz --strip-components=1 -C /usr/local/ --wildcards "*/include/*" "*/lib*/"
# Clone and donwload plugin
sudo -u $SUDO_USER mkdir -p Applications
cd Applications
sudo -u $SUDO_USER git clone https://github.com/royshil/obs-backgroundremoval.git
cd obs-backgroundremoval
# There is still a build failure in the plugin for Ubuntu
# Edit cmake and filter files to fix the problem
sed -i 's/find_package(obs-frontend-api Required)/#find_package(obs-frontend-api Required)/g' CMakeLists.txt
sed -i 's/OBS::libobs OBS::obs-frontend-api/obs obs-frontend-api/g' CMakeLists.txt
# add if statement for a function thats not needed on ubuntu
ex /src/background-filter.cpp <<eof
214 insert
#if _WIN32
.
219 insert
#endif
.
xit
eof
# Build the package
sudo -u $SUDO_USER mkdir build && cd build
cmake .. && cmake --build . && sudo cmake --install .
# add links to plugin / add the plugin to user
sudo -u $SUDO_USER mkdir -p ~/.config/obs-studio/plugins/obs-backgroundremoval/bin/64bit
ln -s /usr/local/lib/obs-plugins/obs-backgroundremoval.so ~/.config/obs-studio/plugins/obs-backgroundremoval/bin/64bit/
ln -s /usr/local/share/obs/obs-plugins/obs-backgroundremoval ~/.config/obs-studio/plugins/obs-backgroundremoval/data

View File

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

37
src/applications/postman.sh Executable file
View File

@@ -0,0 +1,37 @@
#!/bin/bash -i
# Get install file
wget https://dl.pstmn.io/download/latest/linux64
# Extract file
sudo tar -xvf linux64 -C /usr/bin
# export postman to env table
if [[ $(which zsh) == "/usr/bin/zsh" ]]; then
sudo -u $SUDO_USER echo '# Postman path' >> ~/.tempzshrc
sudo -u $SUDO_USER echo 'export PATH="$PATH:/usr/bin/Postman"' >> ~/.tempzshrc
fi
# always put in bashrc aswell, so that the user can always rely on the standard shell
sudo -u $SUDO_USER echo '# Postman path' >> ~/.bashrc
sudo -u $SUDO_USER echo 'export PATH="$PATH:/usr/bin/Postman"' >> ~/.bashrc
source ~/.bashrc
# Create file and set info
touch Postman.desktop
{
echo '[Desktop Entry]'
echo 'Name=Postman API Tool'
echo 'GenericName=Postman'
echo 'Comment=Testing API'
echo 'Exec=/usr/bin/Postman/Postman'
echo 'Terminal=false'
echo 'X-MultipleArgs=false'
echo 'Type=Application'
echo 'Icon=/usr/bin/Postman/app/resources/app/assets/icon.png'
echo 'StartupWMClass=Postman'
echo 'StartupNotify=true'
} >> Postman.desktop
# move file to applications
sudo mv Postman.desktop /usr/share/applications/postman.desktop

4
src/applications/slack.sh Normal file → Executable file
View File

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

2
src/applications/spotify.sh Normal file → Executable file
View File

@@ -1,3 +1,3 @@
curl -sS https://download.spotify.com/debian/pubkey_0D811D58.gpg | sudo apt-key add -
curl -sS https://download.spotify.com/debian/pubkey_5E3C45D7B312C643.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

4
src/applications/teams.sh Executable file
View File

@@ -0,0 +1,4 @@
curl https://packages.microsoft.com/keys/microsoft.asc | sudo apt-key add -
sudo sh -c 'echo "deb [arch=amd64] https://packages.microsoft.com/repos/ms-teams stable main" > /etc/apt/sources.list.d/teams.list'
sudo apt update
sudo apt teams

1
src/applications/typescript.sh Executable file
View File

@@ -0,0 +1 @@
npm install typescript -g

View File

2
src/applications/yarn.sh Normal file → Executable file
View File

@@ -1,3 +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
sudo apt-get update && sudo apt-get install yarn -y

View File

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

View File

@@ -1,3 +1,4 @@
wget -O discord.deb "https://discordapp.com/api/download?platform=linux&format=deb"
sudo dpkg -i discord.deb
echo "y" | sudo apt install -f
sudo -u $SUDO_USER wget -O discord.deb "https://discordapp.com/api/download?platform=linux&format=deb"
sudo apt install ./discord-0.0.16.deb -y
sudo apt-cache policy discord

View File

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

View File

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

View File

2
src/importantinstalls/git.sh Executable file
View File

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

31
src/importantinstalls/golang.sh Executable file
View File

@@ -0,0 +1,31 @@
#!/bin/bash -i
# Get the full html and get the link of the button
wget https://go.dev/dl/
# get latest Linux download row
latestversionsh="$(grep -w 'downloadBox' "index.html")"
latestversionsh=$(echo "$latestversionsh" | grep 'linux')
latestversionsh=${latestversionsh#*'href="'}
latestversionsh=${latestversionsh%'">'*}
# Download latest golang version
sudo -u $SUDO_USER wget "https://go.dev"$latestversionsh
# Remove dashes from latest version string
latestversionsh=${latestversionsh#*'/'}
latestversionsh=${latestversionsh#*'/'}
# Remove any previous Go installation then extract the archive
rm -rf /usr/local/go && tar -C /usr/local -xzf $latestversionsh
if [[ $(which zsh) == "/usr/bin/zsh" ]]; then
sudo -u $SUDO_USER echo 'export PATH=$PATH:/usr/local/go/bin # This is the path to the Golang install' >> ~/.zshrc
fi
cat >> ~/.bashrc << EOT
export PATH=$PATH:/usr/local/go/bin # This is the path to the Golang install
EOT
source ~/.bashrc

21
src/importantinstalls/node.sh Executable file
View File

@@ -0,0 +1,21 @@
#!/bin/bash -i
# get nvm package
wget -qO- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.1/install.sh | bash
# export nvm to env table
if [[ $(which zsh) == "/usr/bin/zsh" ]]; then
sudo -u $SUDO_USER echo 'export NVM_DIR="$([ -z "${XDG_CONFIG_HOME-}" ] && printf %s "${HOME}/.nvm" || printf %s "${XDG_CONFIG_HOME}/nvm")"' >> ~/.zshrc
sudo -u $SUDO_USER echo '[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm' >> ~/.zshrc
fi
# always put in bashrc aswell, so that the user can always rely on the standard shell
cat >> ~/.bashrc << EOT
export NVM_DIR="$([ -z "${XDG_CONFIG_HOME-}" ] && printf %s "${HOME}/.nvm" || printf %s "${XDG_CONFIG_HOME}/nvm")"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm
EOT
source ~/.bashrc
# install latest version of node
nvm install node

View File

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

View File

View File

@@ -11,6 +11,6 @@ ProgressBar() {
# program=$(printf "${_program}")
printf "\rProgress : |${fill// /▇}${empty// / }| ${_progress}%%"
printf " Installing ${program} \r"
printf " Installing ${program} \r"
}

View File

@@ -0,0 +1,8 @@
# Oh my zsh manual install
git clone https://github.com/ohmyzsh/ohmyzsh.git ~/.oh-my-zsh
# use the ohmyzsh template as zshrc
cp ~/.oh-my-zsh/templates/zshrc.zsh-template ~/.zshrc
# set zsh as main terminal
chsh -s $(which zsh)

3
src/services/zsh/zsh.sh Normal file
View File

@@ -0,0 +1,3 @@
# install ZSH
sudo apt-get update
sudo apt-get install zsh -y