Sunday, December 30, 2012

How to install Julia programming language on centos 6 64 bit

So I had some major issues installing Julia in 64 bit. I finally was able to get it working this way:

yum -y install java-1.6.0-openjdk.x86_64 libXp openmotif openmotif22 python.x86_64 numpy* ncurses-devel gcc gcc-c++ autoconf automake; yum -y groupinstall "Development Tools" 

then I did make -j4, since I had the atom processor I also did a openblas flag edit in Make.inc

OPENBLAS_USE_THREAD=4
OPENBLAS_TARGET_ARCH=BONNELL


Now when I run make, it runs forever, and then it works fine and I can run:

./julia

Sunday, December 23, 2012

How to setup centos cluster (start to end)


 yum -y install openssh-server openssh-clients

1. Make static IP

Find out the name of your ethernet adapater using ifconfig:
 
NETWORKING=yes
NETWORKING_IPV6=no
HOSTNAME=bee9
GATEWAY=192.168.1.1   (This is needed to get internet on the nodes)

 
 
DEVICE="eth1"
NM_CONTROLLED="yes"
ONBOOT=yes
TYPE=Ethernet
BOOTPROTO=static
NAME="System eth0"
IPADDR=192.168.1.156
NETMASK=255.255.255.0
DNS1=8.8.8.8
DNS2=8.8.4.4
 
2. Turn off network manager (it was overriding at boot)
sudo /sbin/service NetworkManager stop   (This stops it)
sudo /sbin/chkconfig NetworkManager off  (This stops it from starting at bootup)
 
 
 Stream audio through SSH:
 
 http://prupert.wordpress.com/2010/08/02/stream-live-audio-from-a-microphone-in-near-real-time-in-ubuntu/
http://linuxconfig.org/how-to-test-microphone-with-audio-linux-sound-architecture-alsa 

Wednesday, December 19, 2012


SGE_ROOT="/opt/sge"
  SGE_QMASTER_PORT="31001"
  SGE_EXECD_PORT="31002"
  CELL_NAME="default"
  ADMIN_USER="sgeadmin"
  QMASTER_SPOOL_DIR="/opt/sge/default/spool/qmaster"
  EXECD_SPOOL_DIR="/opt/sge/default/spool/execd"
  GID_RANGE="20000-21000"
  SPOOLING_METHOD="berkeleydb"
  DB_SPOOLING_SERVER="none"
  DB_SPOOLING_DIR="/opt/sge/default/spooldb"
  ADMIN_HOST_LIST=""
  SUBMIT_HOST_LIST=""
  EXEC_HOST_LIST=""
  EXECD_SPOOL_DIR_LOCAL="/opt/sge/default/spool/execd"
  HOSTNAME_RESOLVING="true"
  SHELL_NAME="ssh"
  COPY_COMMAND="scp"
  DEFAULT_DOMAIN=""
  ADMIN_MAIL="none"
  ADD_TO_RC="true"
  SET_FILE_PERMS="true"
  RESCHEDULE_JOBS="wait"
  SCHEDD_CONF="2"
  # all options below are irrelevant in our setup
  SHADOW_HOST=""
  EXEC_HOST_LIST_RM=""
  REMOVE_RC="false"
  WINDOWS_SUPPORT="false"
  WIN_ADMIN_NAME="Administrator"
  WIN_DOMAIN_ACCESS="false"
  CSP_RECREATE="true"
  CSP_COPY_CERTS="false"
  CSP_COUNTRY_CODE="DE"
  CSP_STATE="Germany"
  CSP_LOCATION="Building"
  CSP_ORGA="Organisation"
  CSP_ORGA_UNIT="Organisation_unit"
  CSP_MAIL_ADDRESS="name@yourdomain.com"