Compare commits
1 Commits
9972fc6d9d
...
experiment
| Author | SHA1 | Date | |
|---|---|---|---|
|
5970e9b968
|
5
Makefile
5
Makefile
@@ -1,8 +1,7 @@
|
||||
# Autogenerated at 04.07.2022 22:16 using ./gen-makefile.sh
|
||||
# Autogenerated at 04.07.2022 22:11 using ./gen-makefile.sh
|
||||
|
||||
##lamp: Apache + php + mariadb
|
||||
lamp: apache php mariadb
|
||||
|
||||
##apache: Install apache2 (latest)
|
||||
apache:
|
||||
./install/apache
|
||||
@@ -112,4 +111,4 @@ help: Makefile
|
||||
|
||||
##<goal>_: Same as 'cat ./install/<goal>.sh'
|
||||
%_:
|
||||
@cat ./install/$*
|
||||
@cat ./install/$*.sh
|
||||
|
||||
12
experimental/flatpak
Executable file
12
experimental/flatpak
Executable file
@@ -0,0 +1,12 @@
|
||||
#!/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
|
||||
49
experimental/oci8
Normal file
49
experimental/oci8
Normal file
@@ -0,0 +1,49 @@
|
||||
#!/bin/bash
|
||||
echo
|
||||
echo "==============================================="
|
||||
echo "Installing oci8..."
|
||||
echo "==============================================="
|
||||
echo
|
||||
|
||||
# https://www.oracle.com/cis/database/technologies/instant-client/downloads.html
|
||||
|
||||
#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
|
||||
42
experimental/phpstorm-url-handler
Normal file
42
experimental/phpstorm-url-handler
Normal file
@@ -0,0 +1,42 @@
|
||||
#!/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
|
||||
46
experimental/samp-server
Normal file
46
experimental/samp-server
Normal file
@@ -0,0 +1,46 @@
|
||||
#!/bin/bash
|
||||
echo
|
||||
echo "==============================================="
|
||||
echo "Installing samp-server v03svr_R2-1..."
|
||||
echo "==============================================="
|
||||
echo
|
||||
|
||||
# https://sampwiki.blast.hk/wiki/Linux_Server
|
||||
# https://team.sa-mp.com/wiki/Server.cfg_RU.html
|
||||
|
||||
cd $HOME
|
||||
wget -qO - https://files.sa-mp.com/samp03svr_R2-1.tar.gz | tar -zxf -
|
||||
# sudo dpkg --add-architecture i386
|
||||
# sudo apt update
|
||||
# sudo apt install -y libc6:i386
|
||||
apt-get install ia32-libs
|
||||
|
||||
echo "echo Executing Server Config...
|
||||
lanmode 0
|
||||
rcon 1
|
||||
language Russian
|
||||
rcon_password bootsector
|
||||
maxplayers 50
|
||||
port 7777
|
||||
hostname My Server
|
||||
gamemode0 bare 1
|
||||
filterscripts base gl_actions gl_property gl_realtime
|
||||
announce 1
|
||||
query 1
|
||||
weburl
|
||||
maxnpc 0
|
||||
onfoot_rate 40
|
||||
incar_rate 40
|
||||
weapon_rate 40
|
||||
stream_distance 800.0
|
||||
stream_rate 1000
|
||||
timestamp 1
|
||||
output 0
|
||||
" > $HOME/samp03/server.cfg
|
||||
|
||||
ln -s $HOME/samp03/samp03svr /usr/local/bin/samp
|
||||
|
||||
echo
|
||||
echo "Success! Now run via 'samp &'"
|
||||
echo
|
||||
|
||||
12
experimental/wkhtmltopdf
Executable file
12
experimental/wkhtmltopdf
Executable file
@@ -0,0 +1,12 @@
|
||||
#!/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
|
||||
@@ -4,7 +4,6 @@ echo -e "# Autogenerated at $(date +'%d.%m.%Y %H:%M') using ${BASH_SOURCE[0]}\n"
|
||||
|
||||
for file in ./packs/*; do
|
||||
cat ${file} >> Makefile
|
||||
echo >> Makefile
|
||||
done;
|
||||
|
||||
for file in ./install/*; do
|
||||
@@ -23,11 +22,12 @@ help: Makefile
|
||||
@echo "Available goals:"
|
||||
@sed -n 's/^##//p' $< | column -t -s ':' | sed -e "s/^/\t/"
|
||||
|
||||
##<goal>_: Same as 'cat ./install/<goal>'
|
||||
##<goal>_: Same as 'cat ./install/<goal>.sh'
|
||||
%_:
|
||||
@cat ./install/\$*
|
||||
@cat ./install/\$*.sh
|
||||
EOF
|
||||
|
||||
|
||||
echo "New ./Makefile has been generated!"
|
||||
echo "Old one has been saved as ./Makefile.bak"
|
||||
echo
|
||||
|
||||
@@ -7,6 +7,6 @@ echo "Installing apache2..."
|
||||
echo "==============================================="
|
||||
echo
|
||||
|
||||
sudo apt install -y --autoremove apache2 && \
|
||||
service apache2 restart && \
|
||||
sudo apt install -y --autoremove apache2
|
||||
sudo service apache2 restart
|
||||
apache2 -v
|
||||
|
||||
72
install/apt
72
install/apt
@@ -7,56 +7,54 @@ echo "Installing software from apt..."
|
||||
echo "==============================================="
|
||||
echo
|
||||
|
||||
sudo apt update && \
|
||||
sudo apt upgrade -y --autoremove
|
||||
|
||||
sudo apt install -y \
|
||||
alien \
|
||||
sudo apt update && sudo apt upgrade -y --autoremove
|
||||
sudo apt install -y --autoremove \
|
||||
apt-transport-https \
|
||||
build-essential \
|
||||
ca-certificates \
|
||||
cmake \
|
||||
curl \
|
||||
dconf-editor \
|
||||
default-jdk \
|
||||
make \
|
||||
cmake \
|
||||
dialog \
|
||||
gettext \
|
||||
gnupg \
|
||||
gparted \
|
||||
hardinfo \
|
||||
htop \
|
||||
build-essential \
|
||||
software-properties-common \
|
||||
libaio1 \
|
||||
libssl-dev \
|
||||
libghc-zlib-dev \
|
||||
libcurl4-gnutls-dev \
|
||||
libexpat1-dev \
|
||||
libghc-zlib-dev \
|
||||
libreoffice \
|
||||
libssl-dev \
|
||||
lsb-release \
|
||||
lsp-plugins \
|
||||
make \
|
||||
gettext \
|
||||
gnupg \
|
||||
ubuntu-restricted-extras \
|
||||
unzip \
|
||||
mc \
|
||||
meld \
|
||||
htop \
|
||||
nano \
|
||||
neofetch \
|
||||
default-jdk \
|
||||
terminator \
|
||||
dconf-editor \
|
||||
alien \
|
||||
meld \
|
||||
vlc \
|
||||
gparted \
|
||||
hardinfo \
|
||||
libreoffice \
|
||||
pulseeffects \
|
||||
lsp-plugins \
|
||||
lsb-release \
|
||||
net-tools \
|
||||
nmap \
|
||||
p7zip-full \
|
||||
pulseeffects \
|
||||
software-properties-common \
|
||||
sqlitebrowser \
|
||||
terminator \
|
||||
ubuntu-restricted-extras \
|
||||
unzip \
|
||||
vlc \
|
||||
# at \
|
||||
# compiz \
|
||||
# compizconfig-settings-manager \
|
||||
# deepin-screenshot \
|
||||
# earlyoom \
|
||||
# etckeeper \
|
||||
# geoclue-2.0 \
|
||||
sqlitebrowser
|
||||
# gnome-software \
|
||||
# minder \
|
||||
# nodejs \
|
||||
# redshift \
|
||||
# redshift-gtk
|
||||
# redshift-gtk \
|
||||
# nodejs \
|
||||
# compiz \
|
||||
# compizconfig-settings-manager \
|
||||
# earlyoom \
|
||||
# etckeeper \
|
||||
# deepin-screenshot \
|
||||
# geoclue-2.0 \
|
||||
# at
|
||||
|
||||
@@ -9,6 +9,7 @@ echo
|
||||
|
||||
# https://t.me/axenov_blog/251
|
||||
|
||||
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 && \
|
||||
# sudo snap install chromium
|
||||
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
|
||||
rm /tmp/google-chrome-stable_current_amd64.deb
|
||||
|
||||
Reference in New Issue
Block a user