Code Monkey home page Code Monkey logo

ole--vagrant-vi's Introduction

Installation

ole--vagrant-vi gives you the ability to install your own community BeLL (Basic e-Learning Library), including all its dependencies, on your system. To install it, please follow the directions for your OS.

Windows

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, just copy and paste one of the lines below in a Command prompt opened as administrator.

Windows 8.1 and above

@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"

Windows 7 and above

powershell -Command "(New-Object Net.WebClient).DownloadFile('https://raw.githubusercontent.com/dogi/ole--vagrant-vi/master/windows/install.bat', 'install.bat')" && start install.bat && exit

To 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 webpage.

Dependencies

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 to reintall VirtualBox won't affect/wipe out your existing VMs; it will just add the OLE VM to the ones you 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.

MacOS(X)

Open your Terminal. We assume that brew is already installed.

    brew install git 
    brew cask install vagrant
    brew cask install virtualbox

Ubuntu

    sudo apt-get install git
    sudo apt-get install virtualbox
    sudo apt-get install vagrant

MacOS(X) and Ubuntu ONLY

Install a communityBeLL on your OS

In your Terminal or Command Prompt, type:

git clone https://github.com/dogi/ole--vagrant-vi.git
cd ole--vagrant-vi
vagrant up

You now have a working communityBeLL on your OS.
It is advisable to use Firefox to access your community BeLL, so if you don't have it already on your system, you may want to download it.

ole--vagrant-vi's People

Contributors

aberdean avatar dogi avatar fanisgk avatar hikaruit15 avatar sarah-lu102 avatar waryhermit avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

ole--vagrant-vi's Issues

Command Prompt(Admin) for Windows 8.1 Script

OS: Windows 10 Pro

For the Command Prompt Script for Windows 8.1 and above, I had to run Command Prompt(Admin) in order for it to work. If i ran the script in the normal Command Prompt, my script would just stop at this position:

image

Should i go ahead and make the changes? something like:

Note:
You might be required to run Command Prompt(Admin) for the line below to work properly.

Install fails to detect virtualization when Hyper-V is enabled and doesn't properly disable hyper-V

The installer script thought my CPU was not supported. SecondLevelAddressTranslationExtensions and VirtualizationFirmwareEnabled were listed as False. I other virtualization programs block you from even checking. I think you could fix this by rearranging the Hyper-V check before the VT-X check in the script, because when I ran the command "bcdedit /set hypervisorlaunchtype off" and restarted my computer it said I had VT-x.

But then when I ran the install script it said

Hyper-V is enabled on your computer. BeLL App cannot run with Hyper-V enabled. Disabling Hyper-Vโ€ฆ

Hyper-V has been disabled. Please, reboot your computer, then install BeLL App again.

However it gave me the Hyper-V message again even after restarting. When I ran the command "Disable-WindowsOptionalFeature -Online -FeatureName Microsoft-Hyper-V-All" in power shell and restarted it the script worked. I don't know why it didn't work when the script tried to turn it off.

support for win7

Currently, there are some problems running the install scripts on Windows 7.
Specifically:

  • install.bat - check for virtualization gets bypassed and the script continues regardless of whether or not virtualization is actually supported or enabled
  • install.ps1 - several issues, some of which can be solved by upgrading PowerShell 2 to PowerShell 4 in Windows 7, and others that cannot, as follows,
    • Don't work on Posh4
      • admin privileges
      • check for virtualization
    • Work on Posh4
      • pause command
      • firewall rules
      • scheduled job

Task not propery created by powershell script.

The task is created OK, but it looks for the job/script information in ..\AppData\Local\Microsoft\Windows\PowerShell which was not present. But when I deleted the task and created it again using the exact code given in the install script it did create the information in the proper location. I read that Register-ScheduledJob only creates it for the current user, perhaps the install script runs as a different user somehow?

A potential work around would be to make the icon point to a powershell script that starts vagrant and then loads the URL so it only starts vagrant when people actually want to use it. Then no task is needed.

Consider signing install script or installer program

People should be reluctant to run unsigned scripts on their system. For now we can just point them to the script and them them decide if it is safe for themselves, but in the future it would be nice to have it signed so people don't have to change their execution policy to something unsafe to install the software.

comparing firewall part between bat and ps1

... made me realize that I favor the bat approach, which deletes the before created script.

Wonder if the approach of ps1 which is add a block rule is working as well

Please test

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.