Arduino

 Arduino  Comments Off on Arduino
Feb 122012
 

After having read about it for a _very_ long time, I finally got around and bought an Arduino Uno the other day.
If you do not know what it is, all I can tell you is that it is an open source hardware for learning and experimenting with electronics and software in an easy way. It has a very big supporting community, and a very good website for all levels of users. Check out http://arduino.cc/en/ for more information.

To setup the Arduino IDE on my Dell laptop running Ubuntu 10.10, I followed this guide, http://www.pluggy.me.uk/arduino-ubuntu/, and it worked straight away.

The Arduino IDE comes with many examples, which are quite nice to use in order to quickly learn how to use a certain feature. Doing the standard 'Hello world' of electronics, making a LED blink, was done within minutes, thanks to the examples and guides.

Next up will be to use it with Python...

No mouse needed

 Linux  Comments Off on No mouse needed
Feb 092012
 

In my quest for using the computer mouse as little as possible, I thought I had come up with a great idea.
Why not implement a keyboard mouse, using the windows key and arrow keys for navigation.
But then my second thought was, this must already exist.
Sure enough, after some searching on the net, I found this link
http://www.linuxquestions.org/questions/linux-newbie-8/how-to-use-keyboard-as-mouse-266229/

Here is the essence of the link in short.

Shift + NumLock to activate numpad as keyboard mouse.
1,2,3,4,6,7,8,9 to navigate
”5” left mouse button
-” & ”5” right mouse button
”*” & ”5” middle mouse button

It will take some time to get use to, but at least it exists as an alternative.

Linux Monitoring continued…

 Linux  Comments Off on Linux Monitoring continued…
Feb 032012
 

As I stumbled upon an interesting monitoring tool in an article I read, I wanted to write down what I needed to do in order to get it installed properly on my Ubuntu 10.10 laptop.

The tool is glances version 1.3.7, and can be found here glances1.3.7@github. The page has a nice description on how to install, but it didn't work directly as is on my machine.

This is what I did.
First get the tools required by glances. This is what actually made the install work properly.

sudo apt-get update
sudo apt-get install pkg-config build-essential autoconf automake python libstatgrab-dev python-all-dev
sudo apt-get remove python-statgrab
wget http://ftp.uk.i-scream.org/sites/ftp.i-scream.org/pub/i-scream/pystatgrab/pystatgrab-0.5.tar.gz
tar zxvf pystatgrab-0.5.tar.gz
cd pystatgrab-0.5/
./setup.py build
sudo ./setup.py install

Then get glances itself.

wget https://github.com/downloads/nicolargo/glances/glances-1.3.7.tar.gz
tar zxvf glances-1.3.7.tar.gz
cd glances-1.3.7
./configure
make
sudo make install

When that is done the tool is started by running the glances.py file, which is located in the src folder.

./src/glances.py