Last active
July 4, 2018 00:38
-
-
Save dertin/8de14e458dd4f0d3acb5f0deff120951 to your computer and use it in GitHub Desktop.
Revisions
-
dertin revised this gist
Jul 10, 2017 . 1 changed file with 1 addition and 967 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,967 +1 @@ Moved to: https://github.com/dertin/lemp-stack-debian/tree/develop -
dertin revised this gist
Jul 6, 2017 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -15,7 +15,7 @@ fi export LDFLAGS="-L/usr/local/lib -Wl,-rpath,/usr/local/lib" export LDCONFIG=-L/usr/local/lib export LIBS="-ldl" # for curl / openssl source /etc/profile -
dertin revised this gist
Jul 6, 2017 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -82,7 +82,7 @@ then libjemalloc-dev cython python3-dev python-setuptools libaio-dev libncurses5-dev \ m4 libunistring-dev libgmp-dev trousers libidn2-0 libunbound-dev \ bison libmcrypt-dev libicu-dev libltdl-dev libjpeg-dev libpng-dev libpspell-dev libreadline-dev \ uuid-dev gnulib libc6-dev libc-dbg libpam0g-dev libmsgpack-dev libstemmer-dev libbsd-dev \ libstdc++-4.9-dev autoconf-archive gnu-standards gettext gcc-4.9-locales debian-keyring \ g++-multilib g++-4.9-multilib gcc-multilib flex liblinear-tools liblinear-dev mcrypt \ gcj-jdk valgrind kytea libkytea-dev valgrind-mpi valkyrie \ -
dertin revised this gist
Jul 5, 2017 . 1 changed file with 5 additions and 6 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -6,17 +6,16 @@ MACHINE_TYPE=`uname -m` if [ "$MACHINE_TYPE" == "i386" ]; then export CPPFLAGS="-I/usr/local/include -I/usr/include/i386-linux-gnu" fi if [ "$MACHINE_TYPE" == "x86_64" ]; then export CPPFLAGS="-I/usr/local/include -I/usr/include/x86_64-linux-gnu" fi export LDFLAGS="-L/usr/local/lib -Wl,-rpath,/usr/local/lib" export LDCONFIG=-L/usr/local/lib export LIBS="-ldl" source /etc/profile -
dertin revised this gist
Jul 5, 2017 . 1 changed file with 10 additions and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -4,7 +4,16 @@ # NOT COMPLETED, MAY HAVE SERIOUS ERRORS MACHINE_TYPE=`uname -m` if [ "$MACHINE_TYPE" == "i386" ]; then CPPFLAGS="-I/usr/local/include -I/usr/include/i386-linux-gnu" fi if [ "$MACHINE_TYPE" == "x86_64" ]; then CPPFLAGS="-I/usr/local/include -I/usr/include/x86_64-linux-gnu" fi LDFLAGS="-L/usr/local/lib -Wl,-rpath,/usr/local/lib" LDCONFIG=-L/usr/local/lib LIBS="-ldl" -
dertin revised this gist
Jul 5, 2017 . 1 changed file with 8 additions and 59 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -3,14 +3,20 @@ # Tested on Debian 8.8 32bit / 64bit - DigitalOcean # NOT COMPLETED, MAY HAVE SERIOUS ERRORS MACHINE_TYPE=`uname -m` CPPFLAGS="-I/usr/local/include -I/usr/include/i386-linux-gnu" LDFLAGS="-L/usr/local/lib -Wl,-rpath,/usr/local/lib" LDCONFIG=-L/usr/local/lib LIBS="-ldl" source /etc/profile ##################################################################################################################### # # FUNCTIONS # ##################################################################################################################### function wgetAndDecompress(){ dirTmp=$1 @@ -42,8 +48,6 @@ function pauseToContinue() { # ##################################################################################################################### read -e -i "Y" -p "Delete building directories ? [Y/n]: " input_delete_build if [ $input_delete_build == "Y" ] || [ $input_delete_build == "y" ] @@ -122,9 +126,6 @@ then # Func wgetAndDecompress (dirTmp, folderTmp, downloadAddress) wgetAndDecompress $openssl_install_tmp_dir openssl_src $openssl_address ./config -Wl,--enable-new-dtags,-rpath,'$(LIBRPATH)' no-comp no-zlib no-zlib-dynamic shared make @@ -166,9 +167,6 @@ then # Func wgetAndDecompress (dirTmp, folderTmp, downloadAddress) wgetAndDecompress $zlib_install_tmp_dir zlib_src $zlib_address ./configure --shared make @@ -233,9 +231,6 @@ then wgetAndDecompress $libssh2_install_tmp_dir libssh2_src $libssh2_address ./configure --with-openssl --with-libssl-prefix=/usr/local --with-libz --with-libz-prefix=/usr/local make @@ -269,9 +264,6 @@ then wgetAndDecompress $nghttp2_install_tmp_dir nghttp2_src $nghttp2_address ./configure make @@ -307,9 +299,6 @@ then ./buildconf ./configure --enable-versioned-symbols --enable-threaded-resolver --with-ssl=/usr/local/ssl --with-libssl-prefix=/usr/local --with-zlib=/usr/local/zlib --with-nghttp2 --with-libssh2 make @@ -353,10 +342,6 @@ then # Func wgetAndDecompress (dirTmp, folderTmp, downloadAddress) wgetAndDecompress '/var/tmp/nettle_build' nettle_src 'https://ftp.gnu.org/gnu/nettle/nettle-3.3.tar.gz' ./configure make @@ -373,10 +358,6 @@ then # Func wgetAndDecompress (dirTmp, folderTmp, downloadAddress) wgetAndDecompress '/var/tmp/libtasn1_build' libtasn1_src 'http://ftp.gnu.org/gnu/libtasn1/libtasn1-4.12.tar.gz' ./configure make @@ -391,10 +372,6 @@ then # Func wgetAndDecompress (dirTmp, folderTmp, downloadAddress) wgetAndDecompress '/var/tmp/p11kit_build' p11kit_src 'http://p11-glue.freedesktop.org/releases/p11-kit-0.23.2.tar.gz' ./configure --with-trust-paths=/etc/ssl/certs make @@ -409,10 +386,6 @@ then # Func wgetAndDecompress (dirTmp, folderTmp, downloadAddress) wgetAndDecompress $gnutls_install_tmp_dir gnutls_src $gnutls_address ./configure --enable-shared --with-default-trust-store-file=`curl-config --ca` make @@ -487,10 +460,6 @@ then ./autogen.sh ./configure --prefix=/usr/local make @@ -537,10 +506,6 @@ then wgetAndDecompress $libXML2_install_tmp_dir libXML2_src $libXML2_address ./configure --prefix=/usr/local --with-history make @@ -573,10 +538,6 @@ then wgetAndDecompress $libxslt_install_tmp_dir libxslt_src $libxslt_address ./configure --prefix=/usr/local make @@ -612,10 +573,6 @@ then ./autogen.sh ./configure --prefix=/usr/local --with-xslroot=/usr/share/xml/docbook/stylesheet/docbook-xsl/ make @@ -826,10 +783,6 @@ then --with-fpm-user=www-data \ --with-fpm-group=www-data" ./configure $CONFIGURE_STRING make @@ -905,10 +858,6 @@ then # Func wgetAndDecompress (dirTmp, folderTmp, downloadAddress) wgetAndDecompress $nginx_install_tmp_dir nginx_src $nginx_address ./configure \ --prefix=/usr/share/nginx \ --sbin-path=/usr/sbin/nginx \ -
dertin revised this gist
Jul 5, 2017 . 1 changed file with 2 additions and 2 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -63,7 +63,7 @@ then apt-get -y dist-upgrade apt-get -y install coreutils build-essential expect perl file sudo cron xsltproc docbook-xsl docbook-xml \ libpcre3 libpcre3-dev zlib1g-dev golang libssl-dev libtiffxx5 libexpat1-dev libpng12-dev libfreetype6-dev \ pkg-config libfontconfig1-dev libjpeg62-turbo-dev libjpeg-dev xorg-sgml-doctools \ x11proto-core-dev libxau-dev libxdmcp-dev needrestart g++ make binutils autoconf automake autotools-dev libtool \ libbz2-dev zlib1g-dev libcunit1-dev libxml2-dev libev-dev libevent-dev libjansson-dev \ @@ -78,7 +78,7 @@ then re2c apt-get -y remove --purge --auto-remove curl apt-get -y remove --purge --auto-remove cmake* apt-get -y build-dep curl apt-get -y build-dep zlib -
dertin revised this gist
Jul 5, 2017 . 1 changed file with 35 additions and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -78,6 +78,7 @@ then re2c apt-get -y remove --purge --auto-remove curl apt-get -y remove --purge --auto-remove cmake apt-get -y build-dep curl apt-get -y build-dep zlib @@ -304,7 +305,6 @@ then # Func wgetAndDecompress (dirTmp, folderTmp, downloadAddress) wgetAndDecompress $curl_install_tmp_dir curl_src $curl_address ./buildconf CPPFLAGS="-I/usr/local/include -I/usr/include/i386-linux-gnu" \ @@ -424,6 +424,40 @@ pauseToContinue fi ##################################################################################################################### # # INSTALL cmake (Tested with 3.8.2 - https://cmake.org/files/v3.8/cmake-3.8.2.tar.gz) # ##################################################################################################################### read -e -i "Y" -p "Install cmake ? [Y/n]: " input_install_cmake if [ $input_install_cmake == "Y" ] || [ $input_install_cmake == "y" ] then cmake_address="https://cmake.org/files/v3.8/cmake-3.8.2.tar.gz" read -e -i "$cmake_address" -p "Enter the download address for cmake (tar.gz): " input_cmake_address cmake_address="${input_cmake_address:-$cmake_address}" cmake_install_tmp_dir="/var/tmp/cmake_build" read -e -i "$cmake_install_tmp_dir" -p "Enter temporary directory for cmake installation: " input_cmake_install_tmp_dir cmake_install_tmp_dir="${input_cmake_install_tmp_dir:-$cmake_install_tmp_dir}" # Func wgetAndDecompress (dirTmp, folderTmp, downloadAddress) wgetAndDecompress $cmake_install_tmp_dir cmake_src $cmake_address ./bootstrap make make install ldconfig cmake --version pauseToContinue fi ##################################################################################################################### # # INSTALL libcrack2 (Tested with 2.9.6 - https://github.com/cracklib/cracklib/archive/cracklib-2.9.6.tar.gz) -
dertin revised this gist
Jul 5, 2017 . 1 changed file with 8 additions and 5 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -9,6 +9,8 @@ # ##################################################################################################################### MACHINE_TYPE=`uname -m` function wgetAndDecompress(){ dirTmp=$1 @@ -286,7 +288,7 @@ fi # ##################################################################################################################### read -e -i "Y" -p "Install curl ? [Y/n]: " input_install_curl if [ $input_install_curl == "Y" ] || [ $input_install_curl == "y" ] then @@ -301,20 +303,23 @@ then # Func wgetAndDecompress (dirTmp, folderTmp, downloadAddress) wgetAndDecompress $curl_install_tmp_dir curl_src $curl_address ./buildconf CPPFLAGS="-I/usr/local/include -I/usr/include/i386-linux-gnu" \ LDFLAGS="-L/usr/local/lib -Wl,-rpath,/usr/local/lib" \ LIBS="-ldl" \ ./configure --enable-versioned-symbols --enable-threaded-resolver --with-ssl=/usr/local/ssl --with-libssl-prefix=/usr/local --with-zlib=/usr/local/zlib --with-nghttp2 --with-libssh2 make make install ldconfig curl -V pauseToContinue @@ -649,7 +654,6 @@ then ## setting [mysqld] section perl -i -pe "BEGIN{undef $/;} s/^\[mysqld\]$/[mysqld]\n\nperformance_schema = ON\n/sgm" /etc/my.cnf my_print_defaults --mysqld pauseToContinue @@ -795,7 +799,6 @@ then ./configure $CONFIGURE_STRING make make install # Create a dir for storing PHP module conf -
dertin revised this gist
Jul 5, 2017 . 1 changed file with 1 addition and 0 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -967,6 +967,7 @@ fi # TODO: # Install Let’s Encrypt Client @see https://www.nginx.com/blog/free-certificates-lets-encrypt-and-nginx/ # https://raymii.org/s/tutorials/Strong_SSL_Security_On_nginx.html # https://www.linode.com/docs/security/securing-your-server # https://easyengine.io/tutorials/nginx/fail2ban/ -
dertin revised this gist
Jul 5, 2017 . 1 changed file with 54 additions and 10 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -58,6 +58,7 @@ then apt-get -y update apt-get -y upgrade apt-get -y dist-upgrade apt-get -y install coreutils build-essential expect perl file sudo cron xsltproc docbook-xsl docbook-xml \ libpcre3 libpcre3-dev zlib1g-dev golang libssl-dev cmake-data cmake libtiffxx5 libexpat1-dev libpng12-dev libfreetype6-dev \ @@ -645,8 +646,8 @@ then # setting /etc/my.cnf sed -i 's#socket.*=.*/tmp/mysql.sock#socket = /var/run/mysqld/mysqld.sock#g' /etc/my.cnf ## setting [mysqld] section perl -i -pe "BEGIN{undef $/;} s/^\[mysqld\]$/[mysqld]\n\nperformance_schema = ON\n/sgm" /etc/my.cnf my_print_defaults --mysqld @@ -896,24 +897,66 @@ then make make install mkdir -p /etc/nginx/ssl/ openssl dhparam -out /etc/nginx/ssl/dhparam.pem 4096 # TODO: nano /etc/nginx/nginx.conf nginx -t nginx -V needrestart -r l nginx -s reload pauseToContinue pauseToContinue fi ##################################################################################################################### # # Let’s Encrypt with NGINX (https://github.com/certbot/certbot) # ##################################################################################################################### read -e -i "Y" -p "Install Let’s Encrypt ? [Y/n]: " input_install_letEncrypt if [ $input_install_letEncrypt == "Y" ] || [ $input_install_letEncrypt == "y" ] then letEncrypt_domain="grupolfmedia.tk" read -e -i "$letEncrypt_domain" -p "Enter the domian: " input_letEncrypt_domain letEncrypt_domain="${input_letEncrypt_domain:-$letEncrypt_domain}" letEncrypt_emailSupport="[email protected]" read -e -i "$letEncrypt_domain" -p "Enter email support: " input_letEncrypt_emailSupport letEncrypt_emailSupport="${input_letEncrypt_emailSupport:-$letEncrypt_emailSupport}" git clone https://github.com/certbot/certbot /opt/letsencrypt cd /var/www && mkdir letsencrypt && chgrp www-data letsencrypt # /etc/letsencrypt/configs/my-domain.conf mkdir -p /etc/letsencrypt/configs/ touch /etc/letsencrypt/configs/${letEncrypt_domain}.conf echo "domains = ${letEncrypt_domain}" > /etc/letsencrypt/configs/${letEncrypt_domain}.conf echo "rsa-key-size = 4096" >> /etc/letsencrypt/configs/${letEncrypt_domain}.conf echo "# the current closed beta (as of 2015-Nov-07) is using this server" >> /etc/letsencrypt/configs/${letEncrypt_domain}.conf echo "server = https://acme-v01.api.letsencrypt.org/directory" >> /etc/letsencrypt/configs/${letEncrypt_domain}.conf echo "# this address will receive renewal reminders, IIRC" >> /etc/letsencrypt/configs/${letEncrypt_domain}.conf echo "email = ${letEncrypt_emailSupport}" >> /etc/letsencrypt/configs/${letEncrypt_domain}.conf echo "# turn off the ncurses UI, we want this to be run as a cronjob" >> /etc/letsencrypt/configs/${letEncrypt_domain}.conf echo "text = True" >> /etc/letsencrypt/configs/${letEncrypt_domain}.conf echo "# authenticate by placing a file in the webroot (under .well-known/acme-challenge/) and then letting" >> /etc/letsencrypt/configs/${letEncrypt_domain}.conf echo "# LE fetch it" >> /etc/letsencrypt/configs/${letEncrypt_domain}.conf echo "authenticator = webroot" >> /etc/letsencrypt/configs/${letEncrypt_domain}.conf echo "webroot-path = /var/www/letsencrypt/" >> /etc/letsencrypt/configs/${letEncrypt_domain}.conf # TODO: Continue... fi # NOTES: # PHP 7 OPcache # Nginx: https://fak3r.com/2015/09/29/howto-build-nginx-with-http-2-support/ @@ -925,4 +968,5 @@ fi # TODO: # Install Let’s Encrypt Client @see https://www.nginx.com/blog/free-certificates-lets-encrypt-and-nginx/ # https://www.linode.com/docs/security/securing-your-server # https://easyengine.io/tutorials/nginx/fail2ban/ -
dertin revised this gist
Jul 4, 2017 . 1 changed file with 89 additions and 40 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,11 +1,13 @@ #!/bin/bash # Tested on Debian 8.8 32bit / 64bit - DigitalOcean # NOT COMPLETED, MAY HAVE SERIOUS ERRORS ##################################################################################################################### # # FUNCTIONS # ##################################################################################################################### function wgetAndDecompress(){ @@ -32,7 +34,11 @@ function pauseToContinue() { read -n 1 -s -p "Press any key to continue" && echo -e "\n" } ##################################################################################################################### # # INIT SCRIPT # ##################################################################################################################### source /etc/profile @@ -89,16 +95,18 @@ then fi ##################################################################################################################### # # INSTALL OpenSSL (Tested with 1.1.0f - https://www.openssl.org/source/openssl-1.1.0f.tar.gz) # config file: /usr/local/ssl/openssl.cnf # ##################################################################################################################### read -e -i "Y" -p "Install OpenSSL ? [Y/n]: " input_install_openssl if [ $input_install_openssl == "Y" ] || [ $input_install_openssl == "y" ] then openssl_address="https://www.openssl.org/source/openssl-1.1.0f.tar.gz" read -e -i "$openssl_address" -p "Enter the download address for OpenSSL (tar.gz): " input_openssl_address openssl_address="${input_openssl_address:-$openssl_address}" @@ -132,15 +140,17 @@ then fi ##################################################################################################################### # # INSTALL zlib (Tested with 1.2.11 - http://www.zlib.net/zlib-1.2.11.tar.gz) # ##################################################################################################################### read -e -i "Y" -p "Install zlib ? [Y/n]: " input_install_zlib if [ $input_install_zlib == "Y" ] || [ $input_install_zlib == "y" ] then zlib_address="http://www.zlib.net/zlib-1.2.11.tar.gz" read -e -i "$zlib_address" -p "Enter the download address for zlib (tar.gz): " input_zlib_address zlib_address="${input_zlib_address:-$zlib_address}" @@ -166,15 +176,17 @@ pauseToContinue fi ##################################################################################################################### # # INSTALL LZ4 (Tested with v1.7.5 - https://github.com/lz4/lz4/archive/v1.7.5.tar.gz) # ##################################################################################################################### read -e -i "Y" -p "Install lz4 ? [Y/n]: " input_install_lz4 if [ $input_install_lz4 == "Y" ] || [ $input_install_lz4 == "y" ] then lz4_address="https://github.com/lz4/lz4/archive/v1.7.5.tar.gz" read -e -i "$lz4_address" -p "Enter the download address for lz4 (tar.gz): " input_lz4_address lz4_address="${input_lz4_address:-$lz4_address}" @@ -196,15 +208,17 @@ pauseToContinue fi ##################################################################################################################### # # INSTALL libssh2 (Tested with 1.8.0 - https://libssh2.org/download/libssh2-1.8.0.tar.gz) # ##################################################################################################################### read -e -i "Y" -p "Install libssh2 ? [Y/n]: " input_install_libssh2 if [ $input_install_libssh2 == "Y" ] || [ $input_install_libssh2 == "y" ] then libssh2_address="https://libssh2.org/download/libssh2-1.8.0.tar.gz" read -e -i "$libssh2_address" -p "Enter the download address for libssh2 (tar.gz): " input_libssh2_address libssh2_address="${input_libssh2_address:-$libssh2_address}" @@ -229,14 +243,17 @@ pauseToContinue fi ##################################################################################################################### # # INSTALL Nghttp2: HTTP/2 C Library # (Tested with v1.23.1 - https://github.com/nghttp2/nghttp2/releases/download/v1.23.1/nghttp2-1.23.1.tar.gz) # ##################################################################################################################### read -e -i "Y" -p "Install Nghttp2 ? [Y/n]: " input_install_nghttp2 if [ $input_install_nghttp2 == "Y" ] || [ $input_install_nghttp2 == "y" ] then nghttp2_address="https://github.com/nghttp2/nghttp2/releases/download/v1.23.1/nghttp2-1.23.1.tar.gz" read -e -i "$nghttp2_address" -p "Enter the download address for Nghttp2 (tar.gz): " input_nghttp2_address @@ -262,15 +279,17 @@ pauseToContinue fi ##################################################################################################################### # # INSTALL curl (Tested with 7.54.1 - https://curl.haxx.se/download/curl-7.54.1.tar.gz) # ##################################################################################################################### read -e -i "Y" -p "Install CURL ? [Y/n]: " input_install_curl if [ $input_install_curl == "Y" ] || [ $input_install_curl == "y" ] then curl_address="https://curl.haxx.se/download/curl-7.54.1.tar.gz" read -e -i "$curl_address" -p "Enter the download address for CURL (tar.gz): " input_curl_address curl_address="${input_curl_address:-$curl_address}" @@ -300,14 +319,17 @@ pauseToContinue fi ##################################################################################################################### # # INSTALL GnuTLS 3.5.13 (https://www.gnupg.org/ftp/gcrypt/gnutls/v3.5/gnutls-3.5.13.tar.xz) # - Optional # ##################################################################################################################### read -e -i "n" -p "Install GnuTLS [Opcional] ? [Y/n]: " input_install_gnutls if [ $input_install_gnutls == "Y" ] || [ $input_install_gnutls == "y" ] then apt-get -y build-dep nettle apt-get -y build-dep p11-kit @@ -396,15 +418,17 @@ pauseToContinue fi ##################################################################################################################### # # INSTALL libcrack2 (Tested with 2.9.6 - https://github.com/cracklib/cracklib/archive/cracklib-2.9.6.tar.gz) # ##################################################################################################################### read -e -i "Y" -p "Install libcrack2 ? [Y/n]: " input_install_libcrack2 if [ $input_install_libcrack2 == "Y" ] || [ $input_install_libcrack2 == "y" ] then libcrack2_address="https://github.com/cracklib/cracklib/archive/cracklib-2.9.6.tar.gz" read -e -i "$libcrack2_address" -p "Enter the download address for libcrack2 (tar.gz): " input_libcrack2_address libcrack2_address="${input_libcrack2_address:-$libcrack2_address}" @@ -452,15 +476,17 @@ pauseToContinue fi ##################################################################################################################### # # INSTALL LibXML2 (Tested with 2.9.4 - http://xmlsoft.org/sources/libxml2-2.9.4.tar.gz) # ##################################################################################################################### read -e -i "Y" -p "Install LibXML2 ? [Y/n]: " input_install_libXML2 if [ $input_install_libXML2 == "Y" ] || [ $input_install_libXML2 == "y" ] then libXML2_address="http://xmlsoft.org/sources/libxml2-2.9.4.tar.gz" read -e -i "$libXML2_address" -p "Enter the download address for LibXML2 (tar.gz): " input_libXML2_address libXML2_address="${input_libXML2_address:-$libXML2_address}" @@ -486,15 +512,17 @@ then fi ##################################################################################################################### # # INSTALL libxslt (Tested with 1.1.29 - http://xmlsoft.org/sources/libxslt-1.1.29.tar.gz) # ##################################################################################################################### read -e -i "Y" -p "Install libxslt ? [Y/n]: " input_install_libxslt if [ $input_install_libxslt == "Y" ] || [ $input_install_libxslt == "y" ] then libxslt_address="http://xmlsoft.org/sources/libxslt-1.1.29.tar.gz" read -e -i "$libxslt_address" -p "Enter the download address for libxslt (tar.gz): " input_libxslt_address libxslt_address="${input_libxslt_address:-$libxslt_address}" @@ -520,15 +548,17 @@ then fi ##################################################################################################################### # # INSTALL jemalloc - https://github.com/jemalloc/jemalloc/archive/5.0.1.tar.gz # ##################################################################################################################### read -e -i "Y" -p "Install jemalloc ? [Y/n]: " input_install_jemalloc if [ $input_install_jemalloc == "Y" ] || [ $input_install_jemalloc == "y" ] then jemalloc_address="https://github.com/jemalloc/jemalloc/archive/5.0.1.tar.gz" read -e -i "$jemalloc_address" -p "Enter the download address for jemalloc (tar.gz): " input_jemalloc_address jemalloc_address="${input_jemalloc_address:-$jemalloc_address}" @@ -558,15 +588,17 @@ then fi ##################################################################################################################### # # INSTALL MariaDB 10.2.6 - https://mariadb.com/kb/en/mariadb/generic-build-instructions/ # ##################################################################################################################### read -e -i "Y" -p "Install MariaDB ? [Y/n]: " input_install_mariadb if [ $input_install_mariadb == "Y" ] || [ $input_install_mariadb == "y" ] then mariadb_address="https://downloads.mariadb.org/f/mariadb-10.2.6/source/mariadb-10.2.6.tar.gz?serve" read -e -i "$mariadb_address" -p "Enter the download address for MariaDB (tar.gz): " input_mariadb_address mariadb_address="${input_mariadb_address:-$mariadb_address}" @@ -607,9 +639,16 @@ then sed -i 's#lc-messages-dir.*=.*/usr/share/mysql#lc-messages-dir = /usr/local/mysql/share#g' /etc/mysql/my.cnf sed -i 's#basedir.*=.*/usr#basedir = /usr/local/mysql#g' /etc/mysql/my.cnf sed -i 's#datadir.*=.*/var/lib/mysql#datadir = /usr/local/mysql/data#g' /etc/mysql/my.cnf # Evaluate: Modify query_cache_size (=0) # Evaluate: Modify query_cache_type (=0) # Evaluate: Modify query_cache_limit (> 1M, or use smaller result sets) # setting /etc/my.cnf sed -i 's#socket.*=.*/tmp/mysql.sock#socket = /var/run/mysqld/mysqld.sock#g' /etc/my.cnf ## setting within the "[mysqld]" section ##echo 'performance_schema = ON' >> /etc/my.cnf my_print_defaults --mysqld pauseToContinue @@ -679,14 +718,18 @@ pauseToContinue fi ##################################################################################################################### # # INSTALL PHP (Tested with 7.1.6 - https://github.com/php/php-src/archive/php-7.1.6.tar.gz) # use config file from: https://github.com/kasparsd/php-7-debian/ # ##################################################################################################################### read -e -i "Y" -p "Install PHP ? [Y/n]: " input_install_php if [ $input_install_php == "Y" ] || [ $input_install_php == "y" ] then php_address="https://github.com/php/php-src/archive/php-7.1.6.tar.gz" read -e -i "$php_address" -p "Enter the download address for PHP 7 (tar.gz): " input_php_address php_address="${input_php_address:-$php_address}" @@ -802,13 +845,17 @@ pauseToContinue fi ##################################################################################################################### # # INSTALL nginx (Tested with 1.13.1 - https://nginx.org/download/nginx-1.13.1.tar.gz) # ##################################################################################################################### read -e -i "Y" -p "Install nginx ? [Y/n]: " input_install_nginx if [ $input_install_nginx == "Y" ] || [ $input_install_nginx == "y" ] then nginx_address="https://nginx.org/download/nginx-1.13.1.tar.gz" read -e -i "$nginx_address" -p "Enter the download address for CURL (tar.gz): " input_nginx_address nginx_address="${input_nginx_address:-$nginx_address}" @@ -869,11 +916,13 @@ fi # NOTES: # PHP 7 OPcache # Nginx: https://fak3r.com/2015/09/29/howto-build-nginx-with-http-2-support/ # https://www.nginx.com/blog/compiling-dynamic-modules-nginx-plus/ # SSL config @see https://hynek.me/articles/hardening-your-web-servers-ssl-ciphers/ # MariaDb: https://www.digitalocean.com/community/tutorials/how-to-secure-mysql-and-mariadb-databases-in-a-linux-vps # http://howtolamp.com/lamp/mysql/5.6/securing/ # TODO: # Install Let’s Encrypt Client @see https://www.nginx.com/blog/free-certificates-lets-encrypt-and-nginx/ # https://www.linode.com/docs/security/securing-your-server -
dertin revised this gist
Jul 4, 2017 . 1 changed file with 34 additions and 14 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -97,6 +97,7 @@ if [ $input_install_openssl == "Y" ] || [ $input_install_openssl == "y" ] then # Install OpenSSL (Tested with 1.1.0f - https://www.openssl.org/source/openssl-1.1.0f.tar.gz) # /usr/local/ssl/openssl.cnf openssl_address="https://www.openssl.org/source/openssl-1.1.0f.tar.gz" read -e -i "$openssl_address" -p "Enter the download address for OpenSSL (tar.gz): " input_openssl_address @@ -548,7 +549,6 @@ then ./configure --prefix=/usr/local --with-xslroot=/usr/share/xml/docbook/stylesheet/docbook-xsl/ make make dist make install @@ -603,7 +603,7 @@ then cp ./support-files/my-medium.cnf /etc/my.cnf cp /etc/mysql/my.cnf /etc/mysql/my.cnf.back # setting /etc/mysql/my.cnf sed -i 's#lc-messages-dir.*=.*/usr/share/mysql#lc-messages-dir = /usr/local/mysql/share#g' /etc/mysql/my.cnf sed -i 's#basedir.*=.*/usr#basedir = /usr/local/mysql#g' /etc/mysql/my.cnf sed -i 's#datadir.*=.*/var/lib/mysql#datadir = /usr/local/mysql/data#g' /etc/mysql/my.cnf @@ -684,7 +684,7 @@ read -e -i "Y" -p "Install PHP ? [Y/n]: " input_install_php if [ $input_install_php == "Y" ] || [ $input_install_php == "y" ] then # Install PHP (Tested with 7.1.6 - https://github.com/php/php-src/archive/php-7.1.6.tar.gz) # based on https://github.com/kasparsd/php-7-debian/ php_address="https://github.com/php/php-src/archive/php-7.1.6.tar.gz" @@ -744,10 +744,10 @@ then --with-fpm-user=www-data \ --with-fpm-group=www-data" CPPFLAGS="-I/usr/local/include -I/usr/include/i386-linux-gnu" \ LDFLAGS="-L/usr/local/lib -Wl,-rpath,/usr/local/lib" \ LDCONFIG=-L/usr/local/lib \ LIBS="-ldl" \ ./configure $CONFIGURE_STRING make @@ -761,13 +761,34 @@ then ln -s /usr/local/php7/sbin/php-fpm /usr/local/php7/sbin/php7-fpm # Add config files cp php.ini-production /usr/local/php7/lib/php.ini-production cp php.ini-development /usr/local/php7/lib/php.ini-development cp php.ini-production /usr/local/php7/lib/php.ini touch /usr/local/php7/etc/php-fpm.d/www.conf echo '[www]' > /usr/local/php7/etc/php-fpm.d/www.conf echo 'user = www-data' >> /usr/local/php7/etc/php-fpm.d/www.conf echo 'group = www-data' >> /usr/local/php7/etc/php-fpm.d/www.conf echo 'listen = 127.0.0.1:9007' >> /usr/local/php7/etc/php-fpm.d/www.conf echo 'pm = dynamic' >> /usr/local/php7/etc/php-fpm.d/www.conf echo 'pm.max_children = 5' >> /usr/local/php7/etc/php-fpm.d/www.conf echo 'pm.start_servers = 2' >> /usr/local/php7/etc/php-fpm.d/www.conf echo 'pm.min_spare_servers = 1' >> /usr/local/php7/etc/php-fpm.d/www.conf echo 'pm.max_spare_servers = 3' >> /usr/local/php7/etc/php-fpm.d/www.conf touch /usr/local/php7/etc/php-fpm.conf echo '[global]' > /usr/local/php7/etc/php-fpm.conf echo 'pid = /var/run/php7-fpm.pid' >> /usr/local/php7/etc/php-fpm.conf echo 'error_log = /var/log/php7-fpm.log' >> /usr/local/php7/etc/php-fpm.conf echo 'include=/usr/local/php7/etc/php-fpm.d/*.conf' >> /usr/local/php7/etc/php-fpm.conf touch /usr/local/php7/etc/conf.d/modules.ini echo '# Zend OPcache' > /usr/local/php7/etc/conf.d/modules.ini echo 'zend_extension=opcache.so' >> /usr/local/php7/etc/conf.d/modules.ini # Add the init script wget https://raw.githubusercontent.com/kasparsd/php-7-debian/master/conf/php7-fpm.init -O /etc/init.d/php7-fpm chmod +x /etc/init.d/php7-fpm update-rc.d php7-fpm defaults @@ -852,7 +873,6 @@ fi # https://www.nginx.com/blog/compiling-dynamic-modules-nginx-plus/ # SSL config @see https://hynek.me/articles/hardening-your-web-servers-ssl-ciphers/ # Install Let’s Encrypt Client @see https://www.nginx.com/blog/free-certificates-lets-encrypt-and-nginx/ # SEE: https://www.digitalocean.com/community/tutorials/how-to-secure-mysql-and-mariadb-databases-in-a-linux-vps # http://howtolamp.com/lamp/mysql/5.6/securing/ -
dertin revised this gist
Jul 4, 2017 . 1 changed file with 8 additions and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -35,7 +35,14 @@ function pauseToContinue() { # init source /etc/profile read -e -i "Y" -p "Delete building directories ? [Y/n]: " input_delete_build if [ $input_delete_build == "Y" ] || [ $input_delete_build == "y" ] then rm -rf /var/tmp/*_build fi read -e -i "Y" -p "Install Essential ? [Y/n]: " input_install_essential if [ $input_install_essential == "Y" ] || [ $input_install_essential == "y" ] -
dertin revised this gist
Jul 4, 2017 . 1 changed file with 2 additions and 0 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -628,6 +628,8 @@ then chmod +x /etc/init.d/mysql update-rc.d mysql defaults ldconfig service mysql start ./bin/mysql_secure_installation --socket=/var/run/mysqld/mysqld.sock -
dertin revised this gist
Jul 4, 2017 . 1 changed file with 5 additions and 3 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -34,6 +34,8 @@ function pauseToContinue() { # init source /etc/profile read -e -i "Y" -p "Install Essential ? [Y/n]: " input_install_essential if [ $input_install_essential == "Y" ] || [ $input_install_essential == "y" ] @@ -708,10 +710,10 @@ then --enable-mbstring \ --with-mcrypt \ --with-mhash \ --enable-mysqlnd=shared \ --with-mysqli=shared,mysqlnd \ --with-pdo-mysql=shared,mysqlnd \ --with-mysql-sock=/var/run/mysqld/mysqld.sock \ --with-openssl \ --enable-pcntl \ --with-pspell \ -
dertin revised this gist
Jul 3, 2017 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -710,7 +710,7 @@ then --with-mhash \ --enable-mysqlnd \ --with-mysql-sock=/var/run/mysqld/mysqld.sock \ --with-mysqli=/usr/local/mysql/bin/mariadb_config \ --with-pdo-mysql=/usr/local/mysql \ --with-openssl \ --enable-pcntl \ -
dertin revised this gist
Jul 3, 2017 . 1 changed file with 2 additions and 2 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -710,8 +710,8 @@ then --with-mhash \ --enable-mysqlnd \ --with-mysql-sock=/var/run/mysqld/mysqld.sock \ --with-mysqli=/usr/local/mysql/bin/mysql_config \ --with-pdo-mysql=/usr/local/mysql \ --with-openssl \ --enable-pcntl \ --with-pspell \ -
dertin revised this gist
Jul 3, 2017 . 1 changed file with 2 additions and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -56,7 +56,8 @@ then libstdc++-4.9-dev autoconf-archive gnu-standards gettext gcc-4.9-locales debian-keyring \ g++-multilib g++-4.9-multilib gcc-multilib flex liblinear-tools liblinear-dev mcrypt \ gcj-jdk valgrind kytea libkytea-dev valgrind-mpi valkyrie \ libdbi-perl libboost-all-dev libreadline-dev rsync net-tools libdbd-mysql-perl \ re2c apt-get -y remove --purge --auto-remove curl -
dertin revised this gist
Jul 3, 2017 . 1 changed file with 4 additions and 5 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -708,7 +708,6 @@ then --with-mcrypt \ --with-mhash \ --enable-mysqlnd \ --with-mysql-sock=/var/run/mysqld/mysqld.sock \ --with-mysqli=mysqld \ --with-pdo-mysql=mysqld \ @@ -733,10 +732,10 @@ then --with-fpm-user=www-data \ --with-fpm-group=www-data" #CPPFLAGS="-I/usr/local/include -I/usr/include/i386-linux-gnu" \ #LDFLAGS="-L/usr/local/lib -Wl,-rpath,/usr/local/lib" \ #LDCONFIG=-L/usr/local/lib \ #LIBS="-ldl" \ ./configure $CONFIGURE_STRING make -
dertin revised this gist
Jul 3, 2017 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -48,7 +48,7 @@ then libpcre3 libpcre3-dev zlib1g-dev golang libssl-dev cmake-data cmake libtiffxx5 libexpat1-dev libpng12-dev libfreetype6-dev \ pkg-config libfontconfig1-dev libjpeg62-turbo-dev libjpeg-dev xorg-sgml-doctools \ x11proto-core-dev libxau-dev libxdmcp-dev needrestart g++ make binutils autoconf automake autotools-dev libtool \ libbz2-dev zlib1g-dev libcunit1-dev libxml2-dev libev-dev libevent-dev libjansson-dev \ libjemalloc-dev cython python3-dev python-setuptools libaio-dev libncurses5-dev \ m4 libunistring-dev libgmp-dev trousers libidn2-0 libunbound-dev \ bison libmcrypt-dev libicu-dev libltdl-dev libjpeg-dev libpng-dev libpspell-dev libreadline-dev \ -
dertin revised this gist
Jul 3, 2017 . 1 changed file with 3 additions and 6 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -434,9 +434,8 @@ then gunzip -v /usr/share/dict/cracklib-words.gz ln -v -sf cracklib-words /usr/share/dict/words install -v -m755 -d /usr/local/lib/cracklib #create-cracklib-dict /usr/share/dict/cracklib-words /usr/share/dict/cracklib-extra-words create-cracklib-dict /usr/share/dict/cracklib-words pauseToContinue @@ -578,9 +577,7 @@ then -DWITH_ZLIB=system -DWITH_SSL=system -DWITH_JEMALLOC=system \ -DDEFAULT_CHARSET=utf8 -DDEFAULT_COLLATION=utf8_spanish_ci \ -DWITH_DEBUG=0 -DWITH_VALGRIND=0 -DPLUGIN_EXAMPLE=NO make make install -
dertin revised this gist
Jul 3, 2017 . 1 changed file with 2 additions and 2 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -44,8 +44,8 @@ then apt-get -y update apt-get -y upgrade apt-get -y install coreutils build-essential expect perl file sudo cron xsltproc docbook-xsl docbook-xml \ libpcre3 libpcre3-dev zlib1g-dev golang libssl-dev cmake-data cmake libtiffxx5 libexpat1-dev libpng12-dev libfreetype6-dev \ pkg-config libfontconfig1-dev libjpeg62-turbo-dev libjpeg-dev xorg-sgml-doctools \ x11proto-core-dev libxau-dev libxdmcp-dev needrestart g++ make binutils autoconf automake autotools-dev libtool \ zlib1g-dev libcunit1-dev libxml2-dev libev-dev libevent-dev libjansson-dev \ -
dertin revised this gist
Jul 3, 2017 . 1 changed file with 3 additions and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -539,7 +539,9 @@ then ./configure --prefix=/usr/local --with-xslroot=/usr/share/xml/docbook/stylesheet/docbook-xsl/ make #make install_bin install_include install_lib make dist make install ldconfig -
dertin revised this gist
Jul 3, 2017 . 1 changed file with 2 additions and 2 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -44,7 +44,7 @@ then apt-get -y update apt-get -y upgrade apt-get -y install coreutils build-essential expect perl file sudo cron docbook-xsl libpcre3 libpcre3-dev zlib1g-dev \ golang libssl-dev cmake-data cmake libtiffxx5 libexpat1-dev libpng12-dev libfreetype6-dev \ pkg-config libfontconfig1-dev libjpeg62-turbo-dev libjpeg-dev xorg-sgml-doctools \ x11proto-core-dev libxau-dev libxdmcp-dev needrestart g++ make binutils autoconf automake autotools-dev libtool \ @@ -536,7 +536,7 @@ then LDFLAGS="-L/usr/local/lib -Wl,-rpath,/usr/local/lib" \ LDCONFIG=-L/usr/local/lib \ LIBS="-ldl" \ ./configure --prefix=/usr/local --with-xslroot=/usr/share/xml/docbook/stylesheet/docbook-xsl/ make make install_bin install_include install_lib -
dertin revised this gist
Jul 3, 2017 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -539,7 +539,7 @@ then ./configure --prefix=/usr/local make make install_bin install_include install_lib ldconfig -
dertin revised this gist
Jul 3, 2017 . 1 changed file with 3 additions and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -530,11 +530,13 @@ then # Func wgetAndDecompress (dirTmp, folderTmp, downloadAddress) wgetAndDecompress $jemalloc_install_tmp_dir jemalloc_src $jemalloc_address ./autogen.sh CPPFLAGS="-I/usr/local/include -I/usr/include/i386-linux-gnu" \ LDFLAGS="-L/usr/local/lib -Wl,-rpath,/usr/local/lib" \ LDCONFIG=-L/usr/local/lib \ LIBS="-ldl" \ ./configure --prefix=/usr/local make make install -
dertin revised this gist
Jul 3, 2017 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -534,7 +534,7 @@ then LDFLAGS="-L/usr/local/lib -Wl,-rpath,/usr/local/lib" \ LDCONFIG=-L/usr/local/lib \ LIBS="-ldl" \ ./autogen.sh --prefix=/usr/local make make install -
dertin revised this gist
Jul 3, 2017 . 1 changed file with 2 additions and 2 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -520,11 +520,11 @@ then # Install jemalloc - https://github.com/jemalloc/jemalloc/archive/5.0.1.tar.gz jemalloc_address="https://github.com/jemalloc/jemalloc/archive/5.0.1.tar.gz" read -e -i "$jemalloc_address" -p "Enter the download address for jemalloc (tar.gz): " input_jemalloc_address jemalloc_address="${input_jemalloc_address:-$jemalloc_address}" jemalloc_install_tmp_dir="/var/tmp/jemalloc_build" read -e -i "$jemalloc_install_tmp_dir" -p "Enter temporary directory for jemalloc installation: " input_jemalloc_install_tmp_dir jemalloc_install_tmp_dir="${input_jemalloc_install_tmp_dir:-$jemalloc_install_tmp_dir}" # Func wgetAndDecompress (dirTmp, folderTmp, downloadAddress) -
dertin revised this gist
Jul 3, 2017 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -570,7 +570,7 @@ then cmake . -DBUILD_CONFIG=mysql_release \ -DCMAKE_C_FLAGS="-I/usr/local/include -I/usr/include/i386-linux-gnu" \ -DWITH_INNODB_LZ4=ON -DWITH_INNODB_LZMA=OFF -DWITH_INNODB_LZO=OFF -DWITH_INNODB_BZIP2=OFF \ -DWITH_ZLIB=system -DWITH_SSL=system -DWITH_JEMALLOC=system \ -DDEFAULT_CHARSET=utf8 -DDEFAULT_COLLATION=utf8_spanish_ci \ -DWITH_DEBUG=0 -DWITH_VALGRIND=0 -DPLUGIN_EXAMPLE=NO
NewerOlder