SUSE Linux notes: Difference between revisions

From genomewiki
Jump to navigationJump to search
(wget sources)
Line 6: Line 6:
== Software ==
== Software ==
* sources to download
* sources to download
** [http://www.gnu.org/software/ncurses/ncurses.html ncurses]
** [http://www.gnu.org/software/ncurses/ncurses.html ncurses]:<code>$ wget http://ftp.gnu.org/pub/gnu/ncurses/ncurses-5.9.tar.gz</code>
** [http://samtools.sourceforge.net/ SAMtools]
** [http://samtools.sourceforge.net/ SAMtools]
*** [http://sourceforge.net/projects/samtools/files/samtools/ SAMtools]
*** [http://sourceforge.net/projects/samtools/files/samtools/ SAMtools]:<code>$ wget http://downloads.sourceforge.net/project/samtools/samtools/0.1.18/samtools-0.1.18.tar.bz2</code>
*** [http://sourceforge.net/projects/samtools/files/tabix/ tabix]
*** [http://sourceforge.net/projects/samtools/files/tabix/ tabix]:<code>$ wget http://downloads.sourceforge.net/project/samtools/tabix/tabix-0.2.5.tar.bz2</code>
* software from the repositories
* software from the repositories
** libmysqlclient-devel
** libmysqlclient-devel

Revision as of 22:16, 15 May 2012

The usual conventions apply:

  • command issued from a root shell: # <command>
  • command issued from a user shell: $ <command>

Prerequisites

Software

other

  • environment variables (file env_variables):
export KENTHOME=$HOME/kent
export USE_BAM=0
export SAMDIR=/genome/src/samtools/samtools-0.1.18
export SAMINC=${SAMDIR}
export SAMLIB=${SAMDIR}/libbam.a
export USE_TABIX=1
export TABIXDIR=/genome/src/tabix/tabix-0.2.5
export TABIXINC=${TABIXDIR}
export TABIXLIB=${TABIXDIR}/libtabix.a
export KNsETFILE_HOOKS=1
export MACHTYPE=`uname -m`
export MYSQLINC=/usr/include/mysql
export MYSQLLIBS="-L/usr/lib64/mysql -lmysqlclient -lz -lcrypt -lnsl -lm -L/usr/lib -L/usr/lib64 -lssl -lcrypto"
export MYSQLDATA="/var/lib/mysql"
export DOCUMENTROOT=/var/www/html-$USER
export WEBROOT=$DOCUMENTROOT
export CGI_BIN=/var/www/cgi-bin
export KENTBIN="$KENTHOME/bin"
export BINDIR="${KENTBIN}/$MACHTYPE"
export SCRIPTS="${KENTBIN}/scripts"
export TRASHDIR="/var/www/trash"
export ENCODE_PIPELINE_BIN="${BINDIR}"
export AUTH_MACHINE="genome"
export AUTH_USER=$USER
export GLOBAL_CONFIG_FILE=${CGI_BIN}/hg.conf
export HGCGI=$CGI_BIN

Installation process

  • set up the environment
    • user shell:$ source env_variables
    • root shell:# source env_variables
    • you will switch between both, so you should operate on a common ground
  • create CGI directory:$ mkdir -p ${CGI_BIN}-${USER}
  • set the naive file permissions:# chmod 777 ${CGI_BIN}-${USER}
  • tip: use two different shells (one user shell, one root shell) with (very) different colorschemes in parallel

build from source

the database

  • start MySQL: # mysql -u root -p mysql_root_password -e "show databases;" | grep ${GENOME}
  • do integrity check on databases: # mysqlcheck --all-databases

see also