Setup Linux Working Environment

Linux working environment setup: redmine, gitbucket, tomcat

redmine

A flexible project management web application which includes a gantt chart, calendar, wiki, forums, multiple roles, and email notification.
http://www.redmine.org/projects/redmine/wiki/HowTo_Install_Redmine_on_Ubuntu_step_by_step

gitbucket

A Git platform powered by Scala with easy installation, high extensibility & github API compatibility
https://github.com/gitbucket/gitbucket

tomcat

An open source implementation of the Java Servlet, JavaServer Pages, Java Expression Language and Java WebSocket technologies.
http://oceanpad.github.io/2016/05/24/2016-05/deploy-tomcat-on-linux/

make Tab auto-completion case-insensitive in the terminal

add set completion-ignore-case on to /etc/inputrc
Start a new shell / terminal.

install php7.1.0

  1. download php source file :
    http://www.php.net/downloads.php
  1. extract php source
    1
    2
    tar -zxvf php-7.x.y.tar.gz
    cd php-7.x.y
  1. run the ‘configure’ program :

    1
    ./configure  --prefix=/usr/local/php

    ./configure —help to get configure able files
    This should complete without errors and finishes with an obvious copyright notice in a box. If you do get errors, it is most likely to be due to missing libraries. Make sure you have added all the libraries described above (with apt-get). Failing that, Google is your friend.

  2. make and test and make install php
    Once that bit is done, it’s time to do the actual compiling and linking. Simply do…

    1
     make && make test

    This (depending on how fast your machine is) will take some time and will end up with the phrase Build complete.

It’s then just a matter of installing the files…

1
 make && sudo make install

libxml2 install

http://www.linuxfromscratch.org/blfs/view/svn/general/libxml2.html

bash completion ignore case

1
2
3
4
# If ~./inputrc doesn't exist yet, first include the original /etc/inputrc so we don't override it
if [ ! -a ~/.inputrc ]; then echo '$include /etc/inputrc' > ~/.inputrc; fi
# Add option to ~/.inputrc to enable case-insensitive tab completion
echo 'set completion-ignore-case On' >> ~/.inputrc

java environment set up

1
2
3
4
5
6
# ~/.bashrc
JAVA_HOME=/path/to/jdk_home
PATH=$PATH:$HOME/bin:$JAVA_HOME/bin
export JAVA_HOME
export JRE_HOME
export PATH

sbt

1
2
# ~/.bashrc
export PATH=$PATH:/path/to/sbt/bin

sbt

1
2
# ~/.bashrc
export PATH=$PATH:/path/to/scala/bin

git key setup

1
2
3
#~/.ssh/config
Host github.com
IdentityFile ~/.ssh/id_rsa_github