BE Maker Kit Campaign on Indigogo

{lang: 'en-GB'}

The guys at Borderless Electronics are kicking things up a notch with the launch of their BE Maker Kit project to accompany their recent $9 Arduino compatible board.

The most interesting thing here is their “Learning System” which includes 10 hours worth of electronics-related learning materials in the form of video-based tutorials which can be used in conjunction with their kits.

More information about the project can be found on their campaign page.


Automated Node Monitoring with Puppet and Icinga

{lang: 'en-GB'}

This guide outlines how to use Puppet to automatically add basic checks for provisioned nodes to an Icinga instance running on the same server. This tutorial assumes the use of Ubuntu 12.04LTS but this should work on any Linux distro.

I’ve tried to include as much information as I can. So there will be a basic primer on getting Puppet working and adding a new node to the Puppetmaster. If you have your own way of doing this, feel free to skip those parts of the guide. You can also use the basic setup guide on the Puppetlabs Wiki to get things up and running.

Continue reading


Retro Radio Re-Purposed as an iPhone Doc

{lang: 'en-GB'}

Oyvind Dahl send in his Retro iPhone dock project. There are very comprehensive writeup of his build on his Blog here as well as in the video embedded above.

I wonder what he has in mind with those Vacuum tubes?

Well worth checking out the other parts of his site as well as there is a wealth of information for beginners, including PCB design and Soldering tutorials.


Controlling the Maplin Robotic Arm with a Raspberry Pi

{lang: 'en-GB'}

After seeing this article on wikihow by Jamie Scott, I decided a trip to Maplins was in order and I ended up buying one of their Robotic Arm kits

The python script I written to control the arm is based on his with a few minor amendments. Mainly, error handing for keyboard interrupts and mapping of the commands to more easily remembered versions in a dictionary.

The script and documentation are available from Github.

 


Picsu Power Supply

Picsu: The Power-supply that Fits in a Drive Bay

{lang: 'en-GB'}

Thanks to Tucker Merrick for submitting this one: The Picsu, the brainchild of Tucker’s brother, is a power supply which is small enough to fit in the drive bay of a standard PC tower case and features a serial port that allows you to control the voltage and current output by the supply via your favourite terminal application.

I have to say, this is a great idea for those of us (like me) who have limited desk space. These would also be a good idea for school/college E.E labs.

The Kickstarter project page for this can be found here. At the time this was written, they has $932 raised.  Any help the wider community could give here would be very much appreciated.


Checking File Permissions the Easy Way Using Python

{lang: 'en-GB'}

Edit: Doh! Looks like I forgot something. In Linux, if a file or directory has read, write or executable permissions for the Owner only (nothing for ‘group’ and ‘others’) check_files() doesn’t add a dictionary entry for that path if the user running the script does not own the file or directory. Adding one little ‘elif’ block fixes this. (see the slightly revised code below.)

It never ceases to amaze me what even a wet-behind-the-ears hobbyist like myself can do with Python. I needed a way to get the file permissions and check for the existence of a large number of paths that I could re-use in other scripts. The function shown below is what I came up with.

It takes a Python list containing file/directory paths as an argument and returns a dictionary containing the Paths as keys and the concatenated values ‘READ’, ‘WRITE’, EXECUTE’ separated by commas (or ‘NOACCESS’ if the user doesn’t have read, write or executable permissions) to indicate the users level of access to each path, or just the value ‘NOEXISTS’ if the path does not exist.

def check_files(paths):
        dict = {}
        status=""
        for p in paths:
            if not os.access(p, os.F_OK):
                dict[p]=status=status+"NOEXISTS"
            if(os.access(p,os.R_OK)):
                dict[p]=status=status+"READ," 
            if(os.access(p, os.W_OK)):
               dict[p]=status=status+"WRITE," 
            if (os.access(p, os.X_OK)):
                dict[p]=status=status+"EXECUTE"
            elif os.access(p, os.F_OK) and not (os.access(p,os.R_OK)) and not (os.access(p, os.W_OK)) and not (os.access(p, os.X_OK)):
               dict[p]=status=status="NOACCESS"
            status="" # Set blank before we enter the loop again
        return dict

This function will only give you the permissions for the user running the script but as this was all I needed I did not see that as a major problem. Hope someone finds this useful. As always, you can flame me/prop up my massive ego in the comments :)


Tux

Ubuntu SFTP-Only Account How-to

{lang: 'en-GB'}

This guide will show you how to setup Linux user accounts restricted to using SFTP only. These accounts will be unable to run arbitrary shell commands on the server or access/create files outside their own home directories. The steps in this guide were tested on Ubuntu Server 10.04 with version 5.3p1 of the OpenSSH daemon, obtained from the Ubuntu software repositories.

Although this guide is aimed at Ubuntu users, it should also be applicable to other flavors of Linux as well. The most important factor to consider is the version of OpenSSH you have installed on your system. Version 5.0 or above is recommended as these versions support the OpenSSH ChrootDirectory configuration option that we’ll be using here.

Right, that’s enough of the rambling, let’s get to it…

 

Continue reading


Handy Link: PHP Serial Class

{lang: 'en-GB'}

Need a way to talk to your serial devices (Arduino, PIC Micro, etc) using PHP? This nifty new Serial PHP Class written by Rémy Sanchez should scratch your itch! It currently works with Windows and Linux systems.

As of the time this post was written, you will need a Linux system to use the full (that is, Read AND Write) functionality of the Serial Class.  If you are using it under Windows, you will only have Write access to the serial port, but as you can still do quite a lot with just write access as far as projects are concerned I don’t see that as a major drawback.

If you want to see a practical example of the PHP Serial Class in use, the guys at Hak5 have used it to control a Garage door via a Web interface. You can view the full episode here.