element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • Community Hub
    Community Hub
    • What's New on element14
    • Feedback and Support
    • Benefits of Membership
    • Personal Blogs
    • Members Area
    • Achievement Levels
  • Learn
    Learn
    • Ask an Expert
    • eBooks
    • element14 presents
    • Learning Center
    • Tech Spotlight
    • STEM Academy
    • Webinars, Training and Events
    • Learning Groups
  • Technologies
    Technologies
    • 3D Printing
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • Technology Groups
  • Challenges & Projects
    Challenges & Projects
    • Design Challenges
    • element14 presents Projects
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • Project Groups
  • Products
    Products
    • Arduino
    • Avnet & Tria Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • About Us
  • Store
    Store
    • Visit Your Store
    • Choose another store...
      • Europe
      •  Austria (German)
      •  Belgium (Dutch, French)
      •  Bulgaria (Bulgarian)
      •  Czech Republic (Czech)
      •  Denmark (Danish)
      •  Estonia (Estonian)
      •  Finland (Finnish)
      •  France (French)
      •  Germany (German)
      •  Hungary (Hungarian)
      •  Ireland
      •  Israel
      •  Italy (Italian)
      •  Latvia (Latvian)
      •  
      •  Lithuania (Lithuanian)
      •  Netherlands (Dutch)
      •  Norway (Norwegian)
      •  Poland (Polish)
      •  Portugal (Portuguese)
      •  Romania (Romanian)
      •  Russia (Russian)
      •  Slovakia (Slovak)
      •  Slovenia (Slovenian)
      •  Spain (Spanish)
      •  Sweden (Swedish)
      •  Switzerland(German, French)
      •  Turkey (Turkish)
      •  United Kingdom
      • Asia Pacific
      •  Australia
      •  China
      •  Hong Kong
      •  India
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      • Americas
      •  Brazil (Portuguese)
      •  Canada
      •  Mexico (Spanish)
      •  United States
      Can't find the country/region you're looking for? Visit our export site or find a local distributor.
  • Translate
  • Profile
  • Settings
Single-Board Computers
  • Products
  • Dev Tools
  • Single-Board Computers
  • More
  • Cancel
Single-Board Computers
Forum What WEB Server is running on the BBB out of the box?
  • Blog
  • Forum
  • Documents
  • Files
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Join Single-Board Computers to participate - click to join for free!
Actions
  • Share
  • More
  • Cancel
Forum Thread Details
  • State Verified Answer
  • Replies 21 replies
  • Subscribers 58 subscribers
  • Views 2243 views
  • Users 0 members are here
  • Black
  • beagle
  • bone
Related

What WEB Server is running on the BBB out of the box?

Former Member
Former Member over 11 years ago

When I attach my BBB to my computer, I can view 'flash drive' WEB pages from the mounted BBB. For this to happen, no WEB Server is required as my computers browser is just reading the various web files needed to view the content as a "web page".  However, if I browse onto the BBB from my network via the ip my router's DHCP has assigned to it, (or from the USB RNDS wired connection), the BBB spits out WEB pages.  What server is running on the BBB to do this.  I have looked at the processes running on the BBB with TOP and systemctl.  I see nothing that indicates what's going on.  I was expecting Apache or Lighttpd or something similar.

 

What I'm really trying to do is find out where I can put my own custom Web pages on the BBB so that it can serve up my own content.  I've found Blog postings where people have installed a Web server on the BBB, but I don't think this is really required as it already seems to be doing a good job with its own content. Any pointers or links would be greatly appreciated.

  • Sign in to reply
  • Cancel

Top Replies

  • mconners
    mconners over 11 years ago in reply to Former Member +2
    Here is a good intro to some node packages that serve up static content http://www.sitepoint.com/serving-static-files-with-node-js/ Mike
Parents
  • Former Member
    0 Former Member over 11 years ago

    Assuming you're running angstrom then what you're seeing is likely being served through node.js, look for something in the process list with node in it.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Reject Answer
    • Cancel
  • Former Member
    0 Former Member over 11 years ago in reply to Former Member

    I guess I've got to look into this node.js thing.  All I really want to do is work my own web pages so that I can link 'run' radio buttons to my Bonescript files.  This would be similar to the "stock" pages that run the Blink demo on the BBB.  I'll look for the stock .js file location and reverse engineer how BB links them to the //192.168.7.2/Support/bone101/

     

    Thanks for the heads up.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • mconners
    0 mconners over 11 years ago in reply to Former Member

    Here is a good intro to some node packages that serve up static content

     

    http://www.sitepoint.com/serving-static-files-with-node-js/

     

    Mike

    • Cancel
    • Vote Up +2 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • Former Member
    0 Former Member over 11 years ago in reply to mconners

    Well it took way too long, but I finally found the files.

     

    I guess most of the Linux users here are thinking, "Yeah. Duhh.  What took you so long"? Not being too familiar with either Linux or HTML, it was a challenge for me.  Anyway to finish the thread, they're here:

     

    root@beaglebone:/usr/share/bone101/Support#

    ls

    BoneScript  bone101

     

    The various WEB pages aren't as "flat" as I had expected.  Files are spread out in the various sub folders depending on where you are going on the WEB page.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • Former Member
    0 Former Member over 11 years ago in reply to mconners

    Thanks Michael, that's exactly what I was looking for.  I wonder why those are left to a third party, not given as obvious examples in the docs.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • mconners
    0 mconners over 11 years ago in reply to Former Member

    selsinork wrote:

     

    Thanks Michael, that's exactly what I was looking for.  I wonder why those are left to a third party, not given as obvious examples in the docs.

     

    You mean in the node.js docs? I don't know why. It does seem like it would be helpful to point out a more sophisticated implementation. Of course it's possible that at the time the docs were written they hadn't quite figured out a good way to serve static content, and by the time they figured it out, third party implementations were available.

     

    Mike

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
Reply
  • mconners
    0 mconners over 11 years ago in reply to Former Member

    selsinork wrote:

     

    Thanks Michael, that's exactly what I was looking for.  I wonder why those are left to a third party, not given as obvious examples in the docs.

     

    You mean in the node.js docs? I don't know why. It does seem like it would be helpful to point out a more sophisticated implementation. Of course it's possible that at the time the docs were written they hadn't quite figured out a good way to serve static content, and by the time they figured it out, third party implementations were available.

     

    Mike

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
Children
  • Former Member
    0 Former Member over 11 years ago in reply to mconners

    Michael Conners wrote:

     

    You mean in the node.js docs? I don't know why. It does seem like it would be helpful to point out a more sophisticated implementation.

    Yeah, I'd expect a 'just works' implementation that can replace your existing apache config should be page 1 of the node docs. Then guide people into learning more from there. Forcing people to climb a good part of the learning curve to do the most basic thing seems odd.

    and by the time they figured it out, third party implementations were available.

    and that's perfectly ok, as long as they put a link to those in a place that's easy to find.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
element14 Community

element14 is the first online community specifically for engineers. Connect with your peers and get expert answers to your questions.

  • Members
  • Learn
  • Technologies
  • Challenges & Projects
  • Products
  • Store
  • About Us
  • Feedback & Support
  • FAQs
  • Terms of Use
  • Privacy Policy
  • Legal and Copyright Notices
  • Sitemap
  • Cookies

An Avnet Company © 2025 Premier Farnell Limited. All Rights Reserved.

Premier Farnell Ltd, registered in England and Wales (no 00876412), registered office: Farnell House, Forge Lane, Leeds LS12 2NE.

ICP 备案号 10220084.

Follow element14

  • X
  • Facebook
  • linkedin
  • YouTube