Raspberry PI – wicd-curses wifi program

Setting up your Pi to connect to wireless AP’s can be a pain at times. wicd-curses is a nice command line program to get this going for you easily. Only issue i have found so far is it doesn’t seem to like accessing the network on both eth0 and wlan0 at the same time. Meaning if your eth0 is on a different subnet than the AP you are connecting to, you will immediately lose connection to your putty session when you tell it to connect to the AP. Other than that, really cool.

#Update and Upgrade your Pi first

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

#install wicd-curses

  • sudo apt-get install -y wicd-curses

#run it!

  • wicd-curses

#you should see available wifi ssids. Options are listed at the bottom. If you just highlight and hit enter it should connect you right up. I recommend hitting P and adjusting preferences, like auto connect so it reconnects after a reboot.

wicd-curses man page

Advertisements

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