Raspberry pi

I have owned the Raspberry Pi 1 Model B since it was first released and it is a great invention. An affordable credit card sized computer that instills joy and excitement in the hearts of technology enthusiasts. Their mission to empower kids to use and learn the technology to create applications is something I feel passionately about. We have a generation of consumers and not enough creators. Hopefully with the huge success of the rPi, this imbalance can be corrected through encouraging more creators to satisfy the economic demand for technical jobs.

As many flavors of Linux can be booted as you have SD cards. SD cards are very cheap and one SD card I use a lot has a media centre image (OSMC) loaded. I am able to stream and download videos. OSMC has the option to enable SSH during the first run, that is useful to retrieve downloaded videos from any device on the network.

I have yet to buy and try the Raspberry Pi 3 Model B, which has on board Wireless and Bluetooth. In the future I have project ideas that I would like to apply to the rPi and look forward to posting the progress.

Website statistics

Website stats are important for web admins.
Some of the main features include:

  • Page hits
  • Geographical location of the page hits
  • Number of unique visitors
  • Entry to and Exit from pages
  • Time spent on pages
  • Error pages
  • Bandwidth usage

For this task I have chosen the very well known Awstats log file analyser as it is free. I have seen that free WordPress plugins can also offer web stats but will have yet to try them out.  Installing Awstats on Linux is ten times easier than Windows, of which directions for both are widely available through your preferred search engine.

Finally, you may want to restrict your awstats directory to the localhost and your remote IP. Accessing the webpage through an IP other than your server (a static IP), will likely be dynamic, so will be a pain to update. A solution to this would be to register with a Dynamic DNS service (such as no-ip.com) and input the account details to a supported broadband router. The DNS host name that you choose can then be added to the Apache configuration rules for the awstats directory to restrict to this host, for example “Require forward-dns yourhostname.ddns.net”. A little explanation on this rule is that normally the host rule will do a reverse lookup, whereas forward-dns will verify the forward resolution of the domain.