New raspberry image testing setup

I have been waiting for a few weeks, but i finally got the cables and adapters i needed for the Motorola atrix lapdock. The main issue was finding an adapter to get from female micro hdmi to regular hdmi. I thought i was going to have to strip out the USB power cables so it didnt put 5v into the USB port the keyboard was going into but a forum post showed me i had a new board and surprise! It not only worked and let me type but it provided power to the raspberry too. Screen is really crisp. Works great. Added bonus is a powered 2 port USB dock. Really the perfect testing setup.

20130805-135225.jpg

20130805-135238.jpg

Now to see how long the built in battery will power the setup.

Raspberry PI – Cacti Install and Monitor Qnap NAS w/SNMP

Pibow Case 04
#edit settings

  • sudo raspi-config
    1. Expand File system to use entire SD card
    2. Memory Split to 16
****NOTE: From here down, the instructions are not Raspberry Specific. Should work on Debian, ubuntu, etc

————————————————–

#Update/Upgrade

  • sudo apt-get update
  • sudo apt-get upgrade -y

#install Cacti

  • sudo apt-get install -y cacti

#Set a password for mysql if you want or leave it blank
#Hit ok a couple times

#Which kind of web-server should be used by cacti?

Apache2

#meanwhile back on the qnap…

On your pc:

  1. http://QNAP_NAS_IP:8080
  2. Go to Network Services and Select SNMP Settings
  3. Enable SNMP Service
  4. Enter your raspberry’s IP in Trap 1
  5. You can leave the Community field or change it. This is your snmp “password”. You will need to enter it in the Cacti page.

qnap snmp settings

#Back at the Raspberry pi, eventually you will be asked if you want to “configure database for cacti with dbconfig-common” on the raspberry.

<YES>

#When it is done it will drop you back to the command prompt. You are now done with the PI.

#Back at your computer:

Cacti Installation - Next

  1. http://Raspberry_PI_IP/cacti
  2. Next >>
  3. Next >>
  4. Finish

first cacti login

  1. LOGIN!
  2. Admin / Admin
  3. Make a new password
  4. success!

#Add the Qnap in the Cacti webpage

  • Choose Devices
  • Click on ADD
    • Description: Some name
    • Hostname: IP or Hostname of NAS
    • Host Template: Linux Server
    • SNMP version 2
    • SNMP community: whatever you entered in the QNAP above
    • CREATE

device add

  • If successful you should see some info at the top like the picture below:

device add succesfull

#Now its time to make some graphs

Select Create Graphs in the top right

You will see a list of things you can monitor. You probably want CPU, memory, eth0, and the disk partitions. Select the things you want to monitor and “create”

make graphs

#Now we just need to add it to the Graph Tree

On the left, select Graph Tree and than Default Tree

default tree

Click Add on the right.

Change Item type to HOST and find your Device Name

add host

Click CREATE.

#No go to Graphs on the top and open the Default Tree to verify that it is showing up. It will take 5-10 minutes to show any graphs.

graph tree list

#Take a break

final graphs

I have a fever and the only cure is more cacti

Raspberry Pi – Screen Settings

Trying to use a 3.5 screen on composite, with stock raspian settings, is pretty much unreadable. Here are a couple settings that can help out:

 

#Increase the font size used on the Terminal Monitor

  • sudo nano /etc/default/console-setup

FONTFACE=”Terminus”
FONTSIZE=”32×16″

#Rotate the screen in Mame4All for games like pacman and frogger so it uses the entire screen

  • sudo nano /home/pi/emulators/mame4all-pi/mame.cfg

ror=yes