This page is to show you how to install the development environment needed on Windows 7. We will use a virtual machine running Ubuntu with all needed components installed. To do this, we will use Vagrant, which will also need VirtualBox to work.
First, we need these following tools :
Modifying the path
This paragraph will show you how to change your path to access your virtual machine via SSH. Here, we will consider that we are using Git, but the principle remains the same if you use another equivalent program.
- Go to your Desktop and right-click My Computer then click Properties.
- Enter the advanced parameters tab and click Environment Variables
- Edit the Path variable, add a ";" after the last variable (if not already done) then add the path to ssh.exe (for example : C:\Program Files (x86)\Git\bin\ssh.exe)
- Press OK.
Installing the development environment
- Download the configuration files by decompressing this archive if you want to use the 32-bits version or this one if you want to use the 64-bits version on your computer :
- Start a terminal (for example, you can press Windows button, type cmd then press ENTER).
- Using your terminal, enter the folder Vagrant32 (or Vagrant64 )previously extracted. You should see a Vagrantfile if you enter :
- Use the command :
$ vagrant init precise32 http://files.vagrantup.com/precise32.box(or
$ vagrant init precise64 http://files.vagrantup.com/precise64.box). This should take a while but enables you to download essential files to have your virtual machine work.
Once the download is over, we need to start the virtual machine :
$ vagrant up.
Now, you have a fully-working virtual machine with no graphical interface or needed softwares. Ths can be solved by typing :
$ vagrant provision.
This should automatically install all needed modules and softwares needed to develop the project. Once it is done, you can shut down the virtual machine by entering :
$ vagrant halt.
Using the virtual environment
Now that the virtual machine you need to develop is installed, you will may want to use it. You have two choices :
No graphical interface
If you don't want to use the graphical interface, you can :
- use your Windows terminal to enter dvpmt_env
- type : $
This will start your virtual machine. Then you can access it by entering :
$ vagrant ssh.
Hit CTRL + C when you are done to exit the development environment. You can shut down the machine by typing :
$ vagrant halt.
With a graphical interface
Sometimes, to code or try the implemented functionalities, you may want to use a graphical interface. To do so :
- Start VirtualBox and then run the machine called precise32
- The password is vagrant (your keyboard is configured as qwerty)
Destroying the developement environment
If don't need the development environment anymore or if an incident occured with important system files, you can destroy it by entering dvpmt by using the command :
$ vagrant destroy.