Clean up default software to get to a (mostly) standard distro?

714 views
Skip to first unread message

chrism...@gmail.com

unread,
Jun 26, 2014, 2:16:23 PM6/26/14
to beagl...@googlegroups.com
Hi everyone!

I just got my BBB rev C in the mail on Tuesday! Super excited about it too :D

What I'm wondering is - there's a lot of extra software on the system that I don't really need. Is there a list somewhere of all of the specialized software that's installed, so that I can take the system back to a more standard setup? Eg., I'd rather have Apache serve out over port 80, rather than whatever's doing so currently, and I don't need the developer tools on the board itself (I'll put them on my other computer.) I don't really need all the X stuff either. For the most part, I just want a basic server (that I can install some additinoal software to) that can be used to access all the GPIO, UARTs, etc.

Thanks!
Chris

Robert Nelson

unread,
Jun 26, 2014, 3:49:30 PM6/26/14
to Beagle Board
Well, the factory image was based on this image:

http://elinux.org/BeagleBoardDebian#eMMC:_BeagleBone_Black

So, reflashing that image would be easier then to tell you which of
the 600 packages was added ;)

Regards,

--
Robert Nelson
http://www.rcn-ee.com/

Chad Baker

unread,
Jun 26, 2014, 6:14:54 PM6/26/14
to beagl...@googlegroups.com
Chris,
I have found this site to be useful
http://hifiduino.wordpress.com/2014/03/17/beaglebone-black-base-operating-system/
Enjoy and be prepared to re-flash and re-install software several times.
Chad

Iben Rodriguez

unread,
Jun 27, 2014, 12:39:31 AM6/27/14
to beagl...@googlegroups.com
Those are some good links.  One of the new BBB Rev C units I just got had a bad HDMI port and so I had to send it back for RMA.  When I got the repaired unit back it had angstrom on it so i had to figure out how to flash it back to debian.  

The instructions here:
look good except that I'd be sure to get the latest "flasher" image from here: 
Updates seem to happen on a monthly basis:
  • 2014-06-05
    • BeagleBone Black: v3.8.13-bone56 kernel
  • 2014-05-06
    • BeagleBone Black: v3.8.13-bone49 kernel
  • 2014-04-18
    • BeagleBone Black: v3.8.13-bone47 kernel

One of the nice benefits of this experience (ordeal?) is that I got a base or bare minimum debian install with none of the fluff and there was even some hardening done as far as the usernames and passwords go.  

Below I will share some of the details for your consideration.

Here is the disk usage with the original factory image: 44% full using 1.4G of the 3.4G on board flash.

Factory image:

root@beaglebone:~# df -h
 Filesystem Size Used Avail Use% Mounted on
 rootfs 3.4G 1.4G 1.9G 44% /
 udev 10M 0 10M 0% /dev
 tmpfs 100M 632K 99M 1% /run
 /dev/disk/by-uuid/8aecba16-c811-47ee-86ed-78588c08ce2a 3.4G 1.4G 1.9G 44% /
 tmpfs 249M 0 249M 0% /dev/shm
 tmpfs 249M 0 249M 0% /sys/fs/cgroup
 tmpfs 100M 0 100M 0% /run/user
 tmpfs 5.0M 0 5.0M 0% /run/lock
 /dev/mmcblk0p1 96M 72M 25M 75% /boot/uboot
 /dev/mmcblk1p1 63G 5.1G 58G 9% /media/NO NAME

root@beaglebone:~#

Base image: 

root@arm:~# uname -a
Linux arm 3.8.13-bone56 #1 SMP Wed Jun 4 23:59:23 UTC 2014 armv7l GNU/Linux

root@bbb1:~# df -h
Filesystem                                              Size  Used Avail Use% Mounted on
rootfs                                                  3.4G  630M  2.6G  20% /
udev                                                     10M     0   10M   0% /dev
tmpfs                                                   100M  1.5M   98M   2% /run
/dev/disk/by-uuid/ae487a65-a8c7-44e8-a20f-acadab4e5fb5  3.4G  630M  2.6G  20% /
tmpfs                                                   249M     0  249M   0% /dev/shm
tmpfs                                                   249M     0  249M   0% /sys/fs/cgroup
tmpfs                                                   100M     0  100M   0% /run/user
tmpfs                                                   5.0M     0  5.0M   0% /run/lock
/dev/mmcblk0p1                                           96M   79M   18M  82% /boot/uboot

I also restored the password settings so I could login with no password.

passwd -d root # to clear the password 
vi /etc/pam.d/common-auth # change the line below
pam_unix.so nullok

vi /etc/ssh/sshd_config # To enable empty passwords, change to yes 
PermitEmptyPasswords yes



I b e n
+14087824726

Skype: ibenrodriguez
Twitter: @iben 
Google: iben.rodriguez



--
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 beagleboard...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Jesse Cobra

unread,
Jun 27, 2014, 12:47:49 AM6/27/14
to beagl...@googlegroups.com

If a minimal system is what your after I recommend buildroot. It takes some effort but it can be made very minimal...

William Hermans

unread,
Jun 27, 2014, 2:43:40 AM6/27/14
to beagl...@googlegroups.com
Or one could always use Robert Nelsons barefs and just replace the rootfs / install what you want / need via apt-get install.

http://eewiki.net/display/linuxonarm/BeagleBone+Black
Reply all
Reply to author
Forward
0 new messages