How to – Use Galileo Linux with only an Ethernet cable directly connected between laptop and Galileo…
- Attach the Ethernet cable directly from the Galileo to your Laptop.
- Create a new sketch. In the setup function –
- Start the telnet server on Galileo (system(“telnetd -l /bin/sh”);)
- Give Galileo eth0 an IP address in the Link Local Address range 169.254.x.x (system(“ifconfig eth0 169.254.1.1 netmask 255.255.0.0 up”);)
- Link Local Automatic addressing will assign your Windows or Mac an IP address, usually taking no longer than a minute. http://en.wikipedia.org/wiki/Link-local_address .
- Use putty or any Telnet client to connect to Galileo using the IP address you assigned to Galileo eth0.
How to – Use Galileo Linux using an Ethernet cable and a home network Router(DHCP server)
- Attach Galileo to your router(DHCP server) using an Ethernet cable.
- Create a new sketch –
- In setup function – Start the telnet server on Galileo (system(“telnetd -l /bin/sh”);)
- In Loop – Call ifconfig and redirect the output to ttyGS0 (system(“ifconfig eth0 > /dev/ttyGS0”);) so you can view Galileo’s IP address on the serial Monitor. We call this in the loop function because the serial monitor closes on sketch upload
- Use putty or any Telnet client to connect to Galileo using the IP address returned on the Serial Monitor from ifconfig.