you will obtain a lot of `enX` or `awdlx` devices, try to search for the new detected devices and specially the one with the ip 192.168.6.1 or 192.168.7.1 that belongs to the BeagleBone devices, and XXX for the Raspberry Pi.
Then, use the `SSH` protocol, from now ssh, to access the board computer (please change the ip address by your ip device)
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.
Last login: Thu Jul 7 07:08:40 2022 from 2806:2f0:5040:8572:7d51:e754:675:cd2a
```
you will obtain a lot of `enX` or `awdlx` devices, try to search for the new detected devices and specially the one with the ip 192.168.6.2 or 192.168.7.2 that belongs to the BeagleBone devices.
### TODO Basic USB connection for Raspberry Pi 4(RPi4)
### TODO Enabling the SSH in the RPi4
- Connect to a IP address
- SSH connection
## Accessing the RPi4 by ssh
The SBCs can be accessed by ssh protocol if it is enable (disable by default at raspberry). Thus, we only need to know the SBC's ip or hostname. By default the raspberry Pi 4 is `raspberry`, but username and password is defined by the user ([raspberry Pi imager](link)). Then, to make `ssh` use:
```
$ ssh username@hostname.local
```
ssh -X debian@192.168.7.2
debian:temppwd
or
```
### Error connection
$ ssh username@ip
```
## Error connection
When getting the error:
```
@ -45,66 +67,12 @@ and the key for the corresponding IP address 2806:103e:5:50f4:3ad2:69ff:fef9:46b
```
you have to edit the '.ssh/known_hosts' file, and delete the lien that contains the offending key and the corresponding IP address given the warning.
### Sharing the internet through usb
### Wi-Fi
To connect to your Wireless network type the following command in the terminal window:
Get:2 http://deb.debian.org/debian bullseye/main arm64 vim-runtime all 2:8.2.2434-3+deb11u1 [6226 kB]
Get:3 http://deb.debian.org/debian bullseye/main arm64 vim arm64 2:8.2.2434-3+deb11u1 [1388 kB]
Fetched 7650 kB in 0s (17.0 MB/s)
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
LANGUAGE = (unset),
LC_ALL = (unset),
LC_CTYPE = "UTF-8",
LANG = "en_GB.UTF-8"
are supported and installed on your system.
perl: warning: Falling back to a fallback locale ("en_GB.UTF-8").
.
.
.
```
### Changing the bb's or rpi4's hostname
First edit the `/etc/hostname` file by:
```
$ sudo vim /etc/hostname
```
change the first and only line in this file to reflect your new hostname.
Then, edit the `/etc/hosts` file:
```
127.0.0.1 localhost
127.0.1.1 hostname.localdomain hostname
# The following lines are desirable for IPv6 capable hosts
::1 localhost ip6-localhost ip6-loopback
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
```
change the second line in both `hostname` (127.0.1.1) instances for your new hostanme (must be the same previously defined).
Finally, reboot your beagle or raspberry device.
### Changing the user's password
To change the default user's password use:
```
$ passwd
Changing password for debian.
Current password: temppwd
New password: xxxxxxx
...
```
### Time and internet access
We previously have checked the internet access to our SBC-devices, now, let us use the internet to sync our time zone and locales for the further sync of commits in the git system. Thus, let us check the time at the device by: