We will need community BeLL (Basic e-Learning Library) and its dependencies on our system to complete the next steps. Please follow the directions for your OS below.
We recommend you designate a new directory for your work at OLE. This put all of your OLE related repositories in one place and enables you to be organized and efficient.
To do this, you could make a new folder directly through your OS GUI. Or you could open Terminal(macOS), cmd(Windows), or shell(Linux) and use the following commands: (Note the commands should be identical on all three operating systems)
cd Desktopmkdir OLE
Before installing Vagrant on any platform, it is necessary to check if VT-x/AMD-V instruction set is enabled on your processor by checking the BIOS. This is a requirement for installing Vagrant on any platform since Vagrant is a type of virtualization software that utilizes VirtualBox. Most recent CPUs have this feature enabled already. If later you are having trouble running Vagrant, it may just be the case that VT-x/AMD-V is not enabled on your system.
If so, here are instructions to enable virtualization on Windows | Ubuntu | Macintosh
We wrote two different scripts to install the community BeLL and its dependencies on your computer.
They are equivalent, so if you run Windows 8.1 or above, you can use either of the two. If you like, you can also try both and provide us with feedback on which one worked better for you. It is not required to try both, but we would be grateful if you decide to do so.
To run the script, copy and paste one of the lines below in a Command prompt opened as administrator.
@powershell -Command "(New-Object Net.WebClient).DownloadFile('https://raw.githubusercontent.com/dogi/ole--vagrant-vi/master/windows/install.ps1', 'install.ps1')" && @powershell -NoProfile -ExecutionPolicy Bypass -Command ".\install.ps1"powershell -Command "(New-Object Net.WebClient).DownloadFile('https://raw.githubusercontent.com/dogi/ole--vagrant-vi/master/windows/install.bat', 'install.bat')" && start install.bat && exitTo run your community BeLL at the end of the installation, please find the MyBeLL icon on your desktop and double click on it. It will open a Firefox browser and take you directly to your community BeLL web page.
Note: If Firefox displays Unable to connect error when the MyBell icon is clicked, visit Vagrant instructions for more information on vagrant up.
These programs will be automatically installed on your computer:
-
Chocolatey Chocolatey is a package manager for Windows that we use to install/uninstall all the other programs in a simple and reliable way.
-
Bonjour Bonjour is used to implement zero-configuration networking on your computer.
-
Git Git is an open source version control system that we use for communication and management for our software. More specifically, we use gitter.im for communication and github.com for software management.
-
VirtualBox Virtualbox allows you to install a software virtualization package as an application on your OS.
Note: if you already have VirtualBox installed on your computer and have existing VMs on virtualbox already, running the command above will re-intall VirtualBox and won't affect/wipe out your existing VMs; it will only add the a VM called "vi" to the ones you already have.
-
Vagrant
Vagrant is an open source tool for building development environments. -
Firefox Firefox is a popular browser, which is guaranteed to work nicely with your community BeLL.
You now have a working community BeLL on your OS. If you run into a problem, head over to Troubleshooting section. It is advisable to use Firefox to access your community BeLL. If you don't have it already, you may want to download it.
Open your Terminal
We assume that brew is already installed:
brew install git
brew cask install vagrant
brew cask install virtualboxsudo apt-get update
sudo apt-get -y install git virtualboxNext, go to Vagrant download page in Firefox Web browser and Right click on the 64-Bit version of Debian and select "Copy Link Location" from the pop-up menu.
Refer this image:
Now replace https://yourcopiedlink.com/vagrant.deb in the following commands by the link which you just copied.
wget -O vagrant.deb https://yourcopiedlink.com/vagrant.deb
sudo dpkg -i vagrant.deb
sudo apt-get install -fMake sure you've cd to the designate OLE directory you created earlier.
git clone https://github.com/dogi/ole--vagrant-vi.git
cd ole--vagrant-vi
vagrant upYou now have a working community BeLL on your OS. It is advisable to use Firefox to access your community BeLL. If you don't have it already, you may want to download it.
-
On macOS, when you run
vagrant up, you may experience an error such as the following: "vi: Box 'ole/jessie64' could not be found. Attempting to find and install...". A simple solution is to use this commandsudo rm /opt/vagrant/embedded/bin/curl, This will remove the old version of curl in Vagrant andvagrant upshould now work as usual. For more information, visit this Stack Overflow question -
On Windows, when you run
vagrant upfrom command prompt, you might get the following error : "The executablecurlVagrant is trying to run was not found in the%PATH%variable. This is an error. Please verify this software is installed and on the path." A simple solution is to add Cygwin bin folder to path variable or use Git Bash rather than command prompt to runvagrant up. For more information, visit this GitHub issue -
On Ubuntu, you might get this error when you run
vagrant up:Stderr: VBoxManage: error: The virtual machine 'ud381_default_1463617458900_49294' has terminated unexpectedly during startup with exit code 1 (0x1) VBoxManage: error: Details: code NS_ERROR_FAILURE (0x80004005), component MachineWrap, interface IMachine
This is caused when VirtualBox get a minor version Update. (i.e. 5.0.x -> 5.1.x or 5.1.x -> 5.2.x). There are some old unused modules, who are not compatible with the newer version, remain installed which causes the above problem and prevent VirtualBox from starting. A system restart also does not solve the problem.
To solve it first remove the unused packages using
sudo apt-get autoremove. Then reconfigure VirtualBox to install updated modules usingsudo /sbin/vboxconfig -
If you see "no_db_found" when trying to access http://127.0.0.1:5985/apps/_design/bell/MyApp/index.html. At this early stage, the simple solution would be using
vagrant destroyto delete the current machine, then usevagrant upto rebuild it. -
If the command
vagrant upis not working, try to install Virtual Box version 5.1.
Now that you have installed your community Bell, head over to BeLL Configurations to register your community with the nation.
