Updated docker, apt, wine, snap; removed todo

This commit is contained in:
Anthony Axenov 2022-07-04 22:12:37 +08:00
parent e9cd7ee2ae
commit 317f635b91
Signed by: anthony
GPG Key ID: EA9EC32FF7CCD4EC
10 changed files with 56 additions and 165 deletions

View File

@ -1,111 +1,106 @@
# Autogenerated at 04.07.2022 19:25 using ./gen-makefile.sh # Autogenerated at 04.07.2022 22:11 using ./gen-makefile.sh
##lamp: Apache + php + mariadb ##lamp: Apache + php + mariadb
lamp: apache php mariadb lamp: apache php mariadb
##apache: Install apache2 (latest) ##apache: Install apache2 (latest)
apache: apache:
./install/apache ./install/apache
##apt: Install bunch of software from apt ##apt: Install bunch of software from apt
apt: apt:
./install/apt.sh ./install/apt
##chrome: Install google chrome (latest) ##chrome: Install google chrome (latest)
chrome: chrome:
./install/chrome.sh ./install/chrome
##composer: Install composer (latest) ##composer: Install composer (latest)
composer: composer:
./install/composer.sh ./install/composer
##docker: Install docker (latest) + docker-compose (latest) + ppa ##docker: Install docker (latest) + docker-compose (latest) + ppa
docker: docker:
./install/docker.sh ./install/docker
##droidcam-obs: Install droidcam-obs plugin v1.5.1
droidcam-obs:
./install/droidcam-obs.sh
##droidcam: Install droidcam v1.8.2 ##droidcam: Install droidcam v1.8.2
droidcam: droidcam:
./install/droidcam.sh ./install/droidcam
##droidcam-obs: Install droidcam-obs plugin v1.5.1
droidcam-obs:
./install/droidcam-obs
##git: Install git (latest) ##git: Install git (latest)
git: git:
./install/git.sh ./install/git
##golang: Install golang v1.18.3 ##golang: Install golang v1.18.3
golang: golang:
./install/golang.sh ./install/golang
##grubc: Install grub-customizer (latest) + ppa ##grubc: Install grub-customizer (latest) + ppa
grubc: grubc:
./install/grubc.sh ./install/grubc
##kde-appmenu: Install KDE Window AppMenu Applet ##kde-appmenu: Install KDE Window AppMenu Applet
kde-appmenu: kde-appmenu:
./install/kde-appmenu.sh ./install/kde-appmenu
##lite-xl: Install lite-xl v2.0.5 (draft) ##lite-xl: Install lite-xl v2.0.5 (draft)
lite-xl: lite-xl:
./install/lite-xl.sh ./install/lite-xl
##mariadb: Install mariadb (latest) and php-mysql + phpMyAdmin (if php is installed) ##mariadb: Install mariadb (latest) and php-mysql + phpMyAdmin (if php is installed)
mariadb: mariadb:
./install/mariadb.sh ./install/mariadb
##nodejs: Install nodejs + npm via nvm ##nodejs: Install nodejs + npm via nvm
nodejs: nodejs:
./install/nodejs.sh ./install/nodejs
##pgsql: Install postgresql (latest) and php-pgsql (if php is installed) ##pgsql: Install postgresql (latest) and php-pgsql (if php is installed)
pgsql: pgsql:
./install/pgsql.sh ./install/pgsql
##php: Install php v8.1 + ppa ##php: Install php v8.1 + ppa
php: php:
./install/php.sh ./install/php
##postman: Install postman (latest) ##postman: Install postman (latest)
postman: postman:
./install/postman.sh ./install/postman
##rustdesk: Install rustdesk v1.1.8 (deb) ##rustdesk: Install rustdesk v1.1.8 (deb)
rustdesk: rustdesk:
./install/rustdesk.sh ./install/rustdesk
##snap: Install bunch of software from snap ##snap: Install bunch of software from snap
snap: snap:
./install/snap.sh ./install/snap
##syncthing: Install syncthing (latest) + ppa ##syncthing: Install syncthing (latest) + ppa
syncthing: syncthing:
./install/syncthing.sh ./install/syncthing
##telebit: Install telebit (latest) ##telebit: Install telebit (latest)
telebit: telebit:
./install/telebit.sh ./install/telebit
##todo: <no description>
todo:
./install/todo
##ulauncher: Install ulauncher (latest) + ppa ##ulauncher: Install ulauncher (latest) + ppa
ulauncher: ulauncher:
./install/ulauncher.sh ./install/ulauncher
##wine: Installwine (latest) + ppa (focal) ##wine: Install wine (latest) + ppa (focal)
wine: wine:
./install/wine.sh ./install/wine
##zint: Install zint (latest) ##zint: Install zint (latest)
zint: zint:
./install/zint.sh ./install/zint
##zsh: Install zsh + omz (latest) ##zsh: Install zsh + omz (latest)
zsh: zsh:
./install/zsh.sh ./install/zsh
##help: Show this help message ##help: Show this help message
help: Makefile help: Makefile

View File

@ -2,11 +2,12 @@
`make`-ready bunch of scripts for easily installation of different software. `make`-ready bunch of scripts for easily installation of different software.
## Prerequisites ## Requirements
* `bash`, `zsh` or other `sh`-compatible shell * `bash`, `zsh` or other `sh`-compatible shell
* `make` * `make` (optional but recommended)
* `git` or `wget` * `wget` (necessary for some scripts)
* `git` (necessary for some scripts)
## Usage ## Usage

View File

@ -25,7 +25,6 @@ sudo apt install -y --autoremove \
gettext \ gettext \
gnupg \ gnupg \
ubuntu-restricted-extras \ ubuntu-restricted-extras \
gnome-software \
unzip \ unzip \
mc \ mc \
htop \ htop \
@ -46,7 +45,8 @@ sudo apt install -y --autoremove \
net-tools \ net-tools \
nmap \ nmap \
p7zip-full \ p7zip-full \
sqlitebrowser \ sqlitebrowser
# gnome-software \
# minder \ # minder \
# redshift \ # redshift \
# redshift-gtk \ # redshift-gtk \
@ -57,4 +57,4 @@ sudo apt install -y --autoremove \
# etckeeper \ # etckeeper \
# deepin-screenshot \ # deepin-screenshot \
# geoclue-2.0 \ # geoclue-2.0 \
at # at

View File

@ -9,18 +9,26 @@ echo
# https://docs.docker.com/engine/install/ubuntu/ # https://docs.docker.com/engine/install/ubuntu/
# curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add - sudo apt remove -y docker docker-engine docker.io containerd runc
# sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu focal stable" sudo apt-get install \
# sudo apt update ca-certificates \
# sudo apt install -y --autoremove docker-ce docker-compose curl \
gnupg \
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo gpg --dearmor -o /usr/share/keyrings/docker-archive-keyring.gpg lsb-release
sudo mkdir -p /etc/apt/keyrings
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo gpg --dearmor -o /etc/apt/keyrings/docker.gpg
echo \ echo \
"deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/docker-archive-keyring.gpg] https://download.docker.com/linux/ubuntu \ "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 $(lsb_release -cs) stable" | sudo tee /etc/apt/sources.list.d/docker.list > /dev/null
sudo chmod a+r /etc/apt/keyrings/docker.gpg
sudo apt update sudo apt update
sudo apt install -y --autoremove docker-ce docker-ce-cli containerd.io sudo apt install -y --autoremove \
docker-ce \
docker-ce-cli \
containerd.io \
docker-compose-plugin \
docker-compose
sudo usermod -aG docker anthony sudo usermod -aG docker anthony
echo
echo "You need to logout and log in again to apply docker group" echo "You need to logout and log in again to apply docker group"
echo

View File

@ -39,6 +39,6 @@ snapi peek
# sudo ln -s /snap/bin/certbot /usr/bin/certbot # sudo ln -s /snap/bin/certbot /usr/bin/certbot
# snapi mysql-workbench-community # snapi mysql-workbench-community
# snapi dbeaver-ce snapi dbeaver-ce
# snapi discord # snapi discord
# snapi obs-studio # snapi obs-studio

View File

@ -1,12 +0,0 @@
#!/bin/bash
echo
echo "==============================================="
echo "Installing flatpak and its software..."
echo "==============================================="
echo
sudo apt install -y --autoremove \
flatpak \
gnome-software-plugin-flatpak
flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo

View File

@ -1,47 +0,0 @@
#!/bin/bash
echo
echo "==============================================="
echo "Installing oci8..."
echo "==============================================="
echo
#check for
# wget https://download.oracle.com/otn_software/linux/instantclient/instantclient-basic-linuxx64.zip
# wget https://download.oracle.com/otn_software/linux/instantclient/instantclient-basiclite-linuxx64.zip -- only libociicus.so
# wget https://download.oracle.com/otn_software/linux/instantclient/instantclient-sqlplus-linuxx64.zip
# wget https://download.oracle.com/otn_software/linux/instantclient/instantclient-tools-linuxx64.zip
# wget https://download.oracle.com/otn_software/linux/instantclient/instantclient-sdk-linuxx64.zip
#unzip
sudo mkdir /opt/oracle/
sudo mv ~/Downloads/instant_client/ /opt/oracle/
sudo sh -c "echo /opt/oracle/instant_client > /etc/ld.so.conf.d/oracle-instantclient.conf"
sudo ldconfig
sudo apt install -y --autoremove \
php-dev \
php-pear \
build-essential \
libaio1 \
default-jdk
sudo pecl channel-update pecl.php.net
sudo pecl install oci8 # php8
#sudo pecl install oci8-2.2.0 # php7
#sh -c "echo '; priority=10' > /etc/php/7.4/mods-available/oci8.ini"
# sudo sh -c "echo 'extension=oci8.so' >> /etc/php/7.4/mods-available/oci8.ini"
# sudo chmod 0644 /etc/php/7.4/mods-available/oci8.ini
sudo phpenmod oci8
php -i | grep oci8
# instantclient,/opt/oracle/instant_client
# https://pecl.php.net/package/oci8
#sudo pecl install oci8-2.2.0

View File

@ -1,42 +0,0 @@
#!/bin/bash
echo
echo "==============================================="
echo "Installing phpstorm-url-handler..."
echo "==============================================="
echo
installed() {
command -v "$1" >/dev/null 2>&1
}
# https://github.com/rozwell/phpstorm-url-handler/
# https://askubuntu.com/a/1023143
# https://askubuntu.com/a/919825
# https://medium.com/swlh/custom-protocol-handling-how-to-8ac41ff651eb
# https://www.linuxquestions.org/questions/linux-desktop-74/xdg-open-doesn%27t-recognize-custom-protocol-4175433062/#post4809984
sudo rm -rf /usr/bin/phpstorm-url-handler >/dev/null
sudo rm -rf ~/.local/share/applications/phpstorm-url-handler.desktop >/dev/null
sudo rm -rf /usr/share/applications/phpstorm-url-handler.desktop >/dev/null
if installed "git"; then
sudo git clone https://github.com/rozwell/phpstorm-url-handler.git /usr/src/phpstorm-url-handler
else
sudo wget https://github.com/rozwell/phpstorm-url-handler/archive/master.zip -O /tmp/phpstorm-url-handler.zip
sudo unzip /tmp/phpstorm-url-handler.zip -d /usr/src/phpstorm-url-handler
sudo rm -f /tmp/phpstorm-url-handler.zip
fi
info "Copy .desktop"
sudo cp /usr/src/phpstorm-url-handler/phpstorm-url-handler.desktop /usr/share/local/applications/phpstorm-url-handler.desktop
info "Symlink bin"
sudo cp /usr/src/phpstorm-url-handler/phpstorm-url-handler /usr/bin/phpstorm-url-handler
info "desktop-file-install"
sudo desktop-file-install phpstorm-url-handler.desktop
info "update-desktop-database"
sudo update-desktop-database -v 2>&1 | grep -E "^(.+)\/phpstorm-url-handler.desktop(.+)$"
info "xdg-mime"
xdg-mime default phpstorm-url-handler.desktop x-scheme-handler/phpstorm

View File

@ -1,12 +0,0 @@
#!/bin/bash
echo
echo "==============================================="
echo "Installing wkhtmltopdf..."
echo "==============================================="
echo
# не тестировалось
wget "https://github.com/wkhtmltopdf/packaging/releases/download/0.12.6-1/wkhtmltox_0.12.6-1.focal_amd64.deb" -O /tmp/wkhtmltopdf.deb
sudo dpkg -i /tmp/wkhtmltopdf.deb
rm /tmp/wkhtmltopdf.deb

View File

@ -1,5 +1,5 @@
#!/bin/bash #!/bin/bash
##makedesc: Installwine (latest) + ppa (focal) ##makedesc: Install wine (latest) + ppa (focal)
echo echo
echo "===============================================" echo "==============================================="