PB:Get in touch
After completing the installation of a suitable image on as SD card insert the card into the PocketBeagle (PB).
Attach the USB cable to the PB and to the computer and observe that the blue LED's start blinking after a short while.
In your VirtualBox you shall capture the PocketBeagle's USB and route it into the guest OS.
Next in a console observe that a couple of new ethernet interfaces has been created:
] $ ip a ... 5: enp0s12u1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UNKNOWN qlen 1000 link/ether 60:64:05:f7:7e:b8 brd ff:ff:ff:ff:ff:ff inet 192.168.7.1/30 brd 192.168.7.3 scope global dynamic enp0s12u1 valid_lft 89sec preferred_lft 89sec inet6 fe80::af47:898e:c31b:86d1/64 scope link valid_lft forever preferred_lft forever 6: enp0s12u1i2: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UNKNOWN qlen 1000 link/ether 60:64:05:f7:7e:bb brd ff:ff:ff:ff:ff:ff inet 192.168.6.1/30 brd 192.168.6.3 scope global dynamic enp0s12u1i2 valid_lft 111sec preferred_lft 111sec inet6 fe80::4ef1:a54e:eb5e:8b69/64 scope link valid_lft forever preferred_lft forever ...
From the list we can see that two new interfaces were created and the IP addresses 192.168.6.1 and 192.168.7.1 has been assigned to the interfaces.
Next step is to log into the PB. We'll use ssh - Secure Shell. ssh uses a encrypted connection, which means that you can use it in the open Internet without being victim of monitoring or worse things. The default user name on a fresh PB distribution is debian
] $ ssh firstname.lastname@example.org [ ✓ klaus@jdoe [~] $ ssh email@example.com
The authenticity of host '192.168.6.2 (192.168.6.2)' can't be established. ECDSA key fingerprint is SHA256:8/EeQvGSYojpaogZ8oDNnfZ9836IS3PUiBNQo116jac. ECDSA key fingerprint is MD5:af:41:ed:b6:3e:44:d6:a0:45:7e:db:0a:0a:98:a9:08. Are you sure you want to continue connecting (yes/no)? yes
NOTE answer yes
Warning: Permanently added '192.168.6.2' (ECDSA) to the list of known hosts. firstname.lastname@example.org's password: Linux beaglebone 4.9.78-ti-r94 #1 SMP PREEMPT Fri Jan 26 21:26:24 UTC 2018 armv7l The programs included with the Debian GNU/Linux system are free software; the exact distribution terms for each program are described in the individual files in /usr/share/doc/*/copyright. Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent permitted by applicable law. debian@beaglebone:~$
The password for a virgin PB distribution is temppwd.
Congratulations, you're up running.
Give your PB a nickname
If you have hard typing in the IP adress on the host machine you can give your PB a nickname. By editing the /etc/hosts (on the Centos) file you can add any name that you want to type in in order to refer to the IP address of the PB.
] $ sudo vi /etc/hosts
My hosts file looks like this:
[ ✗ klaus@jdoe [PocketBeagle] $ cat /etc/hosts 127.0.0.1 localhost.localdomain localhost ::1 localhost6.localdomain6 localhost6 192.168.7.2 beagle 192.168.6.2 pocket
so when I put in my BeagleBone Black I can connect to it using ssh beagle, provided that I'm logged in as user klaus on my devhost and that I have created a user klaus over on the BBB. Likewise I can connect to my PocketBone by typing ssh pocket. Se PB:Create_a_user about how to create a user on the PB,