-
Notifications
You must be signed in to change notification settings - Fork 1
Using the BBB on Windows
Note: BBB is a short form for BeagleBone Black.
Note: To be able to connect to the BBB from your computer, the operating system of the BBB must alreday be installed on your computer. If this is not the case, please follow the guide for that first before continuing.
To compile your project onto the BeagleBone, you will need to learn how to connect the BBB to your computer and mount the BBB file system onto your computer as well. At the end of this guide, there are instructions for adding aliases (basically shortcuts) to avoid typing out command line functions repeatedly.
-
User:
hyped
-
Password:
spacex
-
BeagleBone IP Address on Windows:
192.168.7.2
To connect via ssh:
$ ssh hyped@192.168.7.2
- Connect the BBB to your computer using the USB cable. This will cause the BBB to power on and some blue lights will start flashing. It may take a couple of minutes for your computer to detect that it is connected.
To communicate with the BBB from your laptop, we will use SSH. If SSH is not installed on your computer, you can install it by running the following command (for WSL users only) in your terminal:
$ sudo apt-get install ssh
For Cygwin users, open up the cygwin setup and select ssh package for installation.
- With SSH installed, you can connect to the BBB by launching terminal and running the ssh command. ssh has the following command:
$ ssh user@address
In our case the user is hyped and the address is the IP address of the BeagleBone - 192.168.7.2.
Therefoe, your command should look like this:
$ ssh hyped@192.168.7.2
- You will then be prompted to enter Hyped's password, which is: spacex
If this is your first time connecting to the BBB you should get a warning message which is normal, just continue and your computer should be connected.
If you are prompted with an error message (something along the lines of "SOMEONE TRIED TO BREAK INTO THE SYSTEM"), then see the Troubleshooting section below.
Before you attempt to mount BBB's file system, make sure you are able to ssh to the BBB.
Then, install these drivers: Winfsp SSHFS-WIN
Then, follow these steps:
- open your file explorer (
Win+E
) - go to
This PC
- At the top panel, select
Computer->Map Network Drive
- Select drive letter to use and type folder
\\sshfs\hyped@192.168.7.2\
to mount the home folder of the BBB onto the new drive - Type in the password if requrested.
After this, the new drive should contain the BBB's file system. On cygwin, you can access it on path cd /cygdrive/<your_drive_letter>
NOTE: For remote BBB, you can use:
- ssh -f @student.ssh.inf.ed.ac.uk -L <random_4_digit_port>:<remote_BBB_IP>:22 -N
- check you can ssh directly to BBB by `ssh -p <random_4_digit_port> hyped@localhost
- If yes, use mount folder in Windows
\\sshfs\hyped@<remote_BBB_IP>!<random_4_digit_port>\
If you have connected to a different BeagleBone before and try connecting again your computer might not let you.
The solution for this is to enter the following command in the terminal:
$ ssh-keygen -R 192.168.7.2
This will reset your computer's memory of previous devices at that IP address and allow the connection to the new device.
- Typing in these commands is a pain when you need to use the BBB repeatedly. This section will teach you how to manipulate bash script on your computer to save these various commands of this guide to your computer.
- Open a new terminal and navigate to your home directory:
$ cd
- Type the command
ls -a
and a list of files will appear. There should be a file called.bashrc
. Open that file in terminal with nano:
$ ls -a
$ nano .bashrc
- Within this script, type the following lines below the preexisting text. Make sure to replace <insert_path_here> with the path to the mount directory you created earlier.
BBB=192.168.7.2
alias sshclean="ssh-keygen -R $BBB"
alias sshBBB="ssh hyped@$BBB"
- To exit nano, press ctrl+x, then hit enter twice when prompted to save the script
- You need to make sure the script is sourced in terminal. To test this, close the terminal window and open a new terminal window to its home directory.
- Type the following command to if it is sourced:
$ echo $BBB
- The output should be
192.168.7.2
. If not, type the following command to source the.bashrc
script:
$ source ~/.bashrc
- Congratulations! You have successfully shortcut commands for the BBB. Next time you connect to the BBB, use
sshclean
andsshBBB
instead of their longer, equivalent commands you learned above.
- Home
- How to add and edit pages on the wiki
- Glossary
- Admin
- Projects & Subsystems
- Motor Controllers
- Navigation
- Quality Assurance
- Sensors
- State Machine
- Telemetry
- Technical Guides
- BeagleBone Black (BBB)
- Configuration
- Contributing
- Testing
- Install VM on Mac
- Makefiles
- Reinstall MacOS Mojave
- Travis Troubleshooting
- Knowledge Base