Compare commits
No commits in common. "a52ce34748361cd1b0191ac07464b438d6541224" and "9baedd438f4ecb1615992ffad0dd37c5c65ec425" have entirely different histories.
a52ce34748
...
9baedd438f
36
Makefile
36
Makefile
@ -1,15 +1,15 @@
|
|||||||
# Autogenerated at 31.07.2024 23:40 using ./gen-makefile
|
# Autogenerated at 12.04.2023 19:04 using ./gen-makefile
|
||||||
.DEFAULT_GOAL := help
|
.DEFAULT_GOAL := help
|
||||||
|
|
||||||
#===============================================
|
#===============================================
|
||||||
# Scripts listed in ./install
|
# Scripts listed in ./install
|
||||||
#===============================================
|
#===============================================
|
||||||
|
|
||||||
##apache2: Install apache2 (latest)
|
##apache: Install apache2 (latest)
|
||||||
apache2:
|
apache:
|
||||||
@./install/apache2
|
@./install/apache
|
||||||
|
|
||||||
##apt: Install software from apt
|
##apt: Install bunch of software from apt
|
||||||
apt:
|
apt:
|
||||||
@./install/apt
|
@./install/apt
|
||||||
|
|
||||||
@ -33,7 +33,7 @@ docker:
|
|||||||
dots:
|
dots:
|
||||||
@./install/dots
|
@./install/dots
|
||||||
|
|
||||||
##droidcam: Install droidcam v1.9.0
|
##droidcam: Install droidcam v1.8.2
|
||||||
droidcam:
|
droidcam:
|
||||||
@./install/droidcam
|
@./install/droidcam
|
||||||
|
|
||||||
@ -41,21 +41,21 @@ droidcam:
|
|||||||
droidcam-obs:
|
droidcam-obs:
|
||||||
@./install/droidcam-obs
|
@./install/droidcam-obs
|
||||||
|
|
||||||
##flameshot: Install flameshot (latest)
|
##flameshot-build: [TODO] Build flameshot from src (latest)
|
||||||
flameshot:
|
flameshot-build:
|
||||||
@./install/flameshot
|
@./install/flameshot-build
|
||||||
|
|
||||||
##git: Install git (latest)
|
##git: Install git (latest)
|
||||||
git:
|
git:
|
||||||
@./install/git
|
@./install/git
|
||||||
|
|
||||||
##golang: Install golang v1.21.0
|
##golang: Install golang v1.18.3
|
||||||
golang:
|
golang:
|
||||||
@./install/golang
|
@./install/golang
|
||||||
|
|
||||||
##grub-customizer: Install grub-customizer (latest + ppa)
|
##grubc: Install grub-customizer (latest) + ppa
|
||||||
grub-customizer:
|
grubc:
|
||||||
@./install/grub-customizer
|
@./install/grubc
|
||||||
|
|
||||||
##jbmono: Install JetBrains Mono fonts
|
##jbmono: Install JetBrains Mono fonts
|
||||||
jbmono:
|
jbmono:
|
||||||
@ -109,7 +109,7 @@ omz-clean:
|
|||||||
omz-fancy:
|
omz-fancy:
|
||||||
@./install/omz-fancy
|
@./install/omz-fancy
|
||||||
|
|
||||||
##openvpn: Install openvpn v2.6.3 (src)
|
##openvpn: Install openvpn v2.5.8 (src)
|
||||||
openvpn:
|
openvpn:
|
||||||
@./install/openvpn
|
@./install/openvpn
|
||||||
|
|
||||||
@ -242,18 +242,10 @@ phpstack: php phptools
|
|||||||
# Scripts listed in ./uninstall
|
# Scripts listed in ./uninstall
|
||||||
#===============================================
|
#===============================================
|
||||||
|
|
||||||
##/apache2: Uninstall apache2
|
|
||||||
/apache2:
|
|
||||||
@./uninstall/apache2
|
|
||||||
|
|
||||||
##/docker: Uninstall docker + ppa
|
##/docker: Uninstall docker + ppa
|
||||||
/docker:
|
/docker:
|
||||||
@./uninstall/docker
|
@./uninstall/docker
|
||||||
|
|
||||||
##/grub-customizer: Uninstall grub-customizer with ppa
|
|
||||||
/grub-customizer:
|
|
||||||
@./uninstall/grub-customizer
|
|
||||||
|
|
||||||
##/lite-xl: Uninstall lite-xl
|
##/lite-xl: Uninstall lite-xl
|
||||||
/lite-xl:
|
/lite-xl:
|
||||||
@./uninstall/lite-xl
|
@./uninstall/lite-xl
|
||||||
|
80
helpers
80
helpers
@ -4,40 +4,6 @@ installed() {
|
|||||||
command -v "$1" >/dev/null 2>&1
|
command -v "$1" >/dev/null 2>&1
|
||||||
}
|
}
|
||||||
|
|
||||||
installed2() {
|
|
||||||
dpkg --list | grep -qw "ii $1"
|
|
||||||
}
|
|
||||||
|
|
||||||
apt_install() {
|
|
||||||
sudo apt install -y --autoremove "$*"
|
|
||||||
}
|
|
||||||
|
|
||||||
require() {
|
|
||||||
sw=()
|
|
||||||
for package in "$@"; do
|
|
||||||
if ! installed "$package" && ! installed2 "$package"; then
|
|
||||||
sw+=("$package")
|
|
||||||
fi
|
|
||||||
done
|
|
||||||
if [ ${#sw[@]} -gt 0 ]; then
|
|
||||||
info "This packages will be installed in your system:\n${sw[*]}"
|
|
||||||
apt_install "${sw[*]}"
|
|
||||||
[ $? -gt 0 ] && die "installation cancelled" 201
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
|
|
||||||
require2() {
|
|
||||||
sw=()
|
|
||||||
for package in "$@"; do
|
|
||||||
if ! installed "$package" && ! installed2 "$package"; then
|
|
||||||
sw+=("$package")
|
|
||||||
fi
|
|
||||||
done
|
|
||||||
if [ ${#sw[@]} -gt 0 ]; then
|
|
||||||
die "This packages must be installed in your system:\n${sw[*]}" 200
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
|
|
||||||
title() {
|
title() {
|
||||||
[ "$1" ] && title="$1" || title="$(grep -m 1 -oP "(?<=^##makedesc:\s).*$" ${BASH_SOURCE[1]})"
|
[ "$1" ] && title="$1" || title="$(grep -m 1 -oP "(?<=^##makedesc:\s).*$" ${BASH_SOURCE[1]})"
|
||||||
info
|
info
|
||||||
@ -47,30 +13,23 @@ title() {
|
|||||||
info
|
info
|
||||||
}
|
}
|
||||||
|
|
||||||
unpak_targz() {
|
require() {
|
||||||
require tar
|
if ! installed "$1"; then
|
||||||
tar -xzf "$1" -C "$2"
|
if [ "$2" ]; then
|
||||||
}
|
die "'$1' must to be installed in your system" 200
|
||||||
|
else
|
||||||
symlink() {
|
info "Installing '$1' because it is required to continue"
|
||||||
ln -sf "$1" "$2"
|
sudo apt install "$1"
|
||||||
|
[ $? -gt 0 ] && die "installation cancelled" 201
|
||||||
|
fi
|
||||||
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
download() {
|
download() {
|
||||||
require wget
|
require wget 1
|
||||||
wget "$1" -O "$2"
|
wget "$1" -O "$2"
|
||||||
}
|
}
|
||||||
|
|
||||||
clone() {
|
|
||||||
require git
|
|
||||||
git clone $*
|
|
||||||
}
|
|
||||||
|
|
||||||
clone_quick() {
|
|
||||||
require git
|
|
||||||
git clone $* --depth=1 --single-branch
|
|
||||||
}
|
|
||||||
|
|
||||||
abspath() {
|
abspath() {
|
||||||
echo $(realpath -q "${1/#\~/$HOME}")
|
echo $(realpath -q "${1/#\~/$HOME}")
|
||||||
}
|
}
|
||||||
@ -173,6 +132,7 @@ debug() {
|
|||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
verbose() {
|
verbose() {
|
||||||
print "${BOLD}${IVRB}${RESET}${FYELLOW} $1 "
|
print "${BOLD}${IVRB}${RESET}${FYELLOW} $1 "
|
||||||
}
|
}
|
||||||
@ -195,6 +155,7 @@ warn() {
|
|||||||
|
|
||||||
error() {
|
error() {
|
||||||
print "${BOLD}${BLRED}${FWHITE}${IERROR} Error: ${BRESET}${FLRED} $1 " >&2
|
print "${BOLD}${BLRED}${FWHITE}${IERROR} Error: ${BRESET}${FLRED} $1 " >&2
|
||||||
|
# print_stacktrace
|
||||||
}
|
}
|
||||||
|
|
||||||
fatal() {
|
fatal() {
|
||||||
@ -203,8 +164,19 @@ fatal() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
die() {
|
die() {
|
||||||
error "${1:-halted}"
|
error "$1"
|
||||||
exit ${2:-100}
|
[ "$2" ] && exit $2 || exit 100
|
||||||
|
}
|
||||||
|
|
||||||
|
die_fatal() {
|
||||||
|
fatal "$1"
|
||||||
|
[ "$2" ] && exit $2 || exit 100
|
||||||
|
}
|
||||||
|
|
||||||
|
die_help() {
|
||||||
|
error "$1"
|
||||||
|
[ "$2" ] && is_function "$2".help && $2.help
|
||||||
|
[ "$3" ] && exit $3 || exit 100
|
||||||
}
|
}
|
||||||
|
|
||||||
print_stacktrace() {
|
print_stacktrace() {
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
##makedesc: Install apache2 (latest)
|
##makedesc: Install apache2 (latest)
|
||||||
source `dirname $0`/../helpers || exit 255
|
[ -f `dirname $0`/../helpers ] && source `dirname $0`/../helpers || exit 255
|
||||||
|
|
||||||
title
|
title
|
||||||
|
|
17
install/apt
17
install/apt
@ -1,11 +1,15 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
##makedesc: Install software from apt
|
##makedesc: Install bunch of software from apt
|
||||||
source `dirname $0`/../helpers || exit 255
|
|
||||||
|
|
||||||
title
|
echo
|
||||||
|
echo "==============================================="
|
||||||
|
echo "Installing software from apt..."
|
||||||
|
echo "==============================================="
|
||||||
|
echo
|
||||||
|
|
||||||
sudo apt update && \
|
sudo apt update && \
|
||||||
sudo apt upgrade -y --autoremove && \
|
sudo apt upgrade -y --autoremove
|
||||||
|
|
||||||
sudo apt install -y \
|
sudo apt install -y \
|
||||||
alien \
|
alien \
|
||||||
apt-transport-https \
|
apt-transport-https \
|
||||||
@ -47,10 +51,9 @@ sudo apt update && \
|
|||||||
inotify-tools \
|
inotify-tools \
|
||||||
notify-osd \
|
notify-osd \
|
||||||
fonts-open-sans \
|
fonts-open-sans \
|
||||||
libnotify-bin \
|
libnotify-bin
|
||||||
tree \
|
|
||||||
earlyoom
|
|
||||||
# sqlitebrowser
|
# sqlitebrowser
|
||||||
|
# earlyoom \
|
||||||
# etckeeper \
|
# etckeeper \
|
||||||
# geoclue-2.0 \
|
# geoclue-2.0 \
|
||||||
# gnome-software \
|
# gnome-software \
|
||||||
|
@ -1,17 +1,11 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
##makedesc: Install Canon Pixma MG2500 + ppa
|
##makedesc: Install Canon Pixma MG2500 + ppa
|
||||||
source `dirname $0`/../helpers || exit 255
|
|
||||||
|
|
||||||
title
|
|
||||||
|
|
||||||
sudo add-apt-repository -y ppa:thierry-f/fork-michael-gruz && \
|
|
||||||
sudo apt install -y \
|
|
||||||
cnijfilter-mg2500series \
|
|
||||||
scangearmp-mg2500series
|
|
||||||
|
|
||||||
[ $? = 0 ] && {
|
|
||||||
echo
|
echo
|
||||||
success "Canon Pixma MG2500 installed!"
|
echo "==============================================="
|
||||||
info "Now you must add a new printer in your system."
|
echo "Installing Canon Pixma MG2500 + ppa..."
|
||||||
|
echo "==============================================="
|
||||||
echo
|
echo
|
||||||
}
|
|
||||||
|
sudo add-apt-repository -y ppa:thierry-f/fork-michael-gruz
|
||||||
|
sudo apt install -y cnijfilter-mg2500series scangearmp-mg2500series
|
||||||
|
@ -1,20 +1,14 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
##makedesc: Install google chrome (latest)
|
##makedesc: Install google chrome (latest)
|
||||||
source `dirname $0`/../helpers || exit 255
|
|
||||||
|
echo
|
||||||
|
echo "==============================================="
|
||||||
|
echo "Installing google chrome (latest)..."
|
||||||
|
echo "==============================================="
|
||||||
|
echo
|
||||||
|
|
||||||
# https://t.me/axenov_blog/251
|
# https://t.me/axenov_blog/251
|
||||||
|
|
||||||
title
|
wget "https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb" -O /tmp/google-chrome-stable_current_amd64.deb && \
|
||||||
|
sudo dpkg -i /tmp/google-chrome-stable_current_amd64.deb && \
|
||||||
mkdir -p "$HOME/install"
|
rm /tmp/google-chrome-stable_current_amd64.deb
|
||||||
|
|
||||||
download "https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb" \
|
|
||||||
"$HOME/install/google-chrome.deb" && \
|
|
||||||
sudo dpkg -i "$HOME/install/google-chrome.deb"
|
|
||||||
|
|
||||||
[ $? = 0 ] && {
|
|
||||||
echo
|
|
||||||
success "Google Chrome installed!"
|
|
||||||
google-chrome --version
|
|
||||||
echo
|
|
||||||
}
|
|
||||||
|
@ -1,41 +1,56 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
##makedesc: Install composer (latest)
|
##makedesc: Install composer (latest)
|
||||||
source `dirname $0`/../helpers || exit 255
|
echo
|
||||||
|
echo "==============================================="
|
||||||
|
echo "Installing composer (latest)..."
|
||||||
|
echo "==============================================="
|
||||||
|
echo
|
||||||
|
|
||||||
# https://getcomposer.org/doc/faqs/how-to-install-composer-programmatically.md
|
# https://getcomposer.org/doc/faqs/how-to-install-composer-programmatically.md
|
||||||
|
|
||||||
title
|
installed() {
|
||||||
|
command -v "$1" >/dev/null 2>&1
|
||||||
|
}
|
||||||
|
|
||||||
require php
|
! installed "php" && echo "WARNING: You need php to be installed"
|
||||||
|
|
||||||
if installed "composer"; then
|
if installed "composer"; then
|
||||||
warn "WARNING: Removing current composer to install its actual version"
|
echo "WARNING: Removing current composer to install its actual version"
|
||||||
sudo apt remove -y --autoremove composer
|
sudo apt remove -y --autoremove composer
|
||||||
sudo rm -f \
|
sudo rm -f $HOME/.local/bin/composer
|
||||||
"$HOME/.local/bin/composer" \
|
sudo rm -f /bin/composer
|
||||||
/bin/composer \
|
sudo rm -f /usr/bin/composer
|
||||||
/usr/bin/composer \
|
sudo rm -f /usr/local/bin/composer
|
||||||
/usr/local/bin/composer \
|
sudo rm -f /usr/src/composer
|
||||||
/usr/src/composer \
|
rm $HOME/.local/bin/composer
|
||||||
"$HOME/.local/bin/composer"
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
mkdir -p "$HOME/install" "$HOME/.local/bin"
|
mkdir -p $HOME/install $HOME/.local/bin
|
||||||
download "https://getcomposer.org/installer" "$HOME/install/composer-setup.php" && \
|
cd $HOME/install
|
||||||
php "$HOME/install/composer-setup.php" --install-dir="$HOME/.local/bin/composer"
|
|
||||||
|
EXPECTED_CHECKSUM="$(php -r 'copy("https://composer.github.io/installer.sig", "php://stdout");')"
|
||||||
|
# php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');"
|
||||||
|
wget https://getcomposer.org/installer -O composer-setup.php
|
||||||
|
ACTUAL_CHECKSUM="$(php -r "echo hash_file('sha384', 'composer-setup.php');")"
|
||||||
|
if [ "$EXPECTED_CHECKSUM" != "$ACTUAL_CHECKSUM" ]; then
|
||||||
|
>&2 echo 'ERROR: Invalid installer checksum'
|
||||||
|
rm composer-setup.php
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
php composer-setup.php --quiet
|
||||||
|
mv -f $HOME/install/composer.phar $HOME/.local/bin/composer
|
||||||
|
cd - >/dev/null
|
||||||
|
|
||||||
[ $? = 0 ] && {
|
|
||||||
COMPOSER_GLOBAL_HOME="$($HOME/.local/bin/composer config -g home)"
|
COMPOSER_GLOBAL_HOME="$($HOME/.local/bin/composer config -g home)"
|
||||||
NEWPATH="export PATH=\"$COMPOSER_GLOBAL_HOME/vendor/bin:\${PATH}\""
|
NEWPATH="export PATH=\"$COMPOSER_GLOBAL_HOME/vendor/bin:\${PATH}\""
|
||||||
cat "$HOME/.profile" | grep -qoh "$NEWPATH" || {
|
cat "${HOME}/.profile" | grep -qoh "$NEWPATH" || {
|
||||||
$NEWPATH
|
$NEWPATH
|
||||||
echo "$NEWPATH" >> "$HOME/.profile"
|
echo "$NEWPATH" >> "${HOME}/.profile"
|
||||||
}
|
}
|
||||||
|
source "${HOME}/.profile"
|
||||||
|
|
||||||
echo
|
echo
|
||||||
success "composer installed!"
|
echo "Finish!"
|
||||||
composer --version
|
composer --version
|
||||||
echo
|
echo
|
||||||
}
|
|
||||||
|
|
||||||
source "$HOME/.profile"
|
|
||||||
|
@ -1,35 +1,43 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
##makedesc: Install docker (latest) + docker-compose (latest) + ppa
|
##makedesc: Install docker (latest) + docker-compose (latest) + ppa
|
||||||
source `dirname $0`/../helpers || exit 255
|
|
||||||
|
echo
|
||||||
|
echo "==============================================="
|
||||||
|
echo "Installing docker (latest)..."
|
||||||
|
echo "==============================================="
|
||||||
|
echo
|
||||||
|
|
||||||
# https://docs.docker.com/engine/install/ubuntu/
|
# https://docs.docker.com/engine/install/ubuntu/
|
||||||
|
|
||||||
title
|
sudo apt install -y \
|
||||||
|
ca-certificates \
|
||||||
require ca-certificates
|
curl \
|
||||||
require curl
|
gnupg \
|
||||||
require gnupg
|
lsb-release
|
||||||
require lsb-release
|
|
||||||
|
|
||||||
sudo mkdir -p /etc/apt/keyrings
|
sudo mkdir -p /etc/apt/keyrings
|
||||||
curl -fsSL https://download.docker.com/linux/ubuntu/gpg \
|
curl -fsSL https://download.docker.com/linux/ubuntu/gpg \
|
||||||
| sudo gpg --dearmor -o /etc/apt/keyrings/docker.gpg && \
|
| sudo gpg --dearmor -o /etc/apt/keyrings/docker.gpg
|
||||||
sudo chmod a+r /etc/apt/keyrings/docker.gpg && \
|
|
||||||
|
sudo chmod a+r /etc/apt/keyrings/docker.gpg
|
||||||
|
|
||||||
echo "deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.gpg] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable" \
|
echo "deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.gpg] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable" \
|
||||||
| sudo tee /etc/apt/sources.list.d/docker.list > /dev/null && \
|
| sudo tee /etc/apt/sources.list.d/docker.list > /dev/null
|
||||||
sudo apt update && \
|
|
||||||
|
sudo apt update
|
||||||
sudo apt install -y --autoremove \
|
sudo apt install -y --autoremove \
|
||||||
docker-ce \
|
docker-ce \
|
||||||
docker-ce-cli \
|
docker-ce-cli \
|
||||||
containerd.io \
|
containerd.io \
|
||||||
docker-compose-plugin && \
|
docker-compose-plugin
|
||||||
|
|
||||||
sudo usermod -aG docker $(whoami)
|
sudo usermod -aG docker $(whoami)
|
||||||
|
|
||||||
[ $? = 0 ] && {
|
sudo cp ../dotfiles/etc/docker/daemon.json /etc/docker/daemon.json
|
||||||
|
|
||||||
echo
|
echo
|
||||||
success "Docker installed!"
|
echo "Finish!"
|
||||||
info "Probably, you need to relogin to apply 'docker' group."
|
|
||||||
info "Your ones currently are: $(groups)"
|
|
||||||
docker --version
|
docker --version
|
||||||
|
echo "Probably, you need to relogin to apply 'docker' group."
|
||||||
|
echo "Your ones currently are: $(groups)"
|
||||||
echo
|
echo
|
||||||
}
|
|
||||||
|
27
install/dots
27
install/dots
@ -1,22 +1,25 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
##makedesc: Install dotfiles
|
##makedesc: Install dotfiles
|
||||||
source `dirname $0`/../helpers || exit 255
|
|
||||||
|
|
||||||
title
|
echo
|
||||||
|
echo "==============================================="
|
||||||
|
echo "Installing dotfiles..."
|
||||||
|
echo "==============================================="
|
||||||
|
echo
|
||||||
|
|
||||||
install_dir="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
|
install_dir="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
|
||||||
dotfiles_src_dir="`dirname $install_dir`/dotfiles"
|
dotfiles_src_dir="`dirname $install_dir`/dotfiles"
|
||||||
postfix=".bak-`date '+%Y%m%d%H%M'`"
|
postfix=".bak-`date '+%Y%m%d%H%M'`"
|
||||||
|
|
||||||
install_dotfile() {
|
install() {
|
||||||
mv "$HOME/$1" "$HOME/$1$postfix"
|
echo "mv "$HOME/$1" "$HOME/$1$postfix""
|
||||||
cp "$dotfiles_src_dir/$1" "$HOME/$1"
|
echo "cp "$dotfiles_src_dir/$1" "$HOME/$1""
|
||||||
success "- $1"
|
echo "- $1"
|
||||||
}
|
}
|
||||||
|
|
||||||
install_dotfile ".bash_aliases" && \
|
install .bash_aliases
|
||||||
install_dotfile ".profile" && \
|
install .profile
|
||||||
install_dotfile ".bashrc" && \
|
install .bashrc
|
||||||
install_dotfile ".gitconfig" && \
|
install .gitconfig
|
||||||
install_dotfile ".gitignore" && \
|
install .gitignore
|
||||||
install_dotfile ".git_aliases"
|
install .git_aliases
|
||||||
|
@ -1,22 +1,21 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
##makedesc: Install droidcam v1.9.0
|
##makedesc: Install droidcam v1.8.2
|
||||||
source `dirname $0`/../helpers || exit 255
|
|
||||||
|
|
||||||
# https://www.dev47apps.com/droidcam/linux/
|
# https://www.dev47apps.com/droidcam/linux/
|
||||||
|
|
||||||
title
|
|
||||||
|
|
||||||
mkdir -p "$HOME/install/droidcam"
|
|
||||||
|
|
||||||
download "https://files.dev47apps.net/linux/droidcam_1.9.0.zip" "$HOME/install/droidcam.zip" && \
|
|
||||||
unzip -oq "$HOME/install/droidcam.zip" -d "$HOME/install/droidcam" && \
|
|
||||||
cd "$HOME/install/droidcam" && \
|
|
||||||
sudo ./install-client
|
|
||||||
|
|
||||||
[ $? = 0 ] && {
|
|
||||||
echo
|
echo
|
||||||
success "droidcam installed!"
|
echo "==============================================="
|
||||||
info "Don't forget to install the android app:"
|
echo "Installing droidcam v1.8.2..."
|
||||||
info "https://play.google.com/store/apps/developer?id=Dev47Apps"
|
echo "==============================================="
|
||||||
|
echo
|
||||||
|
|
||||||
|
mkdir -p ~/install/droidcam
|
||||||
|
wget -O /tmp/droidcam.zip https://files.dev47apps.net/linux/droidcam_1.8.2.zip
|
||||||
|
unzip -oq /tmp/droidcam.zip -d ~/install/droidcam
|
||||||
|
rm -rf /tmp/droidcam.zip
|
||||||
|
cd ~/install/droidcam && sudo ./install-client
|
||||||
|
|
||||||
|
echo
|
||||||
|
echo "Finish!"
|
||||||
|
echo "Don't forget to install android app: https://play.google.com/store/apps/developer?id=Dev47Apps"
|
||||||
echo
|
echo
|
||||||
}
|
|
||||||
|
@ -15,11 +15,11 @@ echo
|
|||||||
# command -v "obs" >/dev/null 2>&1 || echo 'You need to install obs first!'
|
# command -v "obs" >/dev/null 2>&1 || echo 'You need to install obs first!'
|
||||||
command -v "obs-studio" >/dev/null 2>&1 || echo 'You need to install obs-studio first!'
|
command -v "obs-studio" >/dev/null 2>&1 || echo 'You need to install obs-studio first!'
|
||||||
|
|
||||||
mkdir -p $HOMEinstall/droidcam-obs
|
mkdir -p ~/install/droidcam-obs
|
||||||
wget -O /tmp/droidcam-obs.zip https://files.dev47apps.net/obs/droidcam_obs_1.5.1_linux.zip
|
wget -O /tmp/droidcam-obs.zip https://files.dev47apps.net/obs/droidcam_obs_1.5.1_linux.zip
|
||||||
unzip -oq /tmp/droidcam-obs.zip -d $HOMEinstall/droidcam-obs
|
unzip -oq /tmp/droidcam-obs.zip -d ~/install/droidcam-obs
|
||||||
rm -rf /tmp/droidcam-obs.zip
|
rm -rf /tmp/droidcam-obs.zip
|
||||||
cd $HOMEinstall/droidcam-obs && ./install.sh
|
cd ~/install/droidcam-obs && ./install.sh
|
||||||
sudo modprobe v4l2loopback video_nr=2 card_label="OBS Virtual Camera"
|
sudo modprobe v4l2loopback video_nr=2 card_label="OBS Virtual Camera"
|
||||||
|
|
||||||
echo
|
echo
|
||||||
|
@ -1,15 +0,0 @@
|
|||||||
#!/bin/bash
|
|
||||||
##makedesc: Install flameshot (latest)
|
|
||||||
source `dirname $0`/../helpers || exit 255
|
|
||||||
|
|
||||||
title
|
|
||||||
|
|
||||||
sudo apt install -y --autoremove flameshot && \
|
|
||||||
sudo systemctl restart flameshot
|
|
||||||
|
|
||||||
[ $? = 0 ] && {
|
|
||||||
echo
|
|
||||||
success "flameshot installed!"
|
|
||||||
flameshot -v
|
|
||||||
echo
|
|
||||||
}
|
|
8
install/flameshot-build
Executable file
8
install/flameshot-build
Executable file
@ -0,0 +1,8 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
##makedesc: [TODO] Build flameshot from src (latest)
|
||||||
|
|
||||||
|
echo
|
||||||
|
echo "==============================================="
|
||||||
|
echo "Installing flameshot (latest)..."
|
||||||
|
echo "==============================================="
|
||||||
|
echo
|
37
install/git
37
install/git
@ -1,38 +1,43 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
##makedesc: Install git (latest)
|
##makedesc: Install git (latest)
|
||||||
source `dirname $0`/../helpers || exit 255
|
|
||||||
|
|
||||||
title
|
echo
|
||||||
|
echo "==============================================="
|
||||||
|
echo "Installing git (latest)..."
|
||||||
|
echo "==============================================="
|
||||||
|
echo
|
||||||
|
|
||||||
require make
|
installed() {
|
||||||
|
command -v "$1" >/dev/null 2>&1
|
||||||
|
}
|
||||||
|
|
||||||
|
! installed make && sudo apt install -y make
|
||||||
|
|
||||||
if installed git; then
|
if installed git; then
|
||||||
if [ -d "$HOME/install/git" ]; then
|
if [ -d "${HOME}/install/git" ]; then
|
||||||
cd "$HOME/install/git" && \
|
cd "${HOME}/install/git" && \
|
||||||
git pull
|
git pull
|
||||||
else
|
else
|
||||||
clone "https://github.com/git/git.git" "$HOME/install/git" --depth=1 --single-branch && \
|
git clone https://github.com/git/git.git --depth=1 "${HOME}/install/git" && \
|
||||||
cd "$HOME/install/git"
|
cd "${HOME}/install/git"
|
||||||
fi
|
fi
|
||||||
sudo make prefix=/usr/local all && \
|
sudo make prefix=/usr/local all && \
|
||||||
sudo make prefix=/usr/local install
|
sudo make prefix=/usr/local install
|
||||||
else
|
else
|
||||||
require wget
|
! installed wget && sudo apt install -y wget
|
||||||
mkdir -p "$HOME/install/git"
|
[ -d "${HOME}/install/git" ] || mkdir -p "${HOME}/install/git"
|
||||||
download "https://github.com/git/git/archive/master.zip" "/tmp/git.zip" && \
|
wget https://github.com/git/git/archive/master.zip -O /tmp/git.zip && \
|
||||||
unzip -oq "/tmp/git.zip" -d "$HOME/install/git" && \
|
unzip -oq /tmp/git.zip -d "${HOME}/install/git" && \
|
||||||
rm /tmp/git.zip && \
|
rm /tmp/git.zip && \
|
||||||
cd "$HOME/install/git/git-master" && \
|
cd "${HOME}/install/git/git-master" && \
|
||||||
sudo make prefix=/usr/local all && \
|
sudo make prefix=/usr/local all && \
|
||||||
sudo make prefix=/usr/local install && \
|
sudo make prefix=/usr/local install && \
|
||||||
cd - && \
|
cd - && \
|
||||||
rm -rf git && \
|
rm -rf git && \
|
||||||
clone "https://github.com/git/git.git" "$HOME/install/git" --depth=1 --single-branch
|
git clone https://github.com/git/git.git --depth=1 "${HOME}/install/git"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
[ $? = 0 ] && {
|
|
||||||
echo
|
echo
|
||||||
success "git installed!"
|
echo "Finish!"
|
||||||
git --version
|
git --version
|
||||||
echo
|
echo
|
||||||
}
|
|
||||||
|
@ -1,28 +1,30 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
##makedesc: Install golang v1.21.0
|
##makedesc: Install golang v1.18.3
|
||||||
source `dirname $0`/../helpers || exit 255
|
|
||||||
|
|
||||||
# https://go.dev/dl/
|
# https://go.dev/dl/
|
||||||
# https://golang.org/doc/install
|
# https://golang.org/doc/install
|
||||||
# https://www.vultr.com/docs/install-the-latest-version-of-golang-on-ubuntu
|
# https://www.vultr.com/docs/install-the-latest-version-of-golang-on-ubuntu
|
||||||
|
|
||||||
[ $1 ] && VERSION="$1" || VERSION="1.21.6"
|
|
||||||
title "Installing golang v$VERSION..."
|
|
||||||
|
|
||||||
|
[ $1 ] && VERSION="$1" || VERSION="1.18.3"
|
||||||
FILE="go$VERSION.linux-amd64.tar.gz"
|
FILE="go$VERSION.linux-amd64.tar.gz"
|
||||||
sudo rm -rf /usr/local/go && \
|
|
||||||
download "https://golang.org/dl/$FILE" "/tmp/$FILE" && \
|
|
||||||
sudo tar -xzf "/tmp/$FILE" -C /usr/local && \
|
|
||||||
rm -rf "/tmp/$FILE" && \
|
|
||||||
sudo chown $USER: -R /usr/local/go && \
|
|
||||||
echo 'export PATH="/usr/local/go/bin:$PATH"' >> "$HOME/.profile" && \
|
|
||||||
echo "export GOPATH=\"\$HOME/.go\"" >> "$HOME/.profile" && \
|
|
||||||
source ~/.profile
|
|
||||||
|
|
||||||
[ $? = 0 ] && {
|
|
||||||
echo
|
echo
|
||||||
success "golang installed!"
|
echo "==============================================="
|
||||||
info "NOTE: now run 'source ~/.profile' to apply new env vars"
|
echo "Installing golang v$VERSION..."
|
||||||
|
echo "==============================================="
|
||||||
|
echo
|
||||||
|
|
||||||
|
sudo rm -rf /usr/local/go && \
|
||||||
|
wget "https://golang.org/dl/$FILE" -O /tmp/$FILE && \
|
||||||
|
sudo tar -xzf /tmp/$FILE -C /usr/local && \
|
||||||
|
rm -rf /tmp/$FILE && \
|
||||||
|
sudo chown $USER: -R /usr/local/go && \
|
||||||
|
echo 'export PATH="$PATH:/usr/local/go/bin\"' >> $HOME/.profile && \
|
||||||
|
echo 'export GOPATH="$HOME/.go"' >> $HOME/.profile
|
||||||
|
|
||||||
|
echo
|
||||||
|
echo "Finish!"
|
||||||
go version
|
go version
|
||||||
|
echo "NOTE: now run 'source ~/.profile' to apply new env vars"
|
||||||
echo
|
echo
|
||||||
}
|
|
||||||
|
@ -1,15 +0,0 @@
|
|||||||
#!/bin/bash
|
|
||||||
##makedesc: Install grub-customizer (latest + ppa)
|
|
||||||
source `dirname $0`/../helpers || exit 255
|
|
||||||
|
|
||||||
title
|
|
||||||
|
|
||||||
sudo add-apt-repository -y ppa:danielrichter2007/grub-customizer && \
|
|
||||||
sudo apt install -y --autoremove grub-customizer
|
|
||||||
|
|
||||||
[ $? = 0 ] && {
|
|
||||||
echo
|
|
||||||
success "grub-customizer installed!"
|
|
||||||
grub-customizer -v
|
|
||||||
echo
|
|
||||||
}
|
|
11
install/grubc
Executable file
11
install/grubc
Executable file
@ -0,0 +1,11 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
##makedesc: Install grub-customizer (latest) + ppa
|
||||||
|
|
||||||
|
echo
|
||||||
|
echo "==============================================="
|
||||||
|
echo "Installing grub-customizer (latest)..."
|
||||||
|
echo "==============================================="
|
||||||
|
echo
|
||||||
|
|
||||||
|
sudo add-apt-repository -y ppa:danielrichter2007/grub-customizer
|
||||||
|
sudo apt install -y --autoremove grub-customizer
|
@ -1,14 +1,14 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
##makedesc: Install JetBrains Mono fonts
|
##makedesc: Install JetBrains Mono fonts
|
||||||
source `dirname $0`/../helpers || exit 255
|
[ -f `dirname $0`/../helpers ] && source `dirname $0`/../helpers || exit 255
|
||||||
|
|
||||||
# https://www.jetbrains.com/lp/mono/#how-to-install
|
# https://www.jetbrains.com/lp/mono/#how-to-install
|
||||||
|
|
||||||
title
|
title
|
||||||
|
|
||||||
require unzip
|
require unzip
|
||||||
|
|
||||||
mkdir -p "$HOME/install/jbmono" "$HOME/.local/share/fonts/"
|
mkdir -p "$HOME/install/jbmono" "$HOME/.local/share/fonts/"
|
||||||
|
|
||||||
download "https://download.jetbrains.com/fonts/JetBrainsMono-2.304.zip" "$HOME/install/jbmono.zip" && \
|
download "https://download.jetbrains.com/fonts/JetBrainsMono-2.304.zip" "$HOME/install/jbmono.zip" && \
|
||||||
unzip -oj "$HOME/install/jbmono.zip" "fonts/ttf/*.ttf" -d "$HOME/.local/share/fonts/" && \
|
unzip -oj "$HOME/install/jbmono.zip" "fonts/ttf/*.ttf" -d "$HOME/.local/share/fonts/" && \
|
||||||
fc-cache -vf "$HOME/.local/share/fonts/"
|
fc-cache -vf "$HOME/.local/share/fonts/"
|
||||||
|
@ -1,9 +1,14 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
##makedesc: Install KDE Backports
|
##makedesc: Install KDE Backports
|
||||||
source `dirname $0`/../helpers || exit 255
|
|
||||||
|
|
||||||
title
|
echo
|
||||||
|
echo "==============================================="
|
||||||
|
echo "Installing KDE Backports..."
|
||||||
|
echo "==============================================="
|
||||||
|
echo
|
||||||
|
|
||||||
sudo add-apt-repository -y ppa:kubuntu-ppa/backports && \
|
sudo add-apt-repository -y ppa:kubuntu-ppa/backports
|
||||||
sudo apt update && \
|
# sudo add-apt-repository -y ppa:kubuntu-ppa/backports-extra
|
||||||
|
sudo apt update
|
||||||
|
# sudo pkcon update
|
||||||
sudo apt full-upgrade
|
sudo apt full-upgrade
|
||||||
|
@ -1,31 +1,37 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
##makedesc: Install openvpn v2.6.3 (src)
|
##makedesc: Install openvpn v2.5.8 (src)
|
||||||
source `dirname $0`/../helpers || exit 255
|
|
||||||
|
|
||||||
# https://openvpn.net/community-downloads/
|
# https://openvpn.net/community-downloads/
|
||||||
# https://openvpn.net/community-resources/installing-openvpn/
|
# https://openvpn.net/community-resources/installing-openvpn/
|
||||||
|
|
||||||
[ "$1" ] && OVPNVER="$1" || OVPNVER='2.6.3'
|
[ $1 ] && OVPNVER="$1" || OVPNVER='2.5.8'
|
||||||
|
|
||||||
title "Installing openvpn v${OVPNVER} (src)..."
|
echo
|
||||||
|
echo "==============================================="
|
||||||
|
echo "Installing openvpn v${OVPNVER} (src)..."
|
||||||
|
echo "==============================================="
|
||||||
|
echo
|
||||||
|
|
||||||
require libssl-dev \
|
set -ex
|
||||||
|
|
||||||
|
sudo apt install -y \
|
||||||
|
libssl-dev \
|
||||||
liblzo2-dev \
|
liblzo2-dev \
|
||||||
libpam0g-dev
|
libpam0g-dev
|
||||||
|
|
||||||
mkdir -p "$HOME/install/"
|
mkdir -p "${HOME}/install/"
|
||||||
download "https://swupdate.openvpn.org/community/releases/openvpn-${OVPNVER}.tar.gz" "$HOME/install/openvpn-${OVPNVER}.tar.gz" && \
|
wget "https://swupdate.openvpn.org/community/releases/openvpn-${OVPNVER}.tar.gz" \
|
||||||
unpak_targz "$HOME/install/openvpn-${OVPNVER}.tar.gz" "$HOME/install/" && \
|
-O "/tmp/openvpn-${OVPNVER}.tar.gz"
|
||||||
cd "$HOME/install/openvpn-${OVPNVER}" && \
|
tar -xzf "/tmp/openvpn-${OVPNVER}.tar.gz" -C "${HOME}/install/"
|
||||||
|
cd "${HOME}/install/openvpn-${OVPNVER}"
|
||||||
sudo ./configure && \
|
sudo ./configure && \
|
||||||
sudo make && \
|
sudo make && \
|
||||||
sudo make install &&
|
sudo make install &&
|
||||||
apt_install network-manager-openvpn \
|
sudo apt install -y \
|
||||||
|
network-manager-openvpn \
|
||||||
network-manager-openvpn-gnome
|
network-manager-openvpn-gnome
|
||||||
|
|
||||||
[ $? = 0 ] && {
|
|
||||||
echo
|
echo
|
||||||
success "openvpn installed!"
|
echo "Finish!"
|
||||||
openvpn --version
|
openvpn --version
|
||||||
echo
|
echo
|
||||||
}
|
|
||||||
|
@ -1,27 +1,34 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
##makedesc: Install papirus-icon-theme (latest)
|
##makedesc: Install papirus-icon-theme (latest)
|
||||||
source `dirname $0`/../helpers || exit 255
|
|
||||||
|
|
||||||
title
|
|
||||||
|
|
||||||
mkdir -p "$HOME/install/papirus-icon-theme" "$HOME/.local/share/icons/"
|
|
||||||
|
|
||||||
if installed git; then
|
|
||||||
clone_quick https://github.com/PapirusDevelopmentTeam/papirus-icon-theme.git "$HOME/install/"
|
|
||||||
else
|
|
||||||
download https://github.com/PapirusDevelopmentTeam/papirus-icon-theme/archive/refs/heads/master.zip -O "$HOME/install/papirus-icon-theme.zip" && \
|
|
||||||
unzip -oq "$HOME/install/papirus-icon-theme.zip" -d "$HOME/install/papirus-icon-theme" && \
|
|
||||||
rm -f "$HOME/install/papirus-icon-theme.zip"
|
|
||||||
fi
|
|
||||||
|
|
||||||
symlink "$HOME/install/papirus-icon-theme/Papirus" "$HOME/.local/share/icons/Papirus" && \
|
|
||||||
symlink "$HOME/install/papirus-icon-theme/Papirus-Dark" "$HOME/.local/share/icons/Papirus-Dark" && \
|
|
||||||
symlink "$HOME/install/papirus-icon-theme/Papirus-Light" "$HOME/.local/share/icons/Papirus-Light"
|
|
||||||
|
|
||||||
[ $? = 0 ] && {
|
|
||||||
echo
|
echo
|
||||||
success "Papirus icons installed!"
|
echo "==============================================="
|
||||||
info "You can find them in $HOME/.local/share/icons/"
|
echo "Installing papirus-icon-theme (latest)..."
|
||||||
|
echo "==============================================="
|
||||||
echo
|
echo
|
||||||
|
|
||||||
|
installed() {
|
||||||
|
command -v "$1" >/dev/null 2>&1
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if installed git; then
|
||||||
|
mkdir -p "${HOME}/install/"
|
||||||
|
git clone https://github.com/PapirusDevelopmentTeam/papirus-icon-theme.git "${HOME}/install/papirus-icon-theme" --depth=1 --single-branch
|
||||||
|
else
|
||||||
|
! installed wget && sudo apt install -y wget
|
||||||
|
mkdir -p "${HOME}/install/papirus-icon-theme"
|
||||||
|
wget https://github.com/PapirusDevelopmentTeam/papirus-icon-theme/archive/refs/heads/master.zip -O "${HOME}/install/papirus-icon-theme.zip"
|
||||||
|
unzip -oq "${HOME}/install/papirus-icon-theme.zip" -d "${HOME}/install/papirus-icon-theme"
|
||||||
|
rm -f "${HOME}/install/papirus-icon-theme.zip"
|
||||||
|
fi
|
||||||
|
|
||||||
|
mkdir -p "${HOME}/.local/share/icons/"
|
||||||
|
ln -sf "${HOME}/install/papirus-icon-theme/Papirus" "${HOME}/.local/share/icons/Papirus"
|
||||||
|
ln -sf "${HOME}/install/papirus-icon-theme/Papirus-Dark" "${HOME}/.local/share/icons/Papirus-Dark"
|
||||||
|
ln -sf "${HOME}/install/papirus-icon-theme/Papirus-Light" "${HOME}/.local/share/icons/Papirus-Light"
|
||||||
|
|
||||||
|
echo
|
||||||
|
echo "Finish! Don't forget to change current icon theme."
|
||||||
|
echo "You can find them here:"
|
||||||
|
echo -e "\t${HOME}/.local/share/icons/"
|
||||||
|
echo
|
||||||
|
@ -1,14 +1,16 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
##makedesc: Install postgresql (latest) and php-pgsql (if php is installed)
|
##makedesc: Install postgresql (latest) and php-pgsql (if php is installed)
|
||||||
source `dirname $0`/../helpers || exit 255
|
|
||||||
|
|
||||||
title
|
echo
|
||||||
|
echo "==============================================="
|
||||||
|
echo "Installing postgresql (latest)..."
|
||||||
|
echo "==============================================="
|
||||||
|
echo
|
||||||
|
|
||||||
require postgresql postgresql-contrib && \
|
installed() {
|
||||||
sudo service postgresql restart && \
|
command -v "$1" >/dev/null 2>&1
|
||||||
{
|
|
||||||
echo
|
|
||||||
success "openvpn installed!"
|
|
||||||
postgres --version
|
|
||||||
echo
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
sudo apt install -y --autoremove postgresql postgresql-contrib
|
||||||
|
sudo service postgresql restart
|
||||||
|
installed 'php' && sudo apt install -y --autoremove php-pgsql
|
||||||
|
@ -16,11 +16,11 @@ installed() {
|
|||||||
|
|
||||||
COMPOSER_GLOBAL_HOME="$(composer config -g home)"
|
COMPOSER_GLOBAL_HOME="$(composer config -g home)"
|
||||||
NEWPATH="export PATH=\"$COMPOSER_GLOBAL_HOME/vendor/bin:\${PATH}\""
|
NEWPATH="export PATH=\"$COMPOSER_GLOBAL_HOME/vendor/bin:\${PATH}\""
|
||||||
cat "$HOME/.profile" | grep -qoh "$NEWPATH" || {
|
cat "${HOME}/.profile" | grep -qoh "$NEWPATH" || {
|
||||||
$NEWPATH
|
$NEWPATH
|
||||||
echo "$NEWPATH" >> "$HOME/.profile"
|
echo "$NEWPATH" >> "${HOME}/.profile"
|
||||||
}
|
}
|
||||||
source "$HOME/.profile"
|
source "${HOME}/.profile"
|
||||||
|
|
||||||
composer global require vimeo/psalm --dev
|
composer global require vimeo/psalm --dev
|
||||||
|
|
||||||
|
@ -16,11 +16,11 @@ installed() {
|
|||||||
! installed 'make' && sudo apt install -y make
|
! installed 'make' && sudo apt install -y make
|
||||||
! installed 'wget' && sudo apt install -y wget
|
! installed 'wget' && sudo apt install -y wget
|
||||||
|
|
||||||
[ -d "$HOME/install/php-spx" ] || mkdir -p "$HOME/install/php-spx"
|
[ -d "${HOME}/install/php-spx" ] || mkdir -p "${HOME}/install/php-spx"
|
||||||
wget https://github.com/NoiseByNorthwest/php-spx/archive/refs/heads/release/latest.zip -O /tmp/php-spx.zip \
|
wget https://github.com/NoiseByNorthwest/php-spx/archive/refs/heads/release/latest.zip -O /tmp/php-spx.zip \
|
||||||
&& unzip -oq /tmp/php-spx.zip -d "$HOME/install/php-spx" \
|
&& unzip -oq /tmp/php-spx.zip -d "${HOME}/install/php-spx" \
|
||||||
&& rm /tmp/php-spx.zip \
|
&& rm /tmp/php-spx.zip \
|
||||||
&& cd "$HOME/install/php-spx/php-spx-release-latest" \
|
&& cd "${HOME}/install/php-spx/php-spx-release-latest" \
|
||||||
&& phpize \
|
&& phpize \
|
||||||
&& ./configure \
|
&& ./configure \
|
||||||
&& make \
|
&& make \
|
||||||
|
@ -16,11 +16,11 @@ installed() {
|
|||||||
|
|
||||||
COMPOSER_GLOBAL_HOME="$(composer config -g home)"
|
COMPOSER_GLOBAL_HOME="$(composer config -g home)"
|
||||||
NEWPATH="export PATH=\"$COMPOSER_GLOBAL_HOME/vendor/bin:\${PATH}\""
|
NEWPATH="export PATH=\"$COMPOSER_GLOBAL_HOME/vendor/bin:\${PATH}\""
|
||||||
cat "$HOME/.profile" | grep -qoh "$NEWPATH" || {
|
cat "${HOME}/.profile" | grep -qoh "$NEWPATH" || {
|
||||||
$NEWPATH
|
$NEWPATH
|
||||||
echo "$NEWPATH" >> "$HOME/.profile"
|
echo "$NEWPATH" >> "${HOME}/.profile"
|
||||||
}
|
}
|
||||||
source "$HOME/.profile"
|
source "${HOME}/.profile"
|
||||||
|
|
||||||
composer global require squizlabs/php_codesniffer --dev
|
composer global require squizlabs/php_codesniffer --dev
|
||||||
composer global require friendsofphp/php-cs-fixer --dev
|
composer global require friendsofphp/php-cs-fixer --dev
|
||||||
|
@ -16,11 +16,11 @@ installed() {
|
|||||||
|
|
||||||
COMPOSER_GLOBAL_HOME="$(composer config -g home)"
|
COMPOSER_GLOBAL_HOME="$(composer config -g home)"
|
||||||
NEWPATH="export PATH=\"$COMPOSER_GLOBAL_HOME/vendor/bin:\${PATH}\""
|
NEWPATH="export PATH=\"$COMPOSER_GLOBAL_HOME/vendor/bin:\${PATH}\""
|
||||||
cat "$HOME/.profile" | grep -qoh "$NEWPATH" || {
|
cat "${HOME}/.profile" | grep -qoh "$NEWPATH" || {
|
||||||
$NEWPATH
|
$NEWPATH
|
||||||
echo "$NEWPATH" >> "$HOME/.profile"
|
echo "$NEWPATH" >> "${HOME}/.profile"
|
||||||
}
|
}
|
||||||
source "$HOME/.profile"
|
source "${HOME}/.profile"
|
||||||
|
|
||||||
composer global require phpmd/phpmd --dev
|
composer global require phpmd/phpmd --dev
|
||||||
|
|
||||||
|
@ -16,11 +16,11 @@ installed() {
|
|||||||
|
|
||||||
COMPOSER_GLOBAL_HOME="$(composer config -g home)"
|
COMPOSER_GLOBAL_HOME="$(composer config -g home)"
|
||||||
NEWPATH="export PATH=\"$COMPOSER_GLOBAL_HOME/vendor/bin:\${PATH}\""
|
NEWPATH="export PATH=\"$COMPOSER_GLOBAL_HOME/vendor/bin:\${PATH}\""
|
||||||
cat "$HOME/.profile" | grep -qoh "$NEWPATH" || {
|
cat "${HOME}/.profile" | grep -qoh "$NEWPATH" || {
|
||||||
$NEWPATH
|
$NEWPATH
|
||||||
echo "$NEWPATH" >> "$HOME/.profile"
|
echo "$NEWPATH" >> "${HOME}/.profile"
|
||||||
}
|
}
|
||||||
source "$HOME/.profile"
|
source "${HOME}/.profile"
|
||||||
|
|
||||||
composer global require phpstan/phpstan --dev
|
composer global require phpstan/phpstan --dev
|
||||||
|
|
||||||
|
@ -16,11 +16,11 @@ installed() {
|
|||||||
|
|
||||||
COMPOSER_GLOBAL_HOME="$(composer config -g home)"
|
COMPOSER_GLOBAL_HOME="$(composer config -g home)"
|
||||||
NEWPATH="export PATH=\"$COMPOSER_GLOBAL_HOME/vendor/bin:\${PATH}\""
|
NEWPATH="export PATH=\"$COMPOSER_GLOBAL_HOME/vendor/bin:\${PATH}\""
|
||||||
cat "$HOME/.profile" | grep -qoh "$NEWPATH" || {
|
cat "${HOME}/.profile" | grep -qoh "$NEWPATH" || {
|
||||||
$NEWPATH
|
$NEWPATH
|
||||||
echo "$NEWPATH" >> "$HOME/.profile"
|
echo "$NEWPATH" >> "${HOME}/.profile"
|
||||||
}
|
}
|
||||||
source "$HOME/.profile"
|
source "${HOME}/.profile"
|
||||||
|
|
||||||
composer global require phpunit/phpunit --dev
|
composer global require phpunit/phpunit --dev
|
||||||
|
|
||||||
|
@ -1,33 +1,28 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
##makedesc: Install postman (latest)
|
##makedesc: Install postman (latest)
|
||||||
source `dirname $0`/../helpers || exit 255
|
|
||||||
|
|
||||||
# https://learning.postman.com/docs/getting-started/installation-and-updates/#installing-postman-on-linux
|
echo
|
||||||
|
echo "==============================================="
|
||||||
|
echo "Installing postman (latest)..."
|
||||||
|
echo "==============================================="
|
||||||
|
echo
|
||||||
|
|
||||||
# set -ex
|
mkdir -p ${HOME}/install/postman
|
||||||
|
mkdir -p ${HOME}/.local/bin
|
||||||
|
wget "https://dl.pstmn.io/download/latest/linux64" -O ${HOME}/install/postman.tar.gz && \
|
||||||
|
tar -xzf ${HOME}/install/postman.tar.gz -C ${HOME}/install/postman && \
|
||||||
|
ln -sf ${HOME}/install/postman/Postman/Postman ${HOME}/.local/bin/postman && \
|
||||||
|
mkdir -p "${HOME}/.local/share/applications" && \
|
||||||
|
cat << EOF > "${HOME}/.local/share/applications/Postman.desktop"
|
||||||
|
#!/usr/bin/env xdg-open
|
||||||
|
|
||||||
title
|
|
||||||
|
|
||||||
mkdir -p "$HOME/install" && \
|
|
||||||
"$HOME/.local/bin" && \
|
|
||||||
"$HOME/.local/share/applications"
|
|
||||||
|
|
||||||
download "https://dl.pstmn.io/download/latest/linux64" "$HOME/install/postman.tar.gz" && \
|
|
||||||
unpak_targz "$HOME/install/postman.tar.gz" "$HOME/install" && \
|
|
||||||
symlink "$HOME/install/Postman/Postman" "$HOME/.local/bin/postman" && \
|
|
||||||
cat << EOF > "$HOME/.local/share/applications/Postman.desktop" && sudo update-desktop-database
|
|
||||||
[Desktop Entry]
|
[Desktop Entry]
|
||||||
Name=Postman
|
Name=Postman
|
||||||
Exec=$HOME/.local/bin/postman %U
|
Exec=${HOME}/.local/bin/postman
|
||||||
Icon=$HOME/install/Postman/app/icons/icon_128x128.png
|
Icon=${HOME}/install/postman/Postman/app/icons/icon_128x128.png
|
||||||
Categories=Development,Network
|
Categories=Utility,Network
|
||||||
Terminal=false
|
Terminal=false
|
||||||
Type=Application
|
Type=Application
|
||||||
Encoding=UTF-8
|
Encoding=UTF-8
|
||||||
EOF
|
EOF
|
||||||
|
sudo update-desktop-database
|
||||||
[ $? = 0 ] && {
|
|
||||||
echo
|
|
||||||
success "Postman installed!"
|
|
||||||
echo
|
|
||||||
}
|
|
||||||
|
@ -7,7 +7,7 @@ echo "Installing telegram (latest)..."
|
|||||||
echo "==============================================="
|
echo "==============================================="
|
||||||
echo
|
echo
|
||||||
|
|
||||||
mkdir -p "$HOME/install" "$HOME/.local/bin"
|
mkdir -p "${HOME}/install" "${HOME}/.local/bin"
|
||||||
wget "https://telegram.org/dl/desktop/linux" -O $HOME/install/telegram.tar.gz && \
|
wget "https://telegram.org/dl/desktop/linux" -O ${HOME}/install/telegram.tar.gz && \
|
||||||
tar -xJf $HOME/install/telegram.tar.gz -C $HOME/.local/bin
|
tar -xJf ${HOME}/install/telegram.tar.gz -C ${HOME}/.local/bin
|
||||||
$HOME/.local/bin/Telegram/Telegram & disown > /dev/null
|
${HOME}/.local/bin/Telegram/Telegram & disown > /dev/null
|
||||||
|
@ -1,7 +1,6 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
##makedesc: Install Vivaldi + ppa
|
##makedesc: Install Vivaldi + ppa
|
||||||
|
|
||||||
# https://repo.vivaldi.com
|
|
||||||
# https://help.vivaldi.com/desktop/#install-update
|
# https://help.vivaldi.com/desktop/#install-update
|
||||||
# https://help.vivaldi.com/desktop/install-update/manual-setup-vivaldi-linux-repositories/
|
# https://help.vivaldi.com/desktop/install-update/manual-setup-vivaldi-linux-repositories/
|
||||||
|
|
||||||
|
@ -12,8 +12,8 @@ echo
|
|||||||
# 11.04.23: release 2021.12.17 in snap/apt/github is broken (Unable to extract uploader id)
|
# 11.04.23: release 2021.12.17 in snap/apt/github is broken (Unable to extract uploader id)
|
||||||
# and still no fix officially released, so we just build it from actual sources
|
# and still no fix officially released, so we just build it from actual sources
|
||||||
|
|
||||||
# curl -L https://yt-dl.org/downloads/latest/youtube-dl -o "$HOME/.local/bin/youtube-dl" && \
|
# curl -L https://yt-dl.org/downloads/latest/youtube-dl -o "${HOME}/.local/bin/youtube-dl" && \
|
||||||
# sudo chmod +rx "$HOME/.local/bin/youtube-dl"
|
# sudo chmod +rx "${HOME}/.local/bin/youtube-dl"
|
||||||
|
|
||||||
installed() {
|
installed() {
|
||||||
command -v "$1" >/dev/null 2>&1
|
command -v "$1" >/dev/null 2>&1
|
||||||
|
@ -11,5 +11,5 @@ echo
|
|||||||
|
|
||||||
install_dir="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
|
install_dir="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
|
||||||
tools_dir="`dirname $install_dir`/tools"
|
tools_dir="`dirname $install_dir`/tools"
|
||||||
cp "${tools_dir}/ytdlcue.sh" "$HOME/.local/bin/ytdlcue"
|
cp "${tools_dir}/ytdlcue.sh" "${HOME}/.local/bin/ytdlcue"
|
||||||
sudo chmod +rx "$HOME/.local/bin/ytdlcue"
|
sudo chmod +rx "${HOME}/.local/bin/ytdlcue"
|
||||||
|
@ -8,4 +8,4 @@ echo "==============================================="
|
|||||||
echo
|
echo
|
||||||
|
|
||||||
sudo apt install -y --autoremove zsh
|
sudo apt install -y --autoremove zsh
|
||||||
echo "source ~/.profile" >> "$HOME/.zshrc"
|
echo "source ~/.profile" >> ~/.zshrc
|
||||||
|
@ -1,13 +0,0 @@
|
|||||||
#!/bin/bash
|
|
||||||
# https://forums.opensuse.org/t/networkmanager-shows-connection-to-lo/164441/13
|
|
||||||
# https://man.archlinux.org/man/NetworkManager.conf.5.en#Device_List_Format
|
|
||||||
# https://access.redhat.com/documentation/ru-ru/red_hat_enterprise_linux/8/html/configuring_and_managing_networking/configuring-networkmanager-to-ignore-certain-devices_configuring-and-managing-networking
|
|
||||||
|
|
||||||
sudo touch /etc/NetworkManager/conf.d/10-ignore-veth.conf
|
|
||||||
sudo tee <<EOF /etc/NetworkManager/conf.d/10-ignore-veth.conf > /dev/null
|
|
||||||
# Disable virtual interfaces to be managed via NetworkManager
|
|
||||||
[keyfile]
|
|
||||||
unmanaged-devices=interface-name:veth*
|
|
||||||
|
|
||||||
EOF
|
|
||||||
sudo systemctl reload NetworkManager
|
|
@ -1,13 +0,0 @@
|
|||||||
#!/bin/bash
|
|
||||||
##makedesc: Uninstall apache2
|
|
||||||
source `dirname $0`/../helpers || exit 255
|
|
||||||
|
|
||||||
title
|
|
||||||
|
|
||||||
sudo apt remove -y --autoremove apache2
|
|
||||||
|
|
||||||
[ $? = 0 ] && {
|
|
||||||
echo
|
|
||||||
success "apache2 uninstalled!"
|
|
||||||
echo
|
|
||||||
}
|
|
@ -1,19 +0,0 @@
|
|||||||
#!/bin/bash
|
|
||||||
##makedesc: Uninstall grub-customizer with ppa
|
|
||||||
source `dirname $0`/../helpers || exit 255
|
|
||||||
|
|
||||||
title
|
|
||||||
|
|
||||||
source_file="/etc/apt/sources.list.d/$(ls -1 /etc/apt/sources.list.d/ | grep danielrichter2007)"
|
|
||||||
|
|
||||||
sudo apt remove -y --autoremove grub-customizer && \
|
|
||||||
[ -f "$source_file" ] && {
|
|
||||||
sudo rm "$source_file" && \
|
|
||||||
sudo apt update
|
|
||||||
}
|
|
||||||
|
|
||||||
[ $? = 0 ] && {
|
|
||||||
echo
|
|
||||||
success "grub-customizer uninstalled!"
|
|
||||||
echo
|
|
||||||
}
|
|
@ -9,10 +9,10 @@ echo
|
|||||||
|
|
||||||
set -x
|
set -x
|
||||||
rm -rf \
|
rm -rf \
|
||||||
"$HOME/.local/bin/lite-xl" \
|
"${HOME}/.local/bin/lite-xl" \
|
||||||
"$HOME/.local/share/applications/org.lite_xl.lite_xl.desktop" \
|
"${HOME}/.local/share/applications/org.lite_xl.lite_xl.desktop" \
|
||||||
"$HOME/.local/share/lite-xl" \
|
"${HOME}/.local/share/lite-xl" \
|
||||||
"$HOME/.config/lite-xl"
|
"${HOME}/.config/lite-xl"
|
||||||
|
|
||||||
sudo update-desktop-database && \
|
sudo update-desktop-database && \
|
||||||
xdg-desktop-menu forceupdate
|
xdg-desktop-menu forceupdate
|
||||||
|
Loading…
Reference in New Issue
Block a user