Skip to content

Instantly share code, notes, and snippets.

@jdell64
Last active October 3, 2017 15:24
Show Gist options
  • Save jdell64/2a6621b98939a35ef1bed3d5739b846c to your computer and use it in GitHub Desktop.
Save jdell64/2a6621b98939a35ef1bed3d5739b846c to your computer and use it in GitHub Desktop.
Install services without root
# in my home dir
cd ~
mkdir opt
mkdir src
cd src/
## DEPENDENCIES
# PCRE version 4.4 - 8.40
wget https://ftp.pcre.org/pub/pcre/pcre-8.40.tar.gz && tar xzvf pcre-8.40.tar.gz
# zlib version 1.1.3 - 1.2.11
wget http://www.zlib.net/zlib-1.2.11.tar.gz && tar xzvf zlib-1.2.11.tar.gz
# OpenSSL version 1.0.2 - 1.1.0
wget https://www.openssl.org/source/openssl-1.1.0f.tar.gz && tar xzvf openssl-1.1.0f.tar.gz
wget https://nginx.org/download/nginx-1.13.1.tar.gz && tar zxvf nginx-1.13.1.tar.gz
rm -rf *.tar.gz
cd nginx-1.13.1/
./configure --prefix=$HOME/opt/nginx \
--with-openssl=../openssl-1.1.0f \
--with-openssl-opt=enable-ec_nistp_64_gcc_128 \
--with-openssl-opt=no-nextprotoneg \
--with-openssl-opt=no-weak-ssl-ciphers \
--with-openssl-opt=no-ssl3 \
--with-pcre=../pcre-8.40 \
--with-zlib=../zlib-1.2.11 \
--with-compat \
--with-file-aio \
--with-threads \
--with-http_addition_module \
--with-http_auth_request_module \
--with-http_dav_module \
--with-http_flv_module \
--with-http_gunzip_module \
--with-http_gzip_static_module \
--with-http_mp4_module \
--with-http_random_index_module \
--with-http_realip_module \
--with-http_slice_module \
--with-http_ssl_module \
--with-http_sub_module \
--with-http_stub_status_module \
--with-http_v2_module \
--with-http_secure_link_module \
--with-mail \
--with-mail_ssl_module \
--with-stream \
--with-stream_realip_module \
--with-stream_ssl_module \
--with-stream_ssl_preread_module \
--with-debug
make -j $(nproc) # or just `make`
make install
# should be installed in ~/opt
# from http://blog.endpoint.com/2013/06/installing-postgresql-without-root.html
# DL the source
./configure --prefix=$HOME/postgres/ --with-python PYTHON=/usr/bin/python2.7
make -j $(nproc) # or just `make`
make install
pip3 install pipenv --upgrade --no-cache-dir --user
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment