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 2250 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
  • shabaz
    0 shabaz over 11 years ago

    Hi Mark,

     

    It's a node.js based server. It is well worth reading up on node.js, if you like to code in JavaScript. Basically the server is written in JavaScript (example here). So, it's not the same as Apache/Lightttpd because some code is required to create the server - node.js is a platform, not a web server - but it is not a lot of code (just a few lines).

     

    EDIT: Sorry, just noticed it was answered by agrahambell

    • 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 shabaz

    shabaz I was reading that exact page you linked to earlier tonight.. The one thing that struck me is that the docs don't obviously cover the simple case of having a directory of flat files that you just want to be able to send to a browser..  Sure you can see that it can be done, but it appears that node makes even the simple stuff just as complex as the complex stuff.  I realise node is trying to be an web-app engine much like a cgi script or a php generated page, but what about all of the simple static stuff like images?

    The dumb 'Hello World' example that's only a few lines just leaves the feeling that things just became a lot more complex with no real explanation of why that would be a good thing. What am I missing here?

    • 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 Former Member

    Yes and where is this "flat page".  I've been poking around on the BBB to find where these .js  and BoneScript files are stored. With my limited Linux skills I can't find them.  I've tried searching for a known file like "demo_blinkled" but that doesn't get found with the find command.  I've probed every directory I can see and I haven't found them yet.

     

    It would be nice to have a simple 'HowTo' on where to load my .js and BoneScript files, and how to link it to a new start page at 192.168.7.2/foobar_whatever.

     

    Thanks

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

    Yes and where is this "flat page".  I've been poking around on the BBB to find where these .js  and BoneScript files are stored. With my limited Linux skills I can't find them.  I've tried searching for a known file like "demo_blinkled" but that doesn't get found with the find command.  I've probed every directory I can see and I haven't found them yet.

     

    It would be nice to have a simple 'HowTo' on where to load my .js and BoneScript files, and how to link it to a new start page at 192.168.7.2/foobar_whatever.

     

    Thanks

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
Children
No Data
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