Dismiss Notice
Join Physics Forums Today!
The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

Raspberry Pi 2

Tags:
  1. Nov 8, 2015 #1

    Borg

    User Avatar
    Gold Member

    Haven't seen a thread on this before so I'll start one. The Raspberry Pi 2 is really a marvel. For $30 you get a 90MHz quad-core processor and 1GB RAM on a Linux platform. The platform also comes standard with an ethernet connector, 4 USB ports, HDMI, and a micro SD slot.

    I picked up my first one today with a 32GB memory card. I intend to install a Tomcat Server and a database as support to the D3.js data visualizations that I've been working with lately. I'll post occasional updates as I go along. Feel free to jump in with your projects or ideas.

    Let the games begin! :woot:
    DSC_7899.JPG

    First step is to install the OS. This is a good video.
     
    Last edited: Nov 8, 2015
  2. jcsd
  3. Nov 8, 2015 #2

    jedishrfu

    Staff: Mentor

    We did a cool project on an earlier model to detect gunshots and activate a servo. It taxed the system quite a bit. We used Python to do the signal analysis from files created every second from the audio recording command. It was very io intensive.
     
  4. Nov 8, 2015 #3

    Borg

    User Avatar
    Gold Member

    I got the OS installed and have connected using HDMI to a TV and Putty, and Filezilla from my laptop. Installed Tomcat, started it, opened a firewall port and checked it from my phone. Things are working well so far.
     
    Last edited: Nov 8, 2015
  5. Nov 8, 2015 #4

    nsaspook

    User Avatar
    Science Advisor

    I used one with the Super Moon sensor.
    https://www.physicsforums.com/threads/power-from-the-super-moon.765429/#post-5224011

    I'm using a old COBALT RaQ-2 case to install an RPi2 (or two) for a music server now.

    Original. (with dead Sparc Station 10 for another PI retro case project)
    22711968971_f6e2a0b1bc_z_d.jpg
    Rebuild with PI card installed on the original HD tray. Need to interface the original LCD and buttons to the GPIO on the PI.
    22544218020_94307a9bbf_z_d.jpg
    I'm in the process of writing a panel driver for Raspbian Jessie as the OS to display and control
    the music selections while using Icecast2 and MPD (Music Daemon Player) to play music on a NFS mounted volume
    from the main file server.
     
  6. Nov 10, 2015 #5

    Borg

    User Avatar
    Gold Member

    Side note on the Tomcat server. It's only been a few days and the server has been scanned by IP addresses in Poland, France and Russia. Looks like I'll be building a blacklist for when I lock it down and actually put some content on it.
     
  7. Nov 12, 2015 #6
    I use one at work,
    Originally had a first version PI, but needed a bit more power.
    I've put on a 4" TFT display and a RS485 shield and use it as a portable serial line debugging tool. It helped me fix a site that has been having problems for 5 years on my first trip (not a bad way to impress the higher ups)

    I had originally bought it to try and drive an LED matrix display. I worked on it when I was off on one of my coop placements. I neglected to bring any of my other tools (no oscope or multimeter). Don't judge me too harshly but it took me 3 weeks of tinkering to finally figure out that the matrix display required 5v inputs and the PI can only do 3v
    /FACEPALM
     
  8. Dec 12, 2015 #7

    Borg

    User Avatar
    Gold Member

    Finally got some time and figured out how to set up SSL with client certificates! I have struggled with understanding the process of setting up and using certs for years but it looks like I've finally figured it out. I created my own CA and then signed a server cert and user cert with it. The server cert is in my server keystore and the user cert is in the browser. The only way to connect now is with the user cert! Now I can actually code something. :woot:
     
  9. Dec 24, 2015 #8
    I believe that clock speed is an order of magnitude off!

    I spoiled myself with one this Christmas... I'm all over it!
     
  10. Dec 24, 2015 #9

    Borg

    User Avatar
    Gold Member

    Yes. Typo on my part. It has a 900 MHz processor.
     
  11. Jan 2, 2016 #10

    Borg

    User Avatar
    Gold Member

    I was at a Christmas party last week and someone told me that they have three Raspberries at work. He uses one of them to provide portable VoIP phone services for when he travels. I'll have to look into that one.

    Another update on the server. Although I had gotten the two way certificates to work, I couldn't access it from a mobile phone because the certs were built from my own certificate authority. So, I've opted for one-way certificates with Spring security and multiple levels of validation. All pages now check a whitelist of top-level US domains, followed by blacklisted IP addressses within the whitelist, country of origin checks against the IP address, and lastly, a user login screen that validates against users in a Mongodb database on the Pi. I still want to add a check for multiple login failures from unknown IP addresses.

    Most of the projects that I've worked on in the past have made security a priority but always after coding a large chuck of the program first. It's nice to build a server for a change that builds in security first. Now I can get to the business of building the tools without wondering who might be trying to break in.
     
  12. Mar 26, 2016 #11

    Borg

    User Avatar
    Gold Member

    Still coding away at the server. Building the architectual framework has taken a lot of time but it is coming along nicely.

    ServerInfo.jpg

    As the note at the bottom states, I am tracking hacking attempts and displaying them in my administrative page.

    Intrusions.jpg

    As you can see, the largest number of attempts occurred on the 7th from 88.214.230.173. If you zoom in on the map, it resolves to the Kremlin. :wideeyed:
     
  13. Apr 24, 2016 #12

    Borg

    User Avatar
    Gold Member

    The beginnings of a financial page are in place. proxy.php?image=http%3A%2F%2Foi63.tinypic.com%2F9gzz2v.png

    stockPage.jpg
     
  14. Sep 29, 2016 #13

    Borg

    User Avatar
    Gold Member

    Tired of seeing these bottom feeders trying to find vulnerabilities on my server that they can sell.
    Goodbye SHODAN.
    sudo iptables -A INPUT -i eth0 -s 66.240.0.0/16 -j DROP
    sudo iptables -A INPUT -i eth0 -s 71.6.0.0/16 -j DROP
    sudo iptables -A INPUT -i eth0 -s 198.20.0.0/16 -j DROP

     
  15. Sep 29, 2016 #14

    jedishrfu

    Staff: Mentor

    Huh?

    Are you saying you've applied stealth tech to your server so that SHODAN can no longer find it?
     
  16. Sep 29, 2016 #15

    Borg

    User Avatar
    Gold Member

    Those are the ip address blocks that they are pinging me from. I'm dropping all requests from those address blocks so that it looks like there isn't a server for them.
     
  17. Sep 29, 2016 #16

    jedishrfu

    Staff: Mentor

    Got it! Stealth a way of life in the internet age!
     
  18. Sep 29, 2016 #17

    Borg

    User Avatar
    Gold Member

  19. Sep 29, 2016 #18

    jedishrfu

    Staff: Mentor

  20. Sep 29, 2016 #19

    Borg

    User Avatar
    Gold Member

    Glad that you found it useful. :woot:
     
  21. Sep 29, 2016 #20

    nsaspook

    User Avatar
    Science Advisor

Know someone interested in this topic? Share this thread via Reddit, Google+, Twitter, or Facebook

Have something to add?
Draft saved Draft deleted