Skip to content

Instantly share code, notes, and snippets.

View aortmannm's full-sized avatar

Adrian 'Ronny the fifth' Ortmann aortmannm

View GitHub Profile
@aortmannm
aortmannm / ubuntu.txt
Last active December 14, 2015 14:08
gitlabhq installation ubuntu
sudo apt-get update
sudo apt-get upgrade
## Install vim
sudo apt-get install -y vim
## Install required packages
sudo apt-get install -y build-essential zlib1g-dev libyaml-dev libssl-dev libgdbm-dev libreadline-dev libncurses5-dev libffi-dev curl git-core openssh-server redis-server postfix checkinstall libxml2-dev libxslt-dev libcurl4-openssl-dev libicu-dev
## Install Python
@aortmannm
aortmannm / npmjs.txt
Last active December 14, 2015 18:19
npmjs reporitory
## Install CouchDB with all necessary packages
pkgin in couchdb
## /opt/local/etc/couchdb Edit the local.ini
[httpd]
secure_rewrites = false
## /opt/local/etc/couchdb edit the default.ini
bind_address = 0.0.0.0
@aortmannm
aortmannm / npmjs.rb
Last active December 14, 2015 18:19
npmjs repository
## install couchdb package
package 'couchdb' do
version '1.2.0'
action :install
end
## download local.ini
cookbook_file '/opt/local/etc/couchdb/local.ini' do
source 'local.ini'
owner 'root'
@aortmannm
aortmannm / fifo.txt
Last active December 14, 2015 18:59
Fifo installation
echo "http://release.project-fifo.net/pkg/rel/" >>/opt/local/etc/pkgin/repositories.conf
pkgin -fy up
pkgin install snarl sniffle howl wiggle jingles haproxy
cp /opt/local/jingles/config/nginx.conf /opt/local/etc/nginx/nginx.conf
cp /opt/local/jingles/config/haproxy.cfg /opt/local/etc/haproxy.cfg
svcadm enable epmd snarl sniffle howl wiggle nginx haproxy
@aortmannm
aortmannm / chunter.txt
Last active December 14, 2015 19:09
install chunter
cd /opt
curl -O http://release.project-fifo.net/chunter/rel/chunter-latest.gz
gunzip chunter-latest.gz
## you need to tyupe yes cause of the newest SmartOS Version
sh chunter-latest
@aortmannm
aortmannm / fifo.rb
Last active December 15, 2015 03:39
Fifo Recipe for installation in a Local Zone
## Write a new source in the pkgin config file
execute 'pkgin_config' do
command "echo 'http://release.project-fifo.net/pkg/#{node[:fifo][:release]}/' >>/opt/local/etc/pkgin/repositories.conf"
action :run
end
## Update the pkgin sources
execute 'update_pkgin' do
command 'pkgin -fy up'
action :run
@aortmannm
aortmannm / warning.log
Last active December 15, 2015 03:58
fehler log snarl
2013-03-19 16:24:47.261 [warning] <0.121.0>@riak_core_ring_manager:reload_ring:231 No ring file available.
2013-03-19 16:26:32.838 [warning] <0.883.0>@snarl_entity_write_fsm:waiting:137 Write(1) ok
2013-03-19 16:26:32.839 [warning] <0.883.0>@snarl_entity_write_fsm:waiting:137 Write(2) ok
2013-03-19 16:26:32.842 [warning] <0.883.0>@snarl_entity_write_fsm:waiting:137 Write(3) ok
2013-03-19 16:26:40.851 [warning] <0.955.0>@snarl_entity_write_fsm:waiting:137 Write(1) ok
2013-03-19 16:26:40.852 [warning] <0.955.0>@snarl_entity_write_fsm:waiting:137 Write(2) ok
2013-03-19 16:26:40.854 [warning] <0.955.0>@snarl_entity_write_fsm:waiting:137 Write(3) ok
2013-03-19 16:26:48.681 [warning] <0.1028.0>@snarl_entity_write_fsm:waiting:137 Write(1) ok
2013-03-19 16:26:48.682 [warning] <0.1028.0>@snarl_entity_write_fsm:waiting:137 Write(2) ok
2013-03-19 16:26:48.684 [warning] <0.1028.0>@snarl_entity_write_fsm:waiting:137 Write(3) ok
@aortmannm
aortmannm / zabbix-server.txt
Last active May 5, 2020 01:38
installing zabbix on smartOS
## download newest Version of zabbix
wget http://downloads.sourceforge.net/project/zabbix/ZABBIX%20Latest%20Stable/2.0.5/zabbix-2.0.5.tar.gz?r=http%3A%2F%2Fwww.zabbix.com%2Fdownload.php&ts=1364462224&use_mirror=freefr
## untar the package
tar -zxvf zabbix-2.0.5.tar.gz
## add user and group zabbix
groupadd zabbix
useradd -g zabbix zabbix
@aortmannm
aortmannm / zabbix-percona.txt
Last active December 15, 2015 12:48
configure percona for zabbix server
svcadm disable mysql:percona
mysqld_safe --skip-grant-tables &
mysql -uroot
mysql> use mysql;
mysql> update user set password=PASSWORD("password") where User='root';
mysql> flush privileges;
mysql> quit;
@aortmannm
aortmannm / php.ini
Last active March 29, 2018 20:40
fix php.ini for zabbix server
[PHP]
;;;;;;;;;;;;;;;;;;;
; About php.ini ;
;;;;;;;;;;;;;;;;;;;
; PHP's initialization file, generally called php.ini, is responsible for
; configuring many of the aspects of PHP's behavior.
; PHP attempts to find and load this configuration from a number of locations.
; The following is a summary of its search order: