User:Timothee Flutre/Notebook/Postdoc/2013/12/27: Difference between revisions
From OpenWetWare
(→About organizing computer-based research: add links for GNU/Linux) |
(→About organizing computer-based research: improve bash_profile) |
||
Line 29: | Line 29: | ||
*** <code>work</code>: contains projects. | *** <code>work</code>: contains projects. | ||
** this structure is reflected in my file <code>~/.bash_profile</code>: | ** this structure is reflected in my file <code>~/.bash_profile</code>: | ||
*** in my case, it's been necessary to specify [https://en.wikipedia.org/wiki/CFLAGS CFLAGS, CPPFLAGS and CXXFLAGS] | |||
<nowiki> | <nowiki> | ||
Line 41: | Line 42: | ||
CFLAGS="$CFLAGS -I$HOME/include" | CFLAGS="$CFLAGS -I$HOME/include" | ||
export CFLAGS | export CFLAGS | ||
CPPFLAGS="$CPPFLAGS -I$HOME/include" | |||
export CPPFLAGS | |||
CXXFLAGS="$CXXFLAGS -I$HOME/include" | |||
export CXXFLAGS | |||
LDFLAGS="$LDFLAGS -L$HOME/lib" | LDFLAGS="$LDFLAGS -L$HOME/lib" | ||
export LDFLAGS | export LDFLAGS | ||
export R_LIBS_USER=$HOME/src_ext/Rlibs | export R_LIBS_USER=$HOME/src_ext/Rlibs | ||
export PYTHONPATH=$HOME/lib/python/:$PYTHONPATH | export PYTHONPATH=$HOME/lib/python/:$PYTHONPATH | ||
# http://perlgeek.de/en/article/set-up-a-clean-utf8-environment | |||
export LC_ALL=en_US.UTF-8 | |||
export LANG=en_US.UTF-8 | |||
export LANGUAGE=en_US.UTF-8 | |||
</nowiki> | </nowiki> | ||
Revision as of 01:50, 7 March 2014
Project name | <html><img src="/images/9/94/Report.png" border="0" /></html> Main project page <html><img src="/images/c/c3/Resultset_previous.png" border="0" /></html>Previous entry<html> </html> |
About organizing computer-based research
# Get the aliases and functions if [ -f ~/.bashrc ]; then . ~/.bashrc fi # User specific environment and startup programs PATH=$HOME/bin:$PATH export PATH CFLAGS="$CFLAGS -I$HOME/include" export CFLAGS CPPFLAGS="$CPPFLAGS -I$HOME/include" export CPPFLAGS CXXFLAGS="$CXXFLAGS -I$HOME/include" export CXXFLAGS LDFLAGS="$LDFLAGS -L$HOME/lib" export LDFLAGS export R_LIBS_USER=$HOME/src_ext/Rlibs export PYTHONPATH=$HOME/lib/python/:$PYTHONPATH # http://perlgeek.de/en/article/set-up-a-clean-utf8-environment export LC_ALL=en_US.UTF-8 export LANG=en_US.UTF-8 export LANGUAGE=en_US.UTF-8
#!/usr/bin/env bash wget http://gnu.mirrors.hoobly.com/gnu/emacs/emacs-24.3.tar.gz tar xzvf emacs-24.3.tar.gz cd emacs-24.3 ./configure --prefix=$HOME --with-x-toolkit=no --with-xpm=no --with-jpeg=no --with-gif=no --with-tiff=no make make install
#!/usr/bin/env bash # backup.bash <path_to_backup> >& backup.log & date RSYNC_OPT="--compress --recursive --times --perms --links --exclude="*~" --delete --delete-excluded --progress" rsync $RSYNC_OPT ~/remote1/work/project1 $1 rsync $RSYNC_OPT ~/remote1/work/project2 $1 date
|