CentOS/RedHat screen command

Install screen:


yum install screen.x86_64

Create a screen by giving it a name:


screen -S process1

Detach from the current screen:

shortcut: Ctrl + A + D

Inspect running screens:


screen -ls

There is a screen on:
11174.process1 (Detached)
1 Socket in /var/run/screen/S-root.

Reattach to running screen per name:

screen -R process1

Advertisements

Setup SBT in Mac OS X

Simple Build Tool (SBT) is a building tool for Scala with a Maven feel into it.

First download the latest sbt-launch.jar, put the jar in the /usr/local/bin dir:

$sudo curl http://typesafe.artifactoryonline.com/typesafe/ivy-releases/org.scala-tools.sbt/sbt-launch/CURRENT_VERSION/sbt-launch.jar --O sbt-launch-CURRENT_VERSION.jar
$sudo cp sbt-launch-CURRENT_VERSION.jar /usr/local/bin

Final step is to create file with the command to load up the jar:

$sudo mkdir /usr/local/bin/sbt
$sudo chmod +x /usr/local/bin/sbt 
$sudo vim /usr/local/bin/sbt

Including the following command:

java -XX:+CMSClassUnloadingEnabled -XX:MaxPermSize=512m -Xmx512M -Xss2M -jar `dirname $0`/sbt-launch-CURRENT_VERSION.jar "$@"

Cygwin PATH setup

In cases where you don’t have admin privileges to setup the Environment Variables of your Windows machine, Cygwin can come to the rescue aside from all the other UNIX goodies it can provide.

To add directories in the system PATH variable append anything similar to the followings at the end of the {cygwin}/etc/profile file:

DEVSRC_HOME="/cygdrive/c/MyProgs/SoftProjProgs"
PATH=$DEVSRC_HOME:$PATH

JAVA_HOME="/cygdrive/c/MyProgs/java/jdk1.6.0_02"
PATH=$JAVA_HOME/bin:$PATH

GROOVY_HOME="/cygdrive/c/MyProgs/groovy-1.6.5"
PATH=$GROOVY_HOME/bin:$PATH

GRAILS_HOME="/cygdrive/c/MyProgs/grails-1.3.3"
PATH=$GRAILS_HOME/bin:$PATH

TNSNAMES="/cygdrive/c/oracle/ora92/network/ADMIN"
PATH=$TNSNAMES:$PATH

ANT_HOME="/cygdrive/c/MyProgs/apache-ant-1.8.1"
PATH=$ANT_HOME/bin:$PATH

Restart your Cygwin session and these additions to the PATH variable should exist for all future Cygwin sessions.