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: add link to bash_profile + add opt/git) |
||
(One intermediate revision by the same user not shown) | |||
Line 28: | Line 28: | ||
*** <code>tmp</code>: contains temporary tasks; | *** <code>tmp</code>: contains temporary tasks; | ||
*** <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> (versioned [https://github.com/timflutre/perso/blob/master/bash_profile here]): | ||
*** in my case, it's been necessary to specify [https://en.wikipedia.org/wiki/CFLAGS CFLAGS, CPPFLAGS and CXXFLAGS] | |||
*** I also have access to computer clusters and mainly use one, on which I have my own private git server: <code>mkdir -p ~/opt; mkdir -p ~/opt/git</code> | |||
</ | |||
* '''External packages''': for each external package in <code>src_ext</code>, I create a directory with its usual name, say emacs, in which I create a file <code>install.bash</code> with the necessary commands to compile and install the package, typically: | * '''External packages''': for each external package in <code>src_ext</code>, I create a directory with its usual name, say emacs, in which I create a file <code>install.bash</code> with the necessary commands to compile and install the package, typically: |
Revision as of 07:12, 20 October 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
#!/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
|