Raspberry Pi 3 Cluster

What operating system to use?

Hardware:

Might use a raspberry pi zero, but will need to use this for network connectivity.

Operating systems:

  • Mosix (link)
  • OpenSSI (link)
  • Rocks Cluster (link)
  • OpenMosix (link)
  • CRUI (link) : This isn’t exactly a cluster I don’t think, but will allow you to migrate processes from server to server
    • tutorial (link)
    • Docker Container (link)

There is a great page here that explains the two types of clustering on linux, and has a list of compilers as well.

Perl Debugging

 

  • h or h h – for help page
  • c – to continue down from current execution till the breakpoint otherwise till the subroutine name or line number
  • p – to show the values of variables
  • b – to place the breakpoints
  • L – to see the breakpoints set
  • d – to delete the breakpoints
  • s – to step into the next line execution
  • n – to step over the next line execution, so if next line is subroutine call, it would execute subroutine but not descend into it for inspection
  • source file – to take the debug commands from the file
  • l subname – to see the execution statements available in a subroutine
  • q – to quit from the debugger mode

 

Reference:

  • http://www.thegeekstuff.com/2010/05/perl-debugger/

NetData Installation

First, I’m creating this page from this link, and I merely boil it down to record here for later quick reference.

You can do a quick netdata installation with the following:

Prereq needed to install are mainly found here:

Debian/Ubuntu: apt-get install zlib1g-dev gcc make git autoconf autogen automake pkg-config uuid-dev

CentOS / RedHat / Fedora: yum install zlib-devel gcc make git autoconf autogen automake pkgconfig libuuid-devel

Arch: pacman -S netdata

Now to pull and install the NetData project:

  • git clone https://github.com/firehol/netdata.git –depth=1
  • cd netdata
  • ./netdata-installer.sh

If everything worked as expected, then the install should show that there are no errors.

Data is stored in the following locations:

– the daemon at /usr/sbin/netdata
– config files at /etc/netdata
– web files at /usr/share/netdata
– plugins at /usr/libexec/netdata
– cache files at /var/cache/netdata
– db files at /var/lib/netdata
– log files at /var/log/netdata
– pid file at /var/run

Start the application: /usr/sbin/netdata
Stop the application: killall netdata

How do you look at the application?  You go here in a web browser on the local host. (http://127.0.0.1:19999/)

Linux Desktop Setup

I’ve tried a few flavors of linux, and had issues with each as a desktop.  Recently I got  a new laptop so I decided to try it again.

My favorite distro is Mint, just be cause it doesn’t overload things with a bunch of effects that make it harder to find what you are looking for.  My only issue is, Mint couldn’t see my wifi card.  So.. I used ubuntu, and placed Cinnammon on top.  First, thanks to Marin Todorov, he’s got a great tutorial on how to set this up.  I’m going to put the essence here since I hate it when things disappear from the web.

  1. Install Ubuntu 16.04 LTS
  2. Install Cinnamon (apt install cinnamon)
  3. Install Numix
    1. add-apt-repository ppa:numix/ppa
    2. apt-get update
    3. apt-get install numix-gtk-theme
      
    4. apt-get install numix-icon-theme-circle
  4. Install Conky
    1. apt-add-repository -y ppa:teejee2008/ppa
    2. apt-get update
    3. apt-get install conky-manager
  5. Install Plank
    1. add-apt-repository ppa:ricotz/docky
    2. apt-get update
    3. apt-get install plank
    4. Inside the manager I turned on “Gotham, CPU Panel, Network Panel, and Process Panel”
    5. I’m including here my configs I placed in the .conky directory for my settings.
  6. Install Skype following instructions from here
    1. add-apt-repository "deb http://archive.canonical.com/ $(lsb_release -sc) partner"
      
    2. dpkg --add-architecture i386
    3. apt-get update
    4. apt-get install skype
    5. cp /usr/share/applications/skype.desktop /home/<homedir>/.config/autostart/