First thing to do is to get the Linux SD card image (~230MB).
Click on this “SD-Card Linux Image ” and then save the image.
Next up, we need to load the downloaded SD card image onto the SD card.
Followthese instructions here that applies to your OS to prepare the SD card:
You’ll need the card with minimum of 2 GB capacity.
Next thing to do is to get access to the Linux console:
Using console will give you direct access to the Linux system that you’ve just installed. The easiest way to have access to the console is via the serial channel. Connect the USB serial cable from your Grove starter kit plus as pictured below:
Note that the black colored cable should aligned with the label"GND"on the PCB.
Now you need a serial terminal emulator to connect to the Galileo. We will be using putty.
If you are on Ubuntu or any debian based distro use following command to install the putty:
sudo apt-get install putty
Or if you are on Windows, download putty from here.
Identifying the serial port:
If you are on Linux, the USB port would get recognized as ttyUSBx in /dev folder where x is a number by which the port would be identified. Type the following command to know the file is /dev folder that represents the serial cable that you have connected.
If there are no other USB devices trying to emulate serial port then most likely, your serial cable should be identified as"/dev/ttyUSB0".
If you are on Windows, right click on “My computer->device manager->ports” and note down the com port (COM35 in my case)
Start putty from command line by typing"putty"on Linux, you might have to add sudo. On windows, run the putty executable that you had downloaded.
Select “Serial” enter “/dev/ttyUSB0” or “COM35” (or whatever is applicable in your case) in “serial line” option set “speed” as 115200.
Click on “Open”, insert SD card onto the micro SD card slot and turn on the power to your Galileo board (via provided DC adapter). After a few moments, a log in prompt should come up, enter “root” and hit enter.
Now you can log in to the Galileo over the network using SSH protocol. For this, you’ll need an Ethernet cable. Connect the Galileo and your system using Ethernet cable, directly or through a router/switch. In the serial terminal, type in the following command to know the IP address of the board using which we will SSH into the board.
To establish connection with the board, your computer and the board should have same subnet mask (if you’ve not connected the board and your system to a router, which means DHCP is not anbeld). You can use ifconfig to do that. For example, you could set the IP address of your computer as ‘169.254.7.1’.
sudo ifconfig eth0 169.254.7.1 up
On windows, you will have to go to network connection settings and manually set the IPv4 address.
Startputtyagain and this time select ‘SSH’ and enter the IP address in the field below ‘Host Name’ and click on ‘Open’.
You’ll have to add the key if this is the first time you are logging in via the SSH.
Type ‘root’ in the screen that appears next and hit enter key.
You may now use this console and disconnect the USB serial cable if you wish to use SSH instead of the serial terminal.
Well, this was the easiest path that you could take to get to the console on the Galileo and now for the hard way.
Getting to the console – The hard way (or Without the serial cable):
Let’s say you do not have a serial USB cable or you do not want to use one and still be able to use the console on our Galileo. Most often, you’ll have an Ethernet cable but not the serial USB cable. You can easily get to the console over the SSH using the Ethernet cable but there is a small problem here, there is no definite way to know the IP address of your board (especially if you’ve connected the Galileo to the router). There is a way to do just that. We are going to make this work by writing an Arduino sketch that will print out the IP address. First, you’ll need the Arduino Intel IDE which you can get it from here. Follow this getting started guide to know how you can upload your sketches. Download the sketch from here. Extract the zip file and open the sketch in the Intel Arduino IDE.
Upload the sketch once done, start the “Serial monitor” tool by clicking on the top right corner of the IDE.
You should see the IP address being printed.
Using this IP address, you can SSH to your Galileo.