Skip to content

Instantly share code, notes, and snippets.

View tkuennen's full-sized avatar

Travis Kuennen tkuennen

View GitHub Profile
@tkuennen
tkuennen / elk-install.sh
Last active May 16, 2019 09:07
ELK Stack Install (RHEL 7)
cd ~
wget --no-cookies --no-check-certificate --header "Cookie: gpw_e24=http%3A%2F%2Fwww.oracle.com%2F; oraclelicense=accept-securebackup-cookie" "http://download.oracle.com/otn-pub/java/jdk/8u65-b17/jdk-8u65-linux-x64.rpm"
sudo yum localinstall jdk-8u65-linux-x64.rpm
rm ~/jdk-8u65-linux-x64.rpm
sudo rpm --import http://packages.elastic.co/GPG-KEY-elasticsearch
echo '[elasticsearch-2.1]' >> /etc/yum.repos.d/elasticsearch.repo'
echo 'name=Elasticsearch repository for 2.x packages' >> /etc/yum.repos.d/elasticsearch.repo'
echo 'baseurl=http://packages.elastic.co/elasticsearch/2.x/centos' >> /etc/yum.repos.d/elasticsearch.repo'
# http://iplists.firehol.org/
yum -y install zlib1g-dev gcc make git autoconf autogen automake pkg-config curl ipset
cd /tmp
# Download iprange and firehol from github
git clone https://github.com/firehol/iprange.git iprange.git
git clone https://github.com/firehol/firehol.git firehol.git
# Install iprange
OpenVPN Decoders
/var/ossec/etc/ossec.conf (add)
<include>openvpn.xml</include>
/var/ossec/rules/openvpn.xml
<group name="openvpn">
<program_name>ovpn-server</program_name>
</group>
<!-- Catch TCP connections -->
<group name="openvpn-tcp-event">

Keybase proof

I hereby claim:

  • I am tkuennen on github.
  • I am tkuennen (https://keybase.io/tkuennen) on keybase.
  • I have a public key whose fingerprint is 4C8B 2E2F 4415 253E 65EA D897 31EF 84E5 1082 D409

To claim this, I am signing this object:

We couldn’t find that file to show.
yum -y install yum-utils
yum -y localinstall http://fedorapeople.org/groups/katello/releases/yum/3.2/katello/el7/x86_64/katello-repos-latest.rpm
yum -y localinstall http://yum.theforeman.org/releases/1.13/el7/x86_64/foreman-release.rpm
yum -y localinstall http://yum.puppetlabs.com/puppetlabs-release-el-7.noarch.rpm
yum -y localinstall http://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
yum -y install foreman-release-scl
yum -y update
yum -y install katello
foreman-installer --scenario katello
rpm -Uvh https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
rpm -Uvh http://yum.spacewalkproject.org/2.5/RHEL/7/x86_64/spacewalk-repo-2.5-3.el7.noarch.rpm
cat > /etc/yum.repos.d/jpackage-generic.repo << EOF
[jpackage-generic]
name=JPackage generic
#baseurl=http://mirrors.dotsrc.org/pub/jpackage/5.0/generic/free/
mirrorlist=http://www.jpackage.org/mirrorlist.php?dist=generic&type=free&release=5.0
enabled=1
gpgcheck=1
gpgkey=http://www.jpackage.org/jpackage.asc
sudo yum install postgresql-server postgres
sudo ~/atlassian-confluence-6.0.2-x64.bin
sudo /sbin/chkconfig postgresql-9.6 on
sudo /sbin/service postgresql-9.6 start
sudo /sbin/service postgresql-9.6 initdb
sudo su - postgres
psql
CREATE SCHEMA confluence;
GRANT ALL on confluence TO confluence;
# GIT #
# Get the branch name of the current directory
_lp_git_branch()
{
(( LP_ENABLE_GIT )) || return
\git rev-parse --is-inside-work-tree >/dev/null 2>&1 || return
local branch
@tkuennen
tkuennen / uvc-installer.sh
Last active July 7, 2017 19:19
Script to install Unifi Video Controller on 16.04 LTS
apt-get install apt-utils ssh mongodb libcommons-daemon-java jsvc
echo "deb http://www.ubnt.com/downloads/unifi/debian unifi5 ubiquiti" >> /etc/apt/sources.list
add-apt-repository ppa:openjdk-r/ppa
apt-key adv --keyserver keyserver.ubuntu.com --recv 06E85760C0A52C50
apt-get upgrade
apt-get update
cd /tmp && wget https://dl.ubnt.com/firmwares/unifi-video/3.7.1/unifi-video_3.7.1~Ubuntu16.04_amd64.deb
dpkg -i /tmp/unifi-video_3.7.1~Ubuntu16.04_amd64.deb
apt-get -f install
dpkg -i /tmp/unifi-video_3.7.1~Ubuntu16.04_amd64.deb && rm -rf /tmp/unifi-video_3.7.1~Ubuntu16.04_amd64.deb