Skip to content

Instantly share code, notes, and snippets.

@cynici
Last active December 11, 2015 22:39
Show Gist options
  • Save cynici/4671537 to your computer and use it in GitHub Desktop.
Save cynici/4671537 to your computer and use it in GitHub Desktop.
Steps to reinstall NPP DRL IPOPP on Ubuntu 12.04 64-bit
#
# Reset corrupted IPOPP database
#
$HOME/drl/tools/services.sh stop
$HOME/drl/dsm/bin/erase_database.sh
rm -rf /raid/pub/ancillary/*
$HOME/drl/tools/services.sh start
#
# Reinstall from scratch
#
* Check for latest version http://directreadout.sci.gsfc.nasa.gov/?id=software against those downloaded previously to [email protected]:~/npp_drl/
Required files:
* Copy every tar.gz in [email protected]:~/npp_drl/ (except *testdata*) to nppserver:/var/tmp/
$HOME/drl/dsm/jsw/bin/rdrmover.sh stop
$HOME/drl/dsm/jsw/bin/pdsmover.sh stop
$HOME/drl/tools/services.sh stop
$HOME/drl/rt-stps/jsw/bin/rt-stps-server.sh stop
sudo apt-get purge mysql-server-5.5
sudo rm -rf /var/lib/mysql
sudo apt-get install mysql-server-5.5
sudo mysqladmin -u root password b28c935
* Back up all files in /raid/ if necessary
/bin/rm -rf $HOME/drl $HOME/IPOPP /raid/*
tar -C $HOME -xzf DRL-IPOPP_X.Yz.tar.gz
chmod -R 755 $HOME/IPOPP
cd $HOME/IPOPP
./install_realtime.sh
# Make a hardlink of the config file
ln -f $HOME/default_config.file ~/drl/ncs/configs/default_config.file
cd $HOME/drl
rm -rf SPA/h2g
tar -C $HOME/drl -xzf H2G_2.2_SPA_1.2.tar.gz
cd $HOME/drl/SPA/h2g/algorithm
./configure-ipopp-projection
cd $HOME/drl/SPA/h2g
./NISGSinstall.sh
tar -C $HOME/drl -xzf RT-STPS_5.3.tar.gz
cd $HOME/drl/rt-stps
./install.sh
chmod ugo-x $HOME/drl/rt-stps/jsw/bin/wrapper-linux-x86-32
For every other spa_tar_gz in /var/tmp/:
cd ~/drl
tar -C $HOME/drl -xzf spa_tar_gz
$HOME/drl/SPA/spa_directory/NISGSinstall.sh
$HOME/drl/tools/services.sh start
$HOME/drl/dsm/jsw/bin/rdrmover.sh start
$HOME/drl/dsm/jsw/bin/pdsmover.sh start
# No need to run this server because we use batch-mode
#cd $HOME/drl/rt-stps && jsw/bin/rt-stps-server.sh start
#cd $HOME/drl/rt-stps/bin && ./getstatus.sh
# Monitoring
$HOME/drl/tools/services.sh status
$HOME/drl/tools/system_status.sh
$HOME/drl/nsls/bin/nsls-console.sh &
$HOME/drl/dsm/gui-scripts/markers.sh
$HOME/drl/dsm/gui-scripts/passmanager.sh
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment