How-to-Make-a-Computer-Operating-System icon indicating copy to clipboard operation
How-to-Make-a-Computer-Operating-System copied to clipboard

how to setup my development environment? can you tell me in detail?

Open jacobishao opened this issue 9 years ago • 15 comments

my operating system is Windows 7 ,and I have install vagrant and virtual box.but I don't know to execute this command

default

jacobishao avatar Sep 23 '15 02:09 jacobishao

Getting started with vagrant on windows. http://www.seascapewebdesign.com/blog/part-1-getting-started-vagrant-windows-7-and-8

pankaj-imaginea avatar Sep 23 '15 05:09 pankaj-imaginea

thank you very much! another question has raised. when reading this sentience below: "Once the lucid32 image is ready, we need to define our development environment using a Vagrantfile, create a file named Vagrantfile. This file defines what prerequisites our environment needs: nasm, make, build-essential, grub " which directory should the vagrantfile to be located?

jacobishao avatar Sep 23 '15 09:09 jacobishao

It should be in the top level directory of your project, from where you intent to launch vagrant. i.e you should call the 'vagrant' command from the same directory as the Vagrant file.

pankaj-imaginea avatar Sep 23 '15 09:09 pankaj-imaginea

if my project is located in E:\download\How-to-Make-a-Computer-Operating-System-master\src,then the vagrantfile should be in the root of src foler, right ?

jacobishao avatar Sep 23 '15 09:09 jacobishao

Here: E:\download\How-to-Make-a-Computer-Operating-System-master\Vagrantfile

pankaj-imaginea avatar Sep 23 '15 09:09 pankaj-imaginea

ok,very thank you !

jacobishao avatar Sep 23 '15 09:09 jacobishao

when trying to build the systerm like what was said by the autor, default

jacobishao avatar Sep 23 '15 10:09 jacobishao

Well you need a Makefile to run make.

metacritical avatar Sep 23 '15 10:09 metacritical

it's under the src default

jacobishao avatar Sep 23 '15 10:09 jacobishao

I hope it is not empty and has the instructions for make to build your code as described in the following makefile

https://github.com/SamyPesse/How-to-Make-a-Computer-Operating-System/blob/master/src/Makefile

metacritical avatar Sep 23 '15 10:09 metacritical

Also you got to be in scr/ directory, so when you execute 'make' it is able to find the Makefile.

metacritical avatar Sep 23 '15 10:09 metacritical

when using "ls" command,it show that:

ls: cannot open directory .: Operation not permitted

jacobishao avatar Sep 23 '15 10:09 jacobishao

Try this :

sudo usermod -a -G sudo vagrant

You must logout and login again for this to take place.

metacritical avatar Sep 23 '15 10:09 metacritical

default

jacobishao avatar Sep 23 '15 10:09 jacobishao

Humm try this :

ok that means your user does not have root privileges, do this :

# sudo visudo

find a place in the file like this

# User privilege specification
vagrant    ALL=(ALL:ALL) ALL

and update it to

# User privilege specification
vagrant   ALL=(ALL:ALL) ALL

save by using Ctrl-X, Y

Also logout from vagrant and login again. See if it works.

metacritical avatar Sep 23 '15 10:09 metacritical