Skip to content

Instantly share code, notes, and snippets.

🏠
Working from home

Nilton Oliveira jniltinho

🏠
Working from home
Block or report user

Report or block jniltinho

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@jniltinho
jniltinho / install_tomcat.sh
Last active Jun 3, 2020
Install Tomcat 9 + JRE 8 on Linux
View install_tomcat.sh
#!/bin/bash
### Install Tomcat 9 + JRE8 on Ubuntu, Debian, CentOS, OpenSUSE 64Bits
### URL com Screencast de Instalação do Tomcat9
### http://www.linuxpro.com.br/2017/04/instalando-tomcat-9-no-ubuntu/
### Link: https://www.digitalocean.com/community/tutorials/how-to-install-apache-tomcat-8-on-centos-7
## First install wget
## Primeiro instale o wget
@jniltinho
jniltinho / install_golang.sh
Last active Jun 1, 2020
Install Golang on Linux
View install_golang.sh
#!/bin/bash
## Install Golang 1.14.2 64Bits on Linux (Debian|Ubuntu|OpenSUSE|CentOS)
## http://www.linuxpro.com.br/2015/06/golang-aula-1-instalacao-da-linguagem-no-linux.html
## Run as root (sudo su)
## Thank's @geosoft1 | @gwmoura
GO_URL="https://storage.googleapis.com/golang"
GO_VERSION=${1:-"1.14.2"}
GO_FILE="go$GO_VERSION.linux-amd64.tar.gz"
@jniltinho
jniltinho / create-deb-samba4.sh
Last active May 26, 2020
Create Deb Samba4
View create-deb-samba4.sh
#!/bin/bash
## Create DEB package Samba4 4.12.3 (Ubuntu 18.04)
## http://sig9.hatenablog.com/entry/2017/12/04/000000
## https://wiki.samba.org/index.php/Package_Dependencies_Required_to_Build_Samba
## https://github.com/jniltinho/go-samba4/releases
## https://www.tecmint.com/install-samba4-active-directory-ubuntu/
## https://blog.ricosharp.com/posts/2019/Samba-4-Active-Directory-Domain-Controller-on-Ubuntu-18-04-Server
## http://www.bosontreinamentos.com.br/linux/samba-4-instalacao-e-provisionamento/
## https://wiki.samba.org/index.php/Installing_RSAT
## https://www.tecmint.com/manage-samba4-ad-from-windows-via-rsat
@jniltinho
jniltinho / install_samba4.sh
Last active May 25, 2020
Compile Samba4 for Debian/Ubuntu
View install_samba4.sh
#!/bin/bash
## Install Samba4 4.12.3
## On Ubuntu 18.04 64Bits
## Author: Nilton OS -- www.linuxpro.com.br
## Link: https://github.com/jniltinho/go-samba4
## https://wiki.samba.org/index.php/Package_Dependencies_Required_to_Build_Samba
## Version: 0.6
### Tested on Ubuntu 18.04 64Bits
apt-get update
@jniltinho
jniltinho / myip.go
Created Mar 26, 2014
Get My IP Golang
View myip.go
package main
/*
URL: https://github.com/mccoyst/myip/blob/master/myip.go
URL: http://changsijay.com/2013/07/28/golang-get-ip-address/
*/
import (
"net"
"os"
@jniltinho
jniltinho / install_gogs_ubuntu.sh
Last active May 15, 2020
Install Gogs on Debian or Ubuntu
View install_gogs_ubuntu.sh
#!/bin/bash
## Install Gogs v0.11.4 + Nginx Webserver + Mysql
## On Debian, Ubuntu 64Bits
## Author: Nilton OS -- www.linuxpro.com.br
## Version: 3.5
### Tested on Ubuntu 16.04 LTS 64Bits
### Tested on Debian 8/9 64Bits
echo 'install_gogs_ubuntu.sh'
@jniltinho
jniltinho / install-caddy-linux.sh
Last active May 13, 2020
Install Caddy Web Server on Linux
View install-caddy-linux.sh
#!/bin/bash
## Install Caddy 2 Web Server Linux
## https://temelkuran.ist/caddy-server-2-php-fpm-installation-on-ubuntu-server-19-10/
## https://caddy.community/t/fastcgi-using-unix-socket-with-caddy-2/6376
## https://caddy.community/t/v2-subfolder-proxy-to-upstream-root/7095/7
## https://caddyserver.com/
# https://github.com/caddyserver/caddy
wget https://github.com/caddyserver/caddy/releases/download/v2.0.0/caddy_2.0.0_linux_amd64.tar.gz
tar -xvf caddy_2.0.0_linux_amd64.tar.gz
@jniltinho
jniltinho / install_ffmpeg-nvenc_obs.sh
Last active May 5, 2020
Install FFMPEG GIT + NVENC SDK 8 + OBS GIT
View install_ffmpeg-nvenc_obs.sh
#!/bin/bash
## Install FFMPEG GIT Ubuntu 16.04 64Bits
## http://www.linuxpro.com.br/2017/04/compile-ffmpeg-nvenc-ubuntu/
## Pacote Compilado no GITHUB: https://github.com/jniltinho/oficinadotux
## Run as root (sudo su)
## Links
## http://ftp.eq.uc.pt/software/Linux/deb-multimedia/pool/main/v/vid.stab/
## https://gist.github.com/Brainiarc7/4b49f463a08377530df6cecb8171306a
## https://developer.nvidia.com/ffmpeg
@jniltinho
jniltinho / install-hadoop-opensuse.sh
Last active May 3, 2020
Install Hadoop on OpenSUSE 42.2
View install-hadoop-opensuse.sh
#!/bin/bash
### Install Hadoop + JRE8 on OpenSUSE 64Bits
### https://www.vivaolinux.com.br/artigo/Instalando-Apache-Hadoop?pagina=2
### http://www.michael-noll.com/tutorials/running-hadoop-on-ubuntu-linux-single-node-cluster/
### http://thepowerofdata.io/setting-up-a-apache-hadoop-2-7-single-node-on-ubuntu-14-04/
### http://www.scratchtoskills.com/install-hadoop-2-7-2-on-ubuntu-15-10-single-node-cluster/
### http://pingax.com/install-hadoop2-6-0-on-ubuntu/
@jniltinho
jniltinho / install_php71_centos.sh
Last active May 1, 2020
Install PHP 7.1 on CentOS 7.3
View install_php71_centos.sh
#!/bin/bash
### Install PHP 7.1 on CentOS 7.3 64Bits
### http://www.shaunfreeman.name/compiling-php-7-on-centos/
### https://www.howtoforge.com/tutorial/how-to-install-php-7-on-debian/
yum -y install git gcc gcc-c++ libxml2-devel pkgconfig openssl-devel bzip2-devel curl-devel libpng-devel libjpeg-devel
yum -y install libXpm-devel freetype-devel gmp-devel libmcrypt-devel mariadb-devel aspell-devel recode-devel libpqxx-devel
yum -y install autoconf bison re2c libicu-devel libwebp-devel wget unzip net-tools libc-client-devel libpng12-devel
yum -y install libxslt-devel
You can’t perform that action at this time.