Upload grbl-master to arduino uno or nano on lubuntu 16.04

Hello folks,

I was trying upload this example from this library: GitHub - grbl/grbl: An open source, embedded, high performance g-code-parser and CNC milling controller written in optimized C that will run on a straight Arduino but after I have done some modification to the the repository I receive this error on tab message error arduino:

/usr/share/arduino/hardware/tools/avr/bin/avr-g++ -c -g -Os -Wall -fno-exceptions -ffunction-sections -fdata-sections -mmcu=atmega328p -DF_CPU=16000000L -MMD -DUSB_VID=null -DUSB_PID=null -DARDUINO=105 -D__PROG_TYPES_COMPAT__ -I/usr/share/arduino/hardware/arduino/cores/arduino -I/usr/share/arduino/hardware/arduino/variants/standard /tmp/build796484166746276952.tmp/grblUpload.cpp -o /tmp/build796484166746276952.tmp/grblUpload.cpp.o 
grblUpload.ino:27:18: fatal error: grbl.h: No such file or directory
compilation terminated.

The modification which I need did is:
1-After downloaded the repository, through this link: https://github.com/grbl/grbl/archive/master.zip I needed remove hyphen to the name file. The name was like this “grblmaster.zip”;
2-Also I needed remove all folder and documents to the “grblmaster.zip”. Only was folder and directory inside the grbl. You can see the structure inside the folder on this code:

grblmaster/
└── grbl
    ├── config.h
    ├── coolant_control.c
    ├── coolant_control.h
    ├── cpu_map
    │   ├── cpu_map_atmega2560.h
    │   └── cpu_map_atmega328p.h
    ├── cpu_map.h
    ├── defaults
    │   ├── defaults_generic.h
    │   ├── defaults_oxcnc.h
    │   ├── defaults_shapeoko2.h
    │   ├── defaults_shapeoko3.h
    │   ├── defaults_shapeoko.h
    │   ├── defaults_sherline.h
    │   ├── defaults_simulator.h
    │   ├── defaults_x_carve_1000mm.h
    │   ├── defaults_x_carve_500mm.h
    │   └── defaults_zen_toolworks_7x7.h
    ├── defaults.h
    ├── eeprom.c
    ├── eeprom.h
    ├── examples
    │   └── grblUpload
    │       ├── grblUpload.ino
    │       └── license.txt
    ├── gcode.c
    ├── gcode.h
    ├── grbl.h
    ├── limits.c
    ├── limits.h
    ├── main.c
    ├── motion_control.c
    ├── motion_control.h
    ├── nuts_bolts.c
    ├── nuts_bolts.h
    ├── planner.c
    ├── planner.h
    ├── print.c
    ├── print.h
    ├── probe.c
    ├── probe.h
    ├── protocol.c
    ├── protocol.h
    ├── report.c
    ├── report.h
    ├── serial.c
    ├── serial.h
    ├── settings.c
    ├── settings.h
    ├── spindle_control.c
    ├── spindle_control.h
    ├── stepper.c
    ├── stepper.h
    ├── system.c
    └── system.h

5 directories, 51 files

After this I tested this upload to different board arduino. First I tested arduino nano and second time I tested on arduino uno. Both board it is made on china (bought by ebay). To test the communication with both boards, before I try upload the grbl I try uploaded the basic example, blink. And this example works with both boards…therefore I think he communication with both boards it is good.

Another information relevant, I think so:

xx@xx:~/Downloads$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 16.04.3 LTS
Release: 16.04
Codename: xenial
xx@xx:~/Downloads$ uname -a
Linux pcwork 4.4.0-89-generic #112-Ubuntu SMP Mon Jul 31 19:38:41 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux

Version arduino:

2:1.0.5

As I was talk I got import library grbl to my arduino but when I selected the Example->Grbl->Grbl Upload and pressed the button “Upload” I can’t upload this code:

/***********************************************************************
This sketch compiles and uploads Grbl to your 328p-based Arduino! 

To use:
- First make sure you have imported Grbl source code into your Arduino
  IDE. There are details on our Github website on how to do this.

- Select your Arduino Board and Serial Port in the Tools drop-down menu.
  NOTE: Grbl only officially supports 328p-based Arduinos, like the Uno.
  Using other boards will likely not work!

- Then just click 'Upload'. That's it!

For advanced users:
  If you'd like to see what else Grbl can do, there are some additional
  options for customization and features you can enable or disable. 
  Navigate your file system to where the Arduino IDE has stored the Grbl 
  source code files, open the 'config.h' file in your favorite text 
  editor. Inside are dozens of feature descriptions and #defines. Simply
  comment or uncomment the #defines or alter their assigned values, save
  your changes, and then click 'Upload' here. 

Copyright (c) 2015 Sungeun K. Jeon
Released under the MIT-license. See license.txt for details.
***********************************************************************/

#include <grbl.h>

// Do not alter this file!

What can I do to resolve this problem?
Thanks

[UPDATE 1]
I try do the same task on Windows 7 Home but I received this error:

core.a(main.cpp.o): In function `main':
C:\Program Files (x86)\Arduino\hardware\arduino\cores\arduino/main.cpp:40: undefined reference to `setup'
C:\Program Files (x86)\Arduino\hardware\arduino\cores\arduino/main.cpp:43: undefined reference to `loop'

On windows I has a necessity install special drive to windows can see and share port com with arduino. I try run a basic example, like blink, and the board works fine!

[UPDATE 2]
I try chance the code to this:

/***********************************************************************
This sketch compiles and uploads Grbl to your 328p-based Arduino! 

To use:
- First make sure you have imported Grbl source code into your Arduino
  IDE. There are details on our Github website on how to do this.

- Select your Arduino Board and Serial Port in the Tools drop-down menu.
  NOTE: Grbl only officially supports 328p-based Arduinos, like the Uno.
  Using other boards will likely not work!

- Then just click 'Upload'. That's it!

For advanced users:
  If you'd like to see what else Grbl can do, there are some additional
  options for customization and features you can enable or disable. 
  Navigate your file system to where the Arduino IDE has stored the Grbl 
  source code files, open the 'config.h' file in your favorite text 
  editor. Inside are dozens of feature descriptions and #defines. Simply
  comment or uncomment the #defines or alter their assigned values, save
  your changes, and then click 'Upload' here. 

Copyright (c) 2015 Sungeun K. Jeon
Released under the MIT-license. See license.txt for details.
***********************************************************************/

#include <grbl.h>

void setup() {
  
}

void loop() {
  
}
// Do not alter this file!

And works! The arduino can upload the code. But the example it is clear “// Do not alter this file!”
I should well change this code?

Thanks

[UPDATE 3]
Important information about configuration on windows 7:

1-Tools->Board-> Arduino Uno or Arduino Nano w/ATmega328
2-Serial Porto → COM3
3-Programmer → AVRISP mkII

On Lubuntu (debian):

1-Tools->Board-> Arduino Uno or Arduino Nano w/ATmega328
2-Serial Porto → USB0
3-Programmer → AVRISP mkII