Beaglebone Projects
Some small projects on the beaglebone board for Real Time Systems lecture.
How to connect
- SSH
ssh debian@192.168.7.2
# password = temppwd
- Adding the default gateway (on Board)
sudo ifconfig usb0 192.168.7.2
sudo route add default gw 192.168.7.1
sudo su
echo "nameserver 8.8.8.8" >> /etc/resolv.conf
exit
- Routing Internet to the beagle from computer (on your pc)
sudo su
ifconfig enx78a504eddfe6 192.168.7.1
iptables --table nat --append POSTROUTING --out-interface wlps2s0 -j MASQUERADE
iptables --append FORWARD --in-interface enx78a504eddfe6 -j ACCEPT
echo 1 > /proc/sys/net/ipv4/ip_forward
exit
You'll need to change enx78a504eddfe6 for the interface that you computer is connect to the board. And change the interface wlps2s0 to the interface that your computer is connect with the internet. To find out run this command:
ifconfig
To test if everything went out okay, run on the board:
ping 8.8.8.8
# or
ping www.google.com
If you see some pings on terminal then you're ready to go!
BlackLib
- Install
git clone https://github.com/tfmiranda/BlackLib-Modificada.git
cd BlackLib-Modificada
make
- Run Important: before to build and run your program run sudo su
./main
Shutdown
sudo shutdown -h now