Compare commits
11 Commits
6a7134147e
...
dev
Author | SHA1 | Date | |
---|---|---|---|
|
9e887fe990 | ||
|
a94a26841c | ||
|
570ee1b4e2 | ||
0843517021 | |||
db18e41874 | |||
|
c5fc379d0f | ||
3044fb774b | |||
2f34a664ba | |||
d85ea6c5d4 | |||
ca247164ea | |||
48937f75bb |
14
install.sh
14
install.sh
@@ -45,8 +45,8 @@ zsh_prompt() {
|
||||
sudo -u $SUDO_USER touch ~/.tempzshrc
|
||||
|
||||
# set up the basics of zsh
|
||||
sh src/services/zsh/zsh.sh
|
||||
sh src/services/zsh/Oh-My-ZSH.sh
|
||||
./src/services/zsh/zsh.sh
|
||||
./src/services/zsh/Oh-My-ZSH.sh
|
||||
fi
|
||||
}
|
||||
|
||||
@@ -158,7 +158,7 @@ install_files() {
|
||||
|
||||
#Reading each line and execute file
|
||||
if ! [ -x "$(command -v $line)" ]; then
|
||||
sh ../importantinstalls/$line.sh
|
||||
./../importantinstalls/$line.sh
|
||||
else
|
||||
echo "$line is already installed"
|
||||
fi
|
||||
@@ -170,7 +170,7 @@ install_files() {
|
||||
|
||||
#Reading each line and execute file
|
||||
if ! [ -x "$(command -v $line)" ]; then
|
||||
sh ../applications/$line.sh
|
||||
./../applications/$line.sh
|
||||
else
|
||||
echo "$line is already installed"
|
||||
fi
|
||||
@@ -202,7 +202,7 @@ install_files() {
|
||||
ProgressBar ${start} ${end} ${line}
|
||||
#Reading each line and execute file
|
||||
if ! [ -x "$(command -v $line)" ]; then
|
||||
sh ../importantinstalls/$line.sh >> /dev/null 2>&1
|
||||
./../importantinstalls/$line.sh >> /dev/null 2>&1
|
||||
fi
|
||||
|
||||
# update progressbar
|
||||
@@ -223,7 +223,7 @@ install_files() {
|
||||
ProgressBar ${start} ${end} ${line}
|
||||
#Reading each line and execute file
|
||||
if ! [ -x "$(command -v $line)" ]; then
|
||||
sh ../applications/$line.sh >> /dev/null 2>&1
|
||||
./../applications/$line.sh >> /dev/null 2>&1
|
||||
fi
|
||||
|
||||
# update progressbar
|
||||
@@ -295,7 +295,7 @@ install_oh_my_zsh() {
|
||||
# run option
|
||||
if [[ ${zshOption,,} = "y" ]]; then
|
||||
# Run Ohmyzsh (ends script)
|
||||
sh services/zsh/Oh-My-ZSH.sh
|
||||
./services/zsh/Oh-My-ZSH.sh
|
||||
fi
|
||||
}
|
||||
|
||||
|
0
src/applications/adb.sh
Normal file → Executable file
0
src/applications/adb.sh
Normal file → Executable file
0
src/applications/chrome.sh
Normal file → Executable file
0
src/applications/chrome.sh
Normal file → Executable file
0
src/applications/firefox.sh
Normal file → Executable file
0
src/applications/firefox.sh
Normal file → Executable file
0
src/applications/ionic.sh
Normal file → Executable file
0
src/applications/ionic.sh
Normal file → Executable file
0
src/applications/nordVPN.sh
Normal file → Executable file
0
src/applications/nordVPN.sh
Normal file → Executable file
44
src/applications/obs.sh
Normal file → Executable file
44
src/applications/obs.sh
Normal file → Executable file
@@ -1,2 +1,42 @@
|
||||
sudo apt update
|
||||
sudo apt install obs-studio -y
|
||||
#!/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
|
||||
|
2
src/applications/postman.sh
Normal file → Executable file
2
src/applications/postman.sh
Normal file → Executable file
@@ -34,4 +34,4 @@ touch Postman.desktop
|
||||
} >> Postman.desktop
|
||||
|
||||
# move file to applications
|
||||
sudo mv Postman.desktop /usr/share/applications/Postman.Desktop
|
||||
sudo mv Postman.desktop /usr/share/applications/postman.desktop
|
0
src/applications/slack.sh
Normal file → Executable file
0
src/applications/slack.sh
Normal file → Executable file
0
src/applications/spotify.sh
Normal file → Executable file
0
src/applications/spotify.sh
Normal file → Executable file
0
src/applications/teams.sh
Normal file → Executable file
0
src/applications/teams.sh
Normal file → Executable file
0
src/applications/typescript.sh
Normal file → Executable file
0
src/applications/typescript.sh
Normal file → Executable file
0
src/applications/vscode.sh
Normal file → Executable file
0
src/applications/vscode.sh
Normal file → Executable file
0
src/applications/yarn.sh
Normal file → Executable file
0
src/applications/yarn.sh
Normal file → Executable file
@@ -1,2 +1,4 @@
|
||||
sudo -u $SUDO_USER wget -O discord.deb "https://discordapp.com/api/download?platform=linux&format=deb"
|
||||
sudo dpkg -i discord.deb
|
||||
|
||||
sudo apt install ./discord-0.0.16.deb -y
|
||||
sudo apt-cache policy discord
|
||||
|
0
src/importantinstalls/gcc.sh
Normal file → Executable file
0
src/importantinstalls/gcc.sh
Normal file → Executable file
@@ -13,13 +13,19 @@ 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 go1.19.1.linux-amd64.tar.gz
|
||||
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
|
||||
|
||||
sudo -u $SUDO_USER echo 'export PATH=$PATH:/usr/local/go/bin # This is the path to the Golang install' >> ~/.bashrc
|
||||
cat >> ~/.bashrc << EOT
|
||||
export PATH=$PATH:/usr/local/go/bin # This is the path to the Golang install
|
||||
EOT
|
||||
|
||||
source ~/.bashrc
|
6
src/importantinstalls/node.sh
Normal file → Executable file
6
src/importantinstalls/node.sh
Normal file → Executable file
@@ -10,8 +10,10 @@ if [[ $(which zsh) == "/usr/bin/zsh" ]]; then
|
||||
fi
|
||||
|
||||
# always put in bashrc aswell, so that the user can always rely on the standard shell
|
||||
sudo -u $SUDO_USER echo 'export NVM_DIR="$([ -z "${XDG_CONFIG_HOME-}" ] && printf %s "${HOME}/.nvm" || printf %s "${XDG_CONFIG_HOME}/nvm")"' >> ~/.bashrc
|
||||
sudo -u $SUDO_USER echo '[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm' >> ~/.bashrc
|
||||
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
|
||||
|
||||
|
0
src/importantinstalls/openjdk.sh
Normal file → Executable file
0
src/importantinstalls/openjdk.sh
Normal file → Executable file
0
src/importantinstalls/php.sh
Normal file → Executable file
0
src/importantinstalls/php.sh
Normal file → Executable file
Reference in New Issue
Block a user