Search This Blog

Saturday, August 23, 2014

Set up home media server using BBB

     I got an idea to set up home media server based on my BeagleBoneBlack. Here is what I have done.

1.Get these stuffs
  • BeagleBoneBlack board
  • LAN Cable + Wifi network hub
  • USB hub
  • USB harddisk or other usb media drive. 
  • Your PC
  • Android Phone

 2. Put everything together.
 3. Next step, setup the software,
             $sudo apt-get install vim

  • Install Mediatomb for MediaServer.
             $sudo apt-get install mediatomb

  • Setup mediatomb as you wish. Using vim to edit /etc/mediatomb/config.xml

          Enable Web Interface ->
               <ui enabled="yes" show-tooltips="yes">

          Allowing Accounts ->
                <accounts enabled="no" session-timeout="30">

           Change port and interface by adding these lines after server tag ->

            Save config file and exit

4.Mount the usb harddisk at /media
         $sudo mount /dev/sdXX /media

5.Restart mediatomb
          $sudo /etc/init.d/mediatomb restart   
6.On PC, Open web browser and enter http://<BBB ip address> : 49154

7.Login to mediatomb with it's web interface (Username: mediatomb ,Password:mediatomb)

8.Add media you want to play to database

9.Next, Connect to play media with your media player (In my case, I using VLC)
  •    Open Play list and select UPNP(Universal Plug and Play) on Local network.
Right click and select play, it will ask for network URL. Just enter the BBB IP address with setting port.

  • Then the play list should appeared.Enjoy the music !! 

10. For Android phone, I using Upnplay app to do the same job.

Wednesday, August 20, 2014

Run Ubuntu on BeagleBoneBlack

   I've tried another Linux distribution on my BBB. It's Ubuntu ! Here is what I've done.

1.You need these stuffs.
  •       Beagle Bone Black board. 
  •       micro-SDcard 8 GB (and SD Card adepter)
  •       5V power adepter.
  •       USB hub
  •       USB Keyboard
  •       LAN Cable and network to internet. 
  •       micro HDMI cable for connecting with monitor(For my case, I used 4D System's 4.3 inches LCD Cape instead of that)

2.Download Ubuntu Image file from ...

3. Extract it with this below command.
# unxz BBB-eMMC-flasher-ubuntu-14.04-console-armhf-2014-08-13-2gb.img.xz

4. Put micro-SDcard into the adepter and plug it into computer ( I using Ubuntu base PC) then write image to the micro-sdcard with this command.
# dd if=BBB-eMMC-flasher-ubuntu-14.04-console-armhf-2014-08-13-2gb.img of=/dev/sdX
where X is your sdcard drive.

5. After a while, unplug the micro-SDcard from your PC and put it into the slot on the BBB. Afterthat, hold down S2 switch(or boot switch) and plug in the power adepter. When the Linux boot screen was appeared then release the S2 switch. The flashing eMMC progress has just begun. you have to wait until the "System halt" message was displayed.

6.Unplug the micro-SDcard and reset the board. After a minute, the log-in screen will appeared. (Username: ubuntu , Password: temppwd)

Reference :