// Simple C++ program to display "Hello Automatic Addison"
// Header file for input output functions
using namespace std;
// main function
// where the execution of program begins
// prints hello world
cout<<"Hello Automatic Addison";
Save the file, and close it.
See if your file is in there.
Compile the program. All of this is just a single command.
To install Python, open a new terminal window and type:
sudo apt-get install python python3
To find out where the Python interpreter is located, type this command.
You should see:
Install gedit, a text editor that will enable us to write code in Python.
sudo apt-get install gedit
Let’s begin by installing pip. Pip is a tool that will help us manage software packages for Python.
Software packages are bundles of code written by someone else that are designed to solve a specific problem. Why write code to solve a specific problem from scratch, when someone else has already written code to solve that exact same problem? That is where software packages come into play. They prevent you from having to reinvent the wheel.
Open up a fresh Linux terminal window.
Type the following command to update the list of available packages that can be installed on your system.
sudo apt-get update
Type your password.
Upgrade all the packages. The -y flag in the following command is used to confirm to our computer that we want to upgrade all the packages.
sudo apt-get -y upgrade
Type the following command to check the version of Python you have installed.
My version is 3.6.9. Your version might be different. That’s fine.
Now, let’s install pip.
sudo apt-get install -y python3-pip
If at any point in the future you want to install a Python-related package using pip, you can use the following command:
pip3 install package_name
Create a Virtual Environment
In this section, we will set up a virtual environment. You can think of a virtual environment as an independent workspace with its own set of libraries, settings, packages, and programming language versions installed.
For example, you might have a project that needs to run using an older version of Python, like Python 2.7. You might have another project that requires Python 3.8. Setting up separate virtual environments for each project will make sure that the projects stay isolated from one another.
Let’s install the virtual environment package.
sudo apt-get install -y python3-venv
With the software installed, we can now create the virtual environment using the following command. The dot(.) in front of py3venv makes the directory a hidden directory (the dot is optional):
python3 -m venv .py3venv
Type the following command to get a list of all the directories. You should see the .py3venv folder there.
List all the contents inside the .py3venv folder.
Now that the virtual environment has been created, we can activate it using the following command:
Look what happened. There is a prefix on the current line that has the name of the virtual environment we created. This prefix means that the .py3venv virtual environment is currently active.
When a virtual environment is active that means that when we create software programs here in Python, these programs will use the settings and packages of just this virtual environment.
Keep your terminal window open. We’re not ready to close it just yet. Move on to the next section so that we can write our first program in Python.
Write a “Hello World” Program
Let’s write a program that does nothing but print “Hello Automatic Addison” (i.e. my version of a “Hello World” program) to the screen.
In this tutorial, I will show you everything you need to know to get started with the NVIDIA Jetson Nano. The official tutorial is here, but I will run through all the steps below. I recommend you go through these steps slowly. It took me a full day to set up the Jetson Nano, so be patient and enjoy the journey.
You Will Need
This section is the complete list of components you will need for this project (#ad).
Disclosure (#ad): As an Amazon Associate I earn from qualifying purchases.
After you have downloaded it, launch the NoMachine application on your PC.
Double click on your Jetson Nano icon (i.e. Ubuntu 18.04).
Type in the username and password for the Jetson Nano machine.
Click through the prompts, and you will see your Desktop appear.
Now, power OFF your Jetson Nano.
sudo shutdown -h now
Remove the power supply, and then plug it back in.
Install Putty (Optional)
Putty is a program that will enable us to connect to the Jetson Nano’s terminal only.
Go to putty.org and download the installer for your machine. I am using a 64-bit Windows computer so that is what I will select.
Follow the instructions to download Putty. Once you’ve finished, open up Putty. If you’re using Windows, you can usually find it in the Start Menu.
The first thing you will do is type in the IP address of your Jetson Nano.
Select the SSH radio button.
Click the Open button.
If you get a popup window, click “Yes” and then you will go to a black terminal window.
Type in the username and password of your Jetson Nano.
That’s it. You’re logged in to your Jetson Nano via the command line interface.
You are now good to go.
A lot of Jetson Nano projects involve heavy computation (e.g. deep learning and robotics), which can make the board heat up pretty quickly. I recommend buying and setting up your Jetson Nano with a cooling fan and case.
Whew! That was a lot of work setting up the NVIDIA Jetson Nano.