Last active
February 4, 2020 16:02
-
-
Save hanleybrand/11018618 to your computer and use it in GitHub Desktop.
Blackboard vagrant up and away
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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