User Tools

Site Tools


gettingstarted

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

gettingstarted [2018/10/16 20:48]
gettingstarted [2019/01/26 08:01] (current)
Line 1: Line 1:
 +**Getting Started**
  
 +The first step to getting started with linino is to set up a connection to your linino device, in this case the Arduino Yun. Two approaches are described below: ssh (requires a network connection) and minicom (serial protocol via the mini-usb port).
 +
 +**Connecting with ssh**
 +
 +Out of the box, you can connect to the Arduino Yun over its wireless network, since the Arduino acts as a 2.4GHz 11n Wi-Fi access point. The broadcast SSID should be of the form Arduino-XXXXXXXXXXXX,​ where the X's are numbers or letters specific to the MAC address of your device.
 +
 +{{:​wiki:​menu_002.png?​nolink&​200|}}
 +
 +Now you can ssh to the Yun using its wlan IP address. The default wlan IP address is 192.168.240.1. Use your favorite ssh client or from the Linux command line:
 +
 +''#​ ssh 192.168.240.1''​
 +
 +The default password for the Arduino Yun is '​doghunter'​. Enter the password when prompted and you should gain access to the Yun. To change the password once inside, use the ''​passwd''​ command.
 +
 +To connect via ssh without using wireless, plug the Yun's Ethernet port directly into a switch or router. The Ethernet port is setup as a WAN port, defaulting to a DHCP client. The WAN connection therefore allows the Yun to connect to the Internet. You'll need access to the upstream DHCP server in order to look up the IP address obtained by the Yun. You can obtain help from this tutorial [[http://​itsfoss.com/​how-to-find-what-devices-are-connected-to-network-in-ubuntu/​|here]]. Or you can first connect to the Arduino Yun via minicom (following the tutorial below) and run the command:
 +
 +''#​ ifconfig eth0''​
 +
 +Once you know your Arduino Yun's WAN IP address, then you can ssh to that address.
 +
 +''#​ ssh <​ip_address>''​
 +
 +
 +**Connecting with Minicom**
 +
 +A fairly powerful way to connect to the Arduino Yun is via a mini-usb cable and Minicom. First, install minicom.
 +
 +''​$ sudo apt-get install minicom''​
 +
 +Next, plug in the mini-usb cable to your Arduino Yun with the usb port plugged into your computer. Now run minicom with the setup option to configure the correct serial port.
 +
 +''​$ sudo minicom -s''​
 +
 +If you run into an error using the above command, try becoming root then run minicom.
 +
 +''​$ sudo -i''​
 +
 +''#​ minicom -s''​
 +
 +When prompted with the setup menu, choose the option //Serial port setup// then press //a// to change the //Serial port// option from ''/​dev/​tty8''​ to ''/​dev/​ttyACM0''​. Press enter twice to get back to the setup menu then scroll down and select the //Save setup as dfl// option. This will now save the default serial port setting to ''/​dev/​ttyACM0''​. After the save has completed, select the //Exit// option from the setup menu.