Skip to content

Instantly share code, notes, and snippets.

View jniltinho's full-sized avatar
🏠
Working from home

Nilton Oliveira jniltinho

🏠
Working from home
View GitHub Profile
@jniltinho
jniltinho / build-php-5.3-ubuntu.sh
Last active April 25, 2024 23:23 — forked from rfay/gist:8cd633f3d0b7722da3bea044c69085d1
Build php 5.3 on recent Ubuntu
#!/bin/bash
## Install Debian/Ubuntu
## From https://pastebin.com/wEvpW0rg
## https://github.com/RedScourge
## https://github.com/drud/ddev/issues/1714#issuecomment-532015204
## https://github.com/shivammathur/php5-ubuntu
## https://launchpad.net/~sergey-dryabzhinsky/+archive/ubuntu/php53
## https://github.com/zener05/debian-stretch-php-5-3
## https://github.com/phpbrew/phpbrew
@jniltinho
jniltinho / install-multi-php-debian.sh
Last active April 23, 2024 18:57
Install Multi PHP Debian 12
#!/bin/bash
## Install Debian/Ubuntu
## https://think.unblog.ch/en/multiple-php-fpm-versions-with-apache-on-debian-12/
## https://tecadmin.net/how-to-install-php-on-debian-11/
## https://shape.host/resources/how-to-install-multiple-versions-of-php-on-debian-with-ispconfig
apt install -y lsb-release apt-transport-https ca-certificates wget gnupg
wget -O /etc/apt/trusted.gpg.d/php.gpg https://packages.sury.org/php/apt.gpg
@jniltinho
jniltinho / install-perlbrew.sh
Last active April 23, 2024 18:50
Install Perlbrew Debian 12
#!/bin/bash
## Install Perlbrew Debian 12
## https://perlbrew.pl/
## https://metacpan.org/pod/App::perlbrew
## https://www.digitalocean.com/community/tutorials/how-to-install-perlbrew-and-manage-multiple-versions-of-perl-5-on-centos-7
## https://forum.bestpractical.com/t/mysql-dependency-error-with-mariadb-and-debian-12/38748/6
## https://webhostinggeeks.com/howto/how-to-enable-mod_perl-apache-module-on-ubuntu/
## /opt/perl5/perls/perl-5.14.4/bin/perl
## /opt/perl5/perls/perl-5.10.1/bin/perl
@jniltinho
jniltinho / install-mysql-5.sh
Last active April 20, 2024 14:32
Install Mysql 5
#!/bin/bash
## Install Mysql 5.5.62 Debian 12
## https://downloads.mysql.com/archives/community/
## https://downloads.mysql.com/archives/get/p/23/file/mysql-5.5.62-linux-glibc2.12-x86_64.tar.gz
## https://www.hukot.net/community/en/tutorials/how-to-install-mysql-server-5-5-62-on-debian-ubuntu
## This tutorial also works on other versions of MySQL server in branch 5.5.x.
## Uninstall any existing version of MySQL; It's not mandatory
## rm /var/lib/mysql/ -R
@jniltinho
jniltinho / perl-oracle-install-debian-12.sh
Last active April 18, 2024 19:49 — forked from gongo/dbd-oracle-install-on-ubuntu1204.org
Install document of DBD::Oracle on Debian 12
#!/bin/bash
## Install DBD::Oracle on Debian 12
## DBD::Oracle on Debian 12
## Link on http://www.oracle.com/technetwork/topics/linuxsoft-082809.html
## https://www.oracle.com/database/technologies/instant-client/linux-x86-64-downloads.html
## https://yum.oracle.com/repo/OracleLinux/OL7/oracle/instantclient/x86_64/index.html
## 2024/04/18, version *19.23.0.0.0-1*
## Install require package
@jniltinho
jniltinho / install-buildkit.sh
Last active April 14, 2024 14:49
Enable BuildKit Docker Ubuntu 22.04
#!/bin/bash
#
# https://docs.docker.com/build/buildkit/
# https://github.com/docker/buildx/releases/
# https://github.com/docker/buildx
mkdir -p $HOME/.docker/cli-plugins
wget https://github.com/docker/buildx/releases/download/v0.11.2/buildx-v0.11.2.linux-amd64
chmod +x buildx-v0.11.2.linux-amd64
mv buildx-v0.11.2.linux-amd64 $HOME/.docker/cli-plugins/docker-buildx
@jniltinho
jniltinho / Install-goland.sh
Last active April 7, 2024 23:13 — forked from andreshincapier/Install_goland.md
Install Goland On Ubuntu
#!/bin/bash
## Install Goland 2024.1 on Ubuntu 22.04
wget https://download.jetbrains.com/go/goland-2024.1.tar.gz
tar xvz goland-2024.1.tar.gz
mv GoLand-2024.1 /opt/GoLand
cat <<'EOF' >/usr/share/applications/goland.desktop
[Desktop Entry]
Encoding=UTF-8
#!/bin/bash
## Install GLPI Ubuntu 22.04
## https://glpi-install.readthedocs.io/en/latest/prerequisites.html
## https://medium.com/@elaurichetoho/how-to-install-glpi-on-linux-server-with-nginx-252074687e4
#echo 'session.cookie_secure=1' >> /etc/php/*/fpm/php.ini
#echo 'session.cookie_httponly=1' >> /etc/php/*/fpm/php.ini
#echo 'session.cookie_samesite=Lax' >> /etc/php/*/fpm/php.ini
#sed -i 's|;date.timezone =|date.timezone="America/Sao_Paulo"|' /etc/php/*/fpm/php.ini
#timedatectl set-timezone "America/Sao_Paulo"
@jniltinho
jniltinho / install-znuny-ubuntu.sh
Last active April 4, 2024 15:24
Install Znuny 7 --> New OTRS Community Edition
#!/bin/bash
## Install Znuny 7.0.16 on Ubuntu 22.04
## https://doc.znuny.org/znuny_lts/releases/installupdate/install.html
## https://itgovernanceportal.com/otrs/otrs-znuny-ubuntu-nginx/?cn-reloaded=1
## https://download.znuny.org/releases/znuny-7.0.16.tar.gz
## Run as root (sudo su)
cd /opt
wget https://download.znuny.org/releases/znuny-7.0.16.tar.gz
@jniltinho
jniltinho / install_otrs_ubuntu.sh
Last active April 3, 2024 20:36
Install OTRS 6.0.9 on Ubuntu 22.04
#!/bin/bash
## Install OTRS 6.0.9 on Ubuntu 22.04
## https://www.howtoforge.com/tutorial/how-to-install-otrs-opensource-trouble-ticket-system-on-ubuntu-16-04/
## https://gist.github.com/jniltinho/b2f51c013dd963b7c0769a615be6e21e
## http://www.geoffstratton.com/otrs-installation-5011-ubuntu-1604
## https://downloads.radiantsd.org/releases/
## https://complemento.net.br/2015/11/13/instalando-o-otrs-5-0-no-centos-7-com-banco-de-dados-mariadb-fork-do-mysql/
## https://www.unixmen.com/install-otrs-ubuntu-16-04-apache/
## https://itsolutiondesign.wordpress.com/2018/09/14/upgrading-otrs-5-to-otrs-6-on-debian-ubuntu/
## https://help.dreamhost.com/hc/en-us/articles/360028572351-Installing-a-custom-version-of-Perl-locally