Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
LIVVkit
lex
Commits
bc057874
Commit
bc057874
authored
Feb 27, 2018
by
Kennedy, Joseph H
Browse files
Add a script to setup Rhea
parent
805d4508
Changes
1
Hide whitespace changes
Inline
Side-by-side
setup/rhea.sh
0 → 100755
View file @
bc057874
#!/usr/bin/env bash
if
[
-d
"
$HOME
/.local/bin"
]
;
then
case
":
$PATH
:"
in
*
:
$HOME
/
\.
local
/bin:
*
)
# echo 'on path'
;;
*
)
echo
'$HOME/.local/bin not found in $PATH. Adding it to $PATH'
export
PATH
=
$PATH
:
$HOME
/.local/bin
;;
esac
fi
if
[
-d
"
$HOME
/.modulefiles"
]
;
then
case
":
$MODULEPATH
:"
in
*
:
$HOME
/
\.
modulefiles:
*
)
# echo 'on path'
;;
*
)
echo
'$HOME/.modulefiles not found in $MODULEPATH. Adding it to $MODULEPATH'
export
MODULEPATH
=
$HOME
/.modulefiles:
$MODULEPATH
;;
esac
fi
if
[
!
-x
"
$(
command
-v
git-lfs
)
"
]
;
then
echo
'!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!'
echo
'git-lfs not installed! Installing... into $HOME/.local/bin'
echo
'!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!'
mkdir
-p
$HOME
/.local/lib
pushd
$HOME
/.local/lib
wget https://github.com/git-lfs/git-lfs/releases/download/v2.3.4/git-lfs-linux-amd64-2.3.4.tar.gz
tar
-zxf
git-lfs-linux-amd64-2.3.4.tar.gz
cd
git-lfs-2.3.4
sed
-i
's/\/usr\/local/\$HOME\/.local/g'
install.sh
.
install.sh
popd
echo
'In the future, be sure to include $HOME/.local/bin in your path:'
echo
' export PATH=$PATH:$HOME/.local/bin'
echo
'Note: You will likely want to put this in your .bashrc, or similar.'
fi
if
[[
$(
hostname
-s
)
=
rhea
*
]]
;
then
module unload PE-pgi PE-gnu PE-intel
module load PE-gnu/4.8.2
module unload nco ncl netcdf gcc
module load netcdf/4.4.1
module load gsl hdf5-parallel
module load nco/4.6.9
module load anaconda-cli106/rhea
module list
.
deactivate
&&
.
activate LIVVpy2
fi
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment