Chris,
If you don't have a router or Ethernet switch and only have access
via your computers WiFi then what I did was make a change to
one file on the BBB and one change to your P.C.'s network
connection for the BBB.
sudo nano /etc/network/interfaces
iface usb0 inet static
address 192.168.137.2
netmask 255.255.0.0
network 192.168.137.0
gateway 192.168.137.1
dns-nameservers 8.8.8.8
post-up route add default gw 192.168.137.1
Change entry on P.C. Reboot BBB. Now access
BBB using 192.168.137.2
ssh to 192.168.137.2
Firefox to 192.168.137.2
Putty ssh to 192.168.137.2
This change is persistent any only needs to be
done once. Not complicated and works great.
After changes are made you can now get the
date / time automatically. Simply install ntpdate.
sudo apt update
sudo apt install ntpdate
Then one time
sudo cp -f /usr/share/zoneinfo/America/New_York /etc/localtime
Another example
sudo cp -f /usr/share/zoneinfo/Europe/Berlin /etc/localtime
Then at boot time
sudo /usr/sbin/ntpdate -b -s -u 0.north-america.pool.ntp.org
The above can be put in a shell script. Check for correct
timezone and date using
date
If wrong see zoneinfo directory to find YOUR time zone.
If you are not in North America change
0.north-america.pool.ntp.org
To see YOUR country. See
https://www.pool.ntp.org/zone/@
The above works, works great and is not over complicated.
And only needs to be done once then your BBB will have
the correct date / time and Internet access.
I also added a small program that's been around for years
in Linux / Unix called 'ed' a line editor. It's small and fast
supports 'here' input and redirection. To get it
sudo apt install ed
See https://www.computerhope.com/unix/ued.htm
And https://www.gnu.org/software/ed/manual/ed_manual.html
>
>
>
--
For more options, visit http://beagleboard.org/discuss
---
You received this message because you are subscribed to the Google Groups
"BeagleBoard" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/beagleboard/789fa724-1cd0-4475-b106-6f509a21d81a%40googlegroups.com.