Skip to content

Instantly share code, notes, and snippets.

Avatar
🏠
Working from home

Nilton Oliveira jniltinho

🏠
Working from home
View GitHub Profile
View install-gitlab-ubuntu.sh
#!/bin/bash
## Versão do OS 13.04 Server 64 Bits
## Disco de 30GB e 2GB de RAM
## Instalação limpa só com ssh e vi
## Vamos instalar com Mysql e Webserver Nginx
## Nesse Screencast não vou cobrir a instalação do Ubuntu pois é muito simples
## Versão que vai ser instalada é a 6.1 estavel do Gitlab
## Passo a passo de Instalação está nesse link
## https://github.com/gitlabhq/gitlabhq/blob/6-1-stable/doc/install/installation.md
View install-gitlab-opensuse.sh
#!/bin/bash
## Install Gitlab 5.2 on OpenSUSE 12.3 32Bits
## Project http://gitlab.org/
## Base https://github.com/gitlabhq/gitlabhq/blob/5-0-stable/doc/install/installation.md
## Autor: Nilton OS -- Version 0.9 14-06-2013 -- http://wwww.linuxpro.com.br/blog
## Change Vars !!!
SERVER_IP="10.0.2.15"
SERVER_FQDN="gitlab.linuxpro.com.br"
DOMIAN="linuxpro.com.br"
View setup-web2py-nginx-uwsgi-centos64.sh
#!/bin/bash
# Autor: Nilton OS -- www.linuxpro.com.br
echo 'setup-web2py-nginx-uwsgi-centos64.sh'
echo 'Support CentOS 6.4'
echo 'Installs Nginx 1.4.1 + uWSGI + Web2py'
# Get Web2py Admin Password
echo -e "Web2py Admin Password: \c "
read PW
@jniltinho
jniltinho / auth_samba4.py
Created May 19, 2013
Auth Samba4 for Flask Framework
View auth_samba4.py
#!/usr/bin/env python
# -*- coding: utf-8 -*-
## Versao 0.1
import os, sys
import argparse
lib_samba = ['/opt/samba4/lib/python2.7/site-packages', '/usr/local/samba/lib/python2.7/site-packages']
for i in lib_samba:
@jniltinho
jniltinho / install_otrs_nginx.sh
Created Oct 3, 2013
Install OTRS + Nginx + ISPConfig3 OpenSUSE 12.2
View install_otrs_nginx.sh
## Install ISPCOnfig3 + Nginx + OTRS + OpenSUSE 12.2
## Howto instal ISPConfig3
## http://www.howtoforge.com/perfect-server-opensuse-12.2-x86_64-nginx-dovecot-ispconfig-3
## Install Nginx 1.5
wget http://download.opensuse.org/repositories/home:/microchip8:/branches:/server:/http/openSUSE_12.2/x86_64/nginx-1.5.6-55.1.x86_64.rpm
zypper in nginx-1.5.6-55.1.x86_64.rpm
usermod -A www nginx
@jniltinho
jniltinho / setup-quokka-nginx-uwsgi-opensuse.sh
Last active Dec 21, 2017
Install Quokka Project + Nginx + uWSGI OpenSUSE 11.X, 12.X, 13.X
View setup-quokka-nginx-uwsgi-opensuse.sh
#!/bin/bash
# Author: Nilton OS -- www.linuxpro.com.br
# Version: 0.4
# Source: https://gist.github.com/jniltinho/6998822
echo 'setup-quokka-nginx-uwsgi-opensuse.sh'
echo 'Support OpenSUSE 11.X, 12.X, 13.X'
echo 'Installs Nginx + uWSGI + Quokka'
# Check if user has root privileges
@jniltinho
jniltinho / setup-quokka-nginx-uwsgi-ubuntu.sh
Last active Jun 16, 2016
Install CMS Quokka + Nginx + uWSGI Ubuntu
View setup-quokka-nginx-uwsgi-ubuntu.sh
#!/bin/bash
# Author: Nilton OS -- www.linuxpro.com.br
# Version: 0.5
echo 'setup-quokka-nginx-uwsgi-ubuntu.sh'
echo 'Support Ubuntu/Debian'
echo 'Installs Nginx + uWSGI + Quokka'
echo 'Requires ubuntu 12.04+ and installs nginx + uwsgi'
# Check if user has root privileges
View setup-quokka-gunicorn.sh
#!/bin/bash
## Install and Configure Quokka + Gunicorn
## Link: http://www.onurguzel.com/how-to-run-flask-applications-with-nginx-using-gunicorn/
## Link: http://michal.karzynski.pl/blog/2013/06/09/django-nginx-gunicorn-virtualenv-supervisor/
quokka_folder="/home/quokka/quokka-env"
$quokka_folder/bin/pip install gunicorn
$quokka_folder/bin/gunicorn -u quokka -g quokka --chdir $quokka_folder/quokka --bind 0.0.0.0 wsgi
@jniltinho
jniltinho / setup-web2py-nginx-uwsgi-opensuse.sh
Last active Dec 26, 2015
Install Web2py + Nginx + uWSGI
View setup-web2py-nginx-uwsgi-opensuse.sh
#!/bin/bash
# Author: Nilton OS www.linuxpro.com.br
echo 'setup-web2py-nginx-uwsgi-opensuse.sh'
echo 'Requires OpenSUSE 12.X, 13.X 32/64Bits and installs Nginx + uWSGI + Web2py'
# Check if user has root privileges
if [[ $EUID -ne 0 ]]; then
echo "You must run the script as root or using sudo"
exit 1
@jniltinho
jniltinho / install-modoboa-opensuse.sh
Created Oct 26, 2013
Install Modoboa Webmail Python on OpenSUSE 12.3
View install-modoboa-opensuse.sh
#!/bin/bash
## Install Modoboa Webmail Python on OpenSUSE 12.3
## Author: Nilton OS www.linuxpro.com.br
# Check if user has root privileges
if [[ $EUID -ne 0 ]]; then
echo "You must run the script as root or using sudo"
exit 1
fi