Saltar al contenido principal
pdf?stylesheet=default
Blackboard Help

Máquina virtual para desarrolladores

Blackboard now provides a preconfigured VirtualBox virtual machine to help developers quickly test and validate your Building Blocks. This article will help with setting up your developer environment to use the VM.

You are downloading a pre-release version of a Blackboard Learn Developer Virtual Machine instance (the “Bb Virtual Machine”) containing the Blackboard Learn developer software. The Bb Virtual Machine shall be deemed a part of the Blackboard Developer Software provided to you pursuant to the terms of your developer license agreement with Blackboard. All terms and conditions of your developer license agreement to the Blackboard Learn software shall remain in full force and effect and shall apply in all respects to the Bb Virtual Machine and your use thereof. The Bb Virtual Machine and the Blackboard Learn developer software contained therein are provided “as is”. Except as expressly stated in your developer license agreement, Blackboard disclaims all warranties and liability associated with the Bb Virtual Machine and your use thereof. By downloading or accessing the Bb Virtual Machine, you re-affirm your agreement to the terms of your developer license agreement for the Blackboard Learn software and further agree that your use of the Bb Virtual Machine shall be subject to the terms and conditions of your developer license agreement. If you do not agree to the foregoing terms, you may not download or use the Bb Virtual Machine.

Prerequisites

  • Developer-class workstation or laptop that supports Linux virtual machines.
  • VirtualBox
  • Vagrant

Installation

  1. Create a directory on your computer for your Vagrant VM. For example: $HOME/Vagrant/Learn
  2. Download the Vagrant virtual machine and Vagrantfile from Behind the Blackboard and place them in the directory listed in Step 1.

    Blackboard Learn 9.1 October 2014
    Blackboard Learn 9.1 April 2014

    If downloading the April 2014 release, make sure to download both the virtual machine and the Vagrant file into the same directory. 

  3. For the April 2014 release, rename the downloaded Vagrantfile to Vagrantfile, otherwise, unzip the archive file to extract the .box file and Vagrantfile.
  4. Run the following commands in that directory:

    vagrant up
    vagrant ssh

    If you are on a Windows host machine, you may experience issues logging into the VM because of Windows' management of SSH. Alternatively, you can log into the VM using any SSH client you want by connecting to localhost:2222 and using the credentials vagrant/vagrant. Additionally, help is available on the Vagrant site.

  5. You are now logged into the VM.  Run the following command to start Learn:

    sudo /usr/local/blackboard/tools/admin/ServiceController.sh services.start

Using the Virtual Machine

You can now access your developer instance of Learn at http://localhost:9877. The Learn administrator login credentials are administrator/password.

Starting Block

The developer Building Block that allows you to deploy your Building Block remotely, is already installed and configured. Use of the Starting Block will require adding a line to the Vagrantfile, a configuration change in the bb-config.properties file of the running instance, and an update to your build.gradle file.

Vagrant File Edit

Add:

config.vm.network :forwarded_port, guest: 8080, host: 9876

bb-config.properties

Set the frontend.protocol to http in bb-config.properties:

bbconfig.frontend.protocol=http

build.gradle

Change the build.gradle deployServer to connect on localhost:9876:

deployServer = "localhost:9876"

Attaching to the Tomcat Debugger

The tomcat debugger may be attached via port 9878.

Accessing the Virtual Machine Users

The user which is by default logged onto the virtual machine is named vagrant and has the password of vagrant.

After you have ssh'd to the virtual machine you have the need to perform root privileged operations:

vagrant ssh
su - root #the root password for the virtual machine is vagrant

Accessing the Database Directly

To access the database directly (for running SQL), you must be logged in as the postgres user:

vagrant ssh
sudo su - postgrespsql BBLEARN

The user and password for accessing the database when not logged in as the postgres user is postgres/postgres.

To share comments and feedback on the developer virtual machine, please email feedback@developer.blackboard.com.