Difference between revisions of "Beaglebone Black"

From Pumping Station One
Jump to navigation Jump to search
m (Bot: Cosmetic changes)
 
Line 11: Line 11:
 
<code>/etc/hosts</code>
 
<code>/etc/hosts</code>
 
<syntaxhighlight lang=bash>
 
<syntaxhighlight lang=bash>
127.0.0.1       localhost
+
127.0.0.1 localhost
127.0.1.1       new_host_name
+
127.0.1.1 new_host_name
 
</syntaxhighlight>
 
</syntaxhighlight>
  
Line 58: Line 58:
 
</syntaxhighlight>
 
</syntaxhighlight>
  
This process usually fails a couple times, and even causes the beaglebone to lock up. Expect to reboot and receive errors. The errors usually come with further instructions like <code>apt-get install -f</code> and <code>dpkg --configure -a</code>
+
This process usually fails a couple times, and even causes the beaglebone to lock up. Expect to reboot and receive errors. The errors usually come with further instructions like <code>apt-get install -f</code> and <code>dpkg --configure -a</code>
  
 
The dist-upgrade command will take many hours to complete.
 
The dist-upgrade command will take many hours to complete.

Latest revision as of 23:29, 9 March 2015

Getting Access

Assuming your client machine has access to bonjour/avahi style name resolution:

ssh [email protected]
echo new_host_name > /etc/hostname

Hosts File

/etc/hosts

127.0.0.1 localhost
127.0.1.1 new_host_name

reboot

reboot
ssh root@new_host_name.local

While the unit is rebooting, it's worth watching the lights on the beaglebone to make sure you are rebooting the right one.

Removing Stuff You Don't Need

apt-get remove apache2 xorg

Upgrades

edit /etc/apt/sources.list

  • replace wheezy with jessie
  • comment out debian.beagleboard.org, there is no jessie-bbb
deb http://ftp.us.debian.org/debian/ jessie main contrib non-free
#deb-src http://ftp.us.debian.org/debian/ jessie main contrib non-free

deb http://ftp.us.debian.org/debian/ jessie-updates main contrib non-free
#deb-src http://ftp.us.debian.org/debian/ jessie-updates main contrib non-free

deb http://security.debian.org/ jessie/updates main contrib non-free
#deb-src http://security.debian.org/ jessie/updates main contrib non-free

#deb http://ftp.debian.org/debian jessie-backports main contrib non-free
##deb-src http://ftp.debian.org/debian jessie-backports main contrib non-free

#deb [arch=armhf] http://debian.beagleboard.org/packages jessie-bbb main
#deb-src [arch=armhf] http://debian.beagleboard.org/packages jessie-bbb main

dist-upgrade

apt-get update
apt-get dist-upgrade
apt-get autoremove

This process usually fails a couple times, and even causes the beaglebone to lock up. Expect to reboot and receive errors. The errors usually come with further instructions like apt-get install -f and dpkg --configure -a

The dist-upgrade command will take many hours to complete.