Skip to content

Instantly share code, notes, and snippets.

View chrisdchristo's full-sized avatar

Chris Damian chrisdchristo

View GitHub Profile
@chrisdchristo
chrisdchristo / 101_openldap.md
Created December 28, 2013 13:49
101: OpenLDAP
@chrisdchristo
chrisdchristo / 101_postfix.md
Created November 29, 2013 13:52
101: Postfix

101: Postfix

Postfix is an SMTP server MTA (Mail transfer agent) which handles sending and receiving emails. Install like so: sudo apt-get install postfix libsasl2-modules You will need ports 25 and ports 587 open on the firewall for SMTP and SSMTP.

Configuring

Open the postfix config file:

sudo nano /etc/postfix/main.cf
@chrisdchristo
chrisdchristo / 101_webmin.md
Last active February 15, 2017 17:32
101: Webmin

101: Webmin

https://mydomain.com:10000

You will need some dependancy packages:

sudo apt-get install perl libnet-ssleay-perl openssl libauthen-pam-perl
sudo apt-get install libpam-runtime libio-pty-perl apt-show-versions python
@chrisdchristo
chrisdchristo / keybase.md
Created June 28, 2016 07:15
Keybase Proof

Keybase proof

I hereby claim:

  • I am chrisdchristo on github.
  • I am chrisdchristo (https://keybase.io/chrisdchristo) on keybase.
  • I have a public key ASADpB6LwhOyusSvxim8CMbmramJAJAvueEHgSp_XP5StAo

To claim this, I am signing this object:

@chrisdchristo
chrisdchristo / 101_admin_user.md
Created January 6, 2014 16:18
101: Add an admin user to ubuntu
useradd -m -s /bin/bash chris
sudo usermod -a -G sudo chris
passwd chris
@chrisdchristo
chrisdchristo / 101_etc_profile.md
Created January 6, 2014 16:23
Standard /etc/profile for Ubuntu
PS1='\[\e[0;36m\][\t] \[\e[31m\]\u@\H\[\e[32m\]$PWD \[\e[32m\]\n$\[\e[0m\] '

alias l="ls -la"

export JAVA_HOME=/usr/lib/jvm/java-7-openjdk-amd64
export JRE_HOME=/usr/lib/jvm/java-7-openjdk-amd64
export JAVA_OPTS="-Xmx1024M -Duser.timezone=UTC -Djavax.servlet.request.encoding=UTF-8 -Dfile.encoding=UTF-8"

export MAVEN_HOME=/usr/share/maven
@chrisdchristo
chrisdchristo / 101_openejb.md
Last active January 1, 2016 14:49
101: OpenEJB

101: OpenEJB

(This is a constantly updated article, be sure to check back for updates!)

Configuring OpenEJB (or TomEE) can be a bit of a pain as its not always obvious where to place the specific settings you want. I will describe in as much detail in how you can configure it in the various forms, whether XML, properties or the newly introduced JSON config!

The intention is to have this article as your one stop shop in finding all the possible ways to configure your OpenEJB instance. With this info, you can truly master your server backend.

Introduction

@chrisdchristo
chrisdchristo / 101_tomcat.md
Created December 28, 2013 14:33
101: Tomcat

101: Tomcat

sudo apt-get install tomcat7

Setup Environment

Open up global profile:

@chrisdchristo
chrisdchristo / 101_phpldapadmin.md
Created December 28, 2013 14:16
101: PhpLdapAdmin

101: PhpLdapAdmin

https://mydomain.com:446/pla

sudo apt-get install phpldapadmin

By default, an apache phpldapadmin.conf file is placed in /etc/apache2/conf.d/phpldapadmin.conf which links a conf file in the phpldapadmin installation. Its is better to manage the various websites via ssl encrypted virtual hosts.

@chrisdchristo
chrisdchristo / 101_phpbb3.md
Created December 28, 2013 14:24
101: PhpBB3