Skip to content

Instantly share code, notes, and snippets.

Chris Damian chrisdchristo

Block or report user

Report or block chrisdchristo

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
View keybase.md

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 / ubuntu-java8-dockerfile
Last active Aug 29, 2015
Ubuntu + java8 Dockerfile
View ubuntu-java8-dockerfile
# chrischristo/ubuntu-java8
FROM ubuntu
# Install prerequisites
RUN apt-get update
RUN apt-get install -y software-properties-common
# Install java8
RUN add-apt-repository -y ppa:webupd8team/java
@chrisdchristo
chrisdchristo / ubuntu-java8-vertx2-dockerfile
Last active Aug 29, 2015
Ubuntu + java8 + vertx2 Dockerfile
View ubuntu-java8-vertx2-dockerfile
# chrischristo/ubuntu-java8-vertx2
FROM chrischristo/ubuntu-java8
ENV VERTX_VERSION 2.1.1
RUN wget http://dl.bintray.com/vertx/downloads/vert.x-$VERTX_VERSION.tar.gz
RUN tar -zvxf vert.x-$VERTX_VERSION.tar.gz
RUN mv vert.x-$VERTX_VERSION /var/lib/vertx
RUN ln -s /var/lib/vertx/bin/vertx /usr/bin/vertx
RUN rm -rf vert.x*
@chrisdchristo
chrisdchristo / 101_etc_profile.md
Created Jan 6, 2014
Standard /etc/profile for Ubuntu
View 101_etc_profile.md
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_admin_user.md
Created Jan 6, 2014
101: Add an admin user to ubuntu
View 101_admin_user.md
useradd -m -s /bin/bash chris
sudo usermod -a -G sudo chris
passwd chris
View 101_openejb.md

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

View 101_webmin.md

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
View 101_tomcat.md

101: Tomcat

sudo apt-get install tomcat7

Setup Environment

Open up global profile:

View 101_phpbb3.md
View 101_phpldapadmin.md

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.

You can’t perform that action at this time.