Code Monkey home page Code Monkey logo

course-os's Introduction

Prerequisites

  • gcc
  • git

Install gcc and git

Tested on Ubuntu 18.04.2 LTS by Windows Subsystem for Linux (WSL).

# Before install, check if they already installed using
# $ gcc --version
# $ git --version

$ sudo apt-get update
$ sudo apt-get install gcc git

$ gcc --version
gcc (Ubuntu 7.3.0-27ubuntu1~18.04) 7.3.0
Copyright (C) 2017 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

$ git --version
git version 2.17.1

# If gcc doesn't work:
$ sudo apt-get install build-essential

Getting Started

Tested on Ubuntu 18.04.2 LTS by Windows Subsystem for Linux (WSL).

$ git clone https://github.com/KU-Cloud/course-os.git
$ cd course-os

You can run examples using ./run.sh XXX.

# Give execute permission to `run.sh` by `chmod +x ./run.sh` if you needed.
$ chmod +x ./run.sh
$ ./run.sh 
build...010/main.c: In function ‘main’:
010/main.c:28:9: error: expected expression before ‘<’ token
         <?1/>:
         ^
010/main.c:34:9: error: expected expression before ‘<’ token
         <?2/>:
         ^
Failed to compile 010/main.c. Aborting

In this example, you can see one or more errors caused by unexpected expression, <?X/>. This is blank. You should replace it with the proper code.

Some examples are assigned objectives that need to be achieved. In those examples, there may be a portion of the code missing, so be sure to write the missing code in the proper location. e.g. 120.

$ vim ./010/main.c

#
# fill blanks...
#

$ ./run.sh 010
build...done

My pid is 10985 (child)
The answer to the ultimate question of life the universe and everything is 0.
But Arthur replied that it was 0.

My pid is 10984 (parent)
The answer to the ultimate question of life the universe and everything is 42.
But Arthur replied that it was 54.

You can edit XXX/main.c using vim, nano or vscode.

vim is pre-installed in Linux based OS.

vscode requires desktop GUI.

course-os's People

Contributors

lesomnus avatar dlarudgus20 avatar

Watchers

James Cloos avatar

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.