Sunday, November 17, 2013

The E02 Pogoplug and Archlinux.

Became tired of the Pogoplug cloud, so I decided that I could make more use of it as a local server. There a few lines to type in which frustrates a lot of people. I decided to take a shortcut and use the web and the command line together to make things easier.

You will go to the page where the commands are. Copy a command at a time and then paste it in the terminal that is connected to the pogoplug.

Once you finish the install, you may want to add other software to make the unit more usable. here is a basic install I sort of used.

Pogoplug v2 (Pink/Gray)

  • Overview and Installation
The Pogoplug v2 is the second device from CloudEngines to feature Pogoplug software. It excelled where the original Pogoplug was lacking by including 4 USB ports and a more noticeable hardware profile.
The gray Pogoplug was introduced at a later time to better fit in with users' existing components, which were not as pink as the original Pogoplug v2.
Recently, Cloud Engines has began shipping new Pink Pogoplugs with model numbers POGO-B01/02/03/04/P21 - these are completely different devices and you should NOT follow the guide on the installation tab above. Look in the "ARMv6" section for these models, or click here.
Supported Model Numbers:
  • VERIFY YOUR MODEL NUMBER! These instructions only apply to models POGO-E02 and POGO-E02G.
  • These instructions will void your warranty. While every precaution is taken to ensure nothing bad happens, all actions are at your own risk.
  •, the mobile applications, and the desktop Pogoplug connector will no longer work.

    With the device on and online, attempt to SSH to the IP the device received through DHCP. If you are unable to SSH, register and enable SSH through The default login (unless changed through is root/ceadmin. Stop the Pogoplug software, so it doesn't interfere with the install process:killall hbwd You only need to kill the Pogoplug service the first time you SSH in. Running the installer in the following steps disables it completely.  While connected via SSH to your plug, copy, paste, and run the following commands to download a bootloader that can boot from USB drives:

        # cd /tmp
        # wget
        # chmod +x
        # ./

    After the new bootloader is installed, you will need to use fdisk to partition a storage device. Plug in a 1GB or bigger USB drive. REMOVE ALL OTHER DRIVES. Move everything you need off of the Arch Linux ARM drive and back it up. Everything on the USB drive with be deleted and replaced with Arch Linux ARM. Set the U-Boot variable to tell the kernel to use ext3:

        # /usr/sbin/fw_setenv usb_rootfstype ext3

    Start fdisk on the USB drive:

        # /sbin/fdisk /dev/sda

    At the fdisk prompt, delete old partitions and create a new one:

            Type o. This will clear out any partitions on the drive.
            Type p to list partitions. There should be no partitions left.
            Now type n, then p for primary, 1 for the first partition on the drive, and
            then press ENTER, accepting default values.
            Exit by typing w.

    Now create the ext3 filesystem:

        # wget
        # chmod 755 mke2fs
        # ./mke2fs -j /dev/sda1
        # mkdir usb
        # mount /dev/sda1 usb

    Download and install Arch Linux ARM:

        # cd usb
        # wget
        # tar -xzvf ArchLinuxARM-armv5te-*.tar.gz

    This will take a long time

        # rm ArchLinuxARM-armv5te-*.tar.gz
        # sync

    Takes a while when using a flash drive Clean up and reboot. Cross your fingers and hope for the best.

        # cd ..
        # umount usb
        # /sbin/reboot

     The SSH key of your device will be different, so you need to tell Mac OS X or Linux to remove it from ~/.ssh/known_hosts before using SSH again:

        # ssh-keygen -R

    Use your device's IP.  Log back in after your Pogoplug reboots using username root and password root.

    Installation FAQ
    • I ran through the installer, have everything where it should be on the USB drive, but it's still not working.
      Try booting again. This often does the trick. If that does not help, try using a different USB drive. Flash drives have proven to not work well with running a full operating system, a USB hard drive is the best option.
    • fw_printenv/fw_setenv is no longer working.
      Run the script from within Arch Linux ARM. It will install the applications for you.




    Marvell Kirkwood 1.2GHz









    Touchpad megaphone update.

    A while back I did a pvc megaphone add on for the Nexus 7. Now there is a newer version that is more stable. Because of the acoustics, it works really well in the bathroom. for some reason.

    Basically you seal up the end that will be away from you.

    Tried to use the famous Kipkay's method for a sort of megaphone for the pad. Not stable enough. Used tees instead of right angles. Also sealed off the back side of the tees to concentrate sound.

    Wednesday, November 6, 2013

    Remote printing.

    Printing on linux is so much fun. Used a web browser for accessing Cups to set up a printer on my server from my desktop.  The Cups software easily found the network printer. and after I chose a driver, the driver  was installed without ever having to load a single cd or restart a computer. Was printing in just a few minutes.
    You need to change a  few settings. First back up your settings file.

    $ sudo cp /etc/cups/cupsd.conf /etc/cups/cupsd.conf.original

    Then you need to write protect the file.

    $ sudo chmod a-w /etc/cups/cupsd.conf.original

    And lastly you need to add settings in the settings file to let the interface be accessible.

    # Only listen for connections from the local machine.
    Listen localhost:631
    Listen /var/run/cups/cups.sock
    Listen # Listen on the LAN interface, Port 631 (IPP) local host  address

    # Show shared printers on the local network.
    Browsing Off
    BrowseOrder allow,deny
    BrowseAllow all
    BrowseLocalProtocols CUPS dnssd
    BrowseAddress @LOCAL

    # Default authentication type, when authentication is required...
    DefaultAuthType Basic

    # Web interface setting...
    WebInterface Yes

    # Restrict access to the server... (to local network)

    Order allow,deny
    Allow from 192.168.1.*


    Just change whatever you need to. Then with your browser go to

    Monday, November 4, 2013

    More power.

    Just an idea I was thinking of for a power supply.

    Saturday, November 2, 2013

    Temp revisited.

    An author had a circuit for a temp sensor as seen here (from :

    So I redid it to see if I could make more sense of it,

    Here is the author's code if you want to try it.