Skip to content

Instantly share code, notes, and snippets.

@hanleybrand
Last active February 4, 2020 16:02
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hanleybrand/11018618 to your computer and use it in GitHub Desktop.
Save hanleybrand/11018618 to your computer and use it in GitHub Desktop.
Blackboard vagrant up and away
# start bb vm
cd ~/hackboard
vagrant up
# ssh via vagrant
vagrant ssh
## alternative ssh - use credentials vagrant/vagrant
ssh vagrant@localhost:2222
# vagrant@bbdev
sudo /usr/local/blackboard/tools/admin/ServiceController.sh services.start
#alternatively
vagrant ssh -c "sudo /usr/local/blackboard/tools/admin/ServiceController.sh services.start"
##
# when that's done bb is available at http://localhost:9876/
# login to webapp with administrator/password
## other things
# the root password for the virtual machine is vagrant
su - root
# The user and password for accessing the database when not logged in as the postgres user is postgres/postgres.
sudo su - postgres
psql BBLEARN
## vagrant ssh 1 liners
# one liner to check the most recent stdout-stderr log
vagrant ssh -c "ls -t /usr/local/blackboard/logs/tomcat/stdout-stderr-* | head -1 | xargs tail -F"
# other potentially useflu permutations
vagrant ssh -c "ls -t /usr/local/blackboard/logs/bb-services* | head -1 | xargs tail -F"
vagrant ssh -c "ls -t /usr/local/blackboard/logs/bb-sqlerror* | head -1 | xargs tail -F"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment