[How to] Install OMV on Pogoplug Classic (POGO-E02)

How to burn your ISO, download links, and supported storage devices

[How to] Install OMV on Pogoplug Classic (POGO-E02)

Postby kochin » Tue 2. Oct 2012, 02:57

(NOTE: It seems the Debian installation script has been changed. My procedure outlined below is not sufficient to give you a successful installation of Debian and OpenMediaVault on your PogoPlug. You may want to check out cadre's superb documentation of his experiences.)

(Just realized there are two forums. It's quite confusing. This message was posted on SourceForge forum.)

Recently I acquired a cheap Pogoplug Classic (POGO-E02). The built-in software on it requires you to everything through its web site, which I am not fond of doing and want to control it on my local network. I tried Amahi and OpenMediaVault on it, and found even though OpenMediaVault is still at early development stage, it is already more usable than Amahi. Here is my record of how to install OpenMediaVault on Pogoplug Classic. Hopefully other Pogoplug owners can find it helpful.

Kochin

==========================================================================

First, we need to do some preparation on the Pogoplug.
  1. All the steps require SSH access into your Pogoplug. By default the SSH is disabled, so you must go to my.pogoplug.com to register and activate your device. Once that is done and you are logged in, click on your account tab on the top of the page and select "Settings" and then "Security" from the left menu. Now you can enable the SSH access and change password.
  2. Find out the IP address of your Pogoplug from your router's attached devices list. Sign in your Pogoplug via SSH:
    Code: Select all
    $ ssh root@<Pogoplug's IP address>
  3. (Don't really need this because the script below will kill hbwd for you.) After SSH in, the first thing you do should be killing Pogoplug service:
    Code: Select all
    $ killall hbwd
    That will stop it from calling home.
Next, we start installing Debian Linux onto a USB drive.
  1. Remove any USB flash drives from your Pogoplug, then plug only one USB drive of at least 1GB into the USB port next to the network port.
  2. Partition your USB flash drive into 2 partitions.
    Code: Select all
    $ fdisk /dev/sda
    Partition 1 of at least 512MB is for Debian Linux, and partition 2 of recommended 256MB is for swap.
  3. Now we will download and run Debian Squeeze (stable) installer:
    Code: Select all
    $ cd /tmp
    $ wget http://projects.doozan.com/debian/dockstar.debian-squeeze.sh
    $ chmod +x dockstar.debian-squeeze.sh
    $ export PATH=$PATH:/usr/sbin:/sbin
    $ ./dockstar.debian-squeeze.sh
    (You could try the Debian Wheezy (testing) installer by replacing "dockstar.debian-squeeze.sh" with "kirkwood.debian-wheezy.sh", but the script failed on my Pogoplug with a message "Kernel too old" in the log.)
    The installation process takes a while. Once it's done, you will be asked to reboot.
  4. After rebooted, you SSH in as root using the default password "root". You may need to clear your ~/.ssh/known_hosts file or your SSH client may refuse to connect.
  5. After logged in, you should change the root user's password and modify /etc/apt/sources.list to a Debian mirror near you.
    Code: Select all
    # passwd
    # vi /etc/apt/sources.list
    Your sources.list file should have a line similar to this:
    Code: Select all
    deb http://ftp.us.debian.org/debian/ squeeze main
  6. One thing you might want to do is upgrade packages to the newest release.
    Code: Select all
    # apt-get update
    # apt-get upgrade
We are now ready to install OpenMediaVault.
  1. Add OpenMediaVault's repository to apt's sources list directory.
    Code: Select all
    # vi /etc/apt/sources.list.d/openmediavault.list
    Enter this line into the end of the file:
    Code: Select all
    deb http://packages.openmediavault.org/public omnius main
    The newer fedaykin release is unfortunately not compatible with Debian Squeeze due to a dependency, so please stick to omnius release.
  2. In order to install packages from OpenMediaVault's repository, you need to add its archive key into apt:
    Code: Select all
    # apt-get update
    # apt-get install openmediavault-keyring
    You can check the key is indeed installed in apt.
    Code: Select all
    # apt-key list
    To refresh package lists with this newly added key, run this command:
    Code: Select all
    # apt-get update
  3. During the installation of OpenMeidaVault, there will be some configurations require user interactions. To assist the process, it's better to install whiptail package ahead of time if it's not already installed.
    Code: Select all
    # apt-get install whiptail
    You might also want to install tmux package so that you can continue session if disconnected.
    Code: Select all
    # apt-get install tmux
    # tmux
  4. And now, install OpenMediaVault from the repository:
    Code: Select all
    # apt-get install openmediavault
    It will take quite a while for apt-get to retrieve and install all the required packages. During the process you are required to answer some questions for configurations, so don't wonder too far away.
  5. Once the installation finishes, you won't have access via SSH after you log out the current session because by default OpenMediaVault doesn't enable any services. You will need to use your browser to visit your Pogoplug's IP address and sign in as "admin" with password "openmediavault".
  6. There are several things you need to do first time you log in the OpenMediaVault Web Administration.
    • In System/General Settings, change your Web Administrator Password.
    • In System/Date & Time, set your Time Zone and whether to Use NTP server.
    • In System/Network/Interfaces, edit your network interface and click OK to make sure it's properly configured. Otherwise, the network interfaces won't show up in Diagnostics/System Information/Interfaces.
    • In Services, you can consider to enable whatever services you need.

NOTE:
  • Trying to dist-upgrade to 0.4.x got openmediavault package being kept back. It is due to one of the dependencies, xmlstarlet (>= 1.3.1) can't be satisfied. The version in Debian Squeeze is 1.0.2-1. The newer version of xmlstarlet is currently in Debian unstable branch.
REFERENCES:
  • http://archlinuxarm.org/platforms/armv5/pogoplug-v2-pinkgray
  • http://projects.doozan.com/debian/
  • http://sourceforge.net/apps/phpbb/openmediavault/viewtopic.php?f=4&t=576
Last edited by kochin on Wed 15. May 2013, 15:31, edited 5 times in total.
  • OpenMediaVault 0.5.53 (Sardaukar)
  • PLUGINS: nut, omvextrasorg, minidlna, transmissionbt, eXtplorer, dnsmasq
  • HARDWARE: Pogoplug Classic (POGO-E02) + SanDisk Cruzer Blade 4GB + WD3200BEVT 320GB
  • PROCESSOR: Feroceon 88FR131 rev 1 (v5l) 1.2GHz
  • SYSTEM: Debian Wheezy (2.6.32-5-kirkwood armv5tel)
kochin
 
Posts: 27
Joined: Fri 28. Sep 2012, 18:03

Re: [How to] Install OMV on Pogoplug Classic (POGO-E02)

Postby ryecoaaron » Tue 2. Oct 2012, 03:16

I thought about trying that with my Dockstar and Pogoplug. Might be able to use the Raspberry Pi packages since Debian is installed. Here is the RPi thread.
omv 1.0.9 kralizec | 64 bit | 3.14 backport kernel | omvextrasorg 1.0.2
omv-extras.org plugins source code and issue tracker - https://github.com/OpenMediaVault-Plugin-Developers
User avatar
ryecoaaron
 
Posts: 6423
Joined: Mon 20. Aug 2012, 16:03
Location: Wisconsin, USA

Re: [How to] Install OMV on Pogoplug Classic (POGO-E02)

Postby kochin » Wed 3. Oct 2012, 03:41

If you want to upgrade your installation to OpenMediaVault 0.4.0.x, here is the procedure for that:
  1. Since OpenMediaVault 0.4.0.x requires xmlstarlet version 1.3.1 or greater and Debian Squeeze repository only has older version 1.0.2, we need to download and install the newer version from Debian Wheezy.
    Code: Select all
    # wget http://ftp.us.debian.org/debian/pool/main/x/xmlstarlet/xmlstarlet_1.3.1-3_armel.deb
    # dpkg -i xmlstarlet_1.3.1-3_armel.deb
    That will replace xmlstarlet_1.0.2-1 with xmlstarlet_1.3.1-3.
  2. We now want to let apt use OpenMediaVault fedaykin repository.
    Code: Select all
    # vi /etc/apt/sources.list.d/openmediavault.list
    Change the word omnius to fedaykin, and the result should be
    Code: Select all
    deb http://packages.openmediavault.org/public fedaykin main
  3. Let apt proceed with dist-upgrade after it updates its package list.
    Code: Select all
    # apt-get update
    # apt-get dist-upgrade
    You might see some warnings regarding libxml version. They can be safely ignored.
  4. Restart your Pogoplug.
    Code: Select all
    # reboot
    Once it's up and running, log in its Web Administration to check.
Kochin
  • OpenMediaVault 0.5.53 (Sardaukar)
  • PLUGINS: nut, omvextrasorg, minidlna, transmissionbt, eXtplorer, dnsmasq
  • HARDWARE: Pogoplug Classic (POGO-E02) + SanDisk Cruzer Blade 4GB + WD3200BEVT 320GB
  • PROCESSOR: Feroceon 88FR131 rev 1 (v5l) 1.2GHz
  • SYSTEM: Debian Wheezy (2.6.32-5-kirkwood armv5tel)
kochin
 
Posts: 27
Joined: Fri 28. Sep 2012, 18:03

Re: [How to] Install OMV on Pogoplug Classic (POGO-E02)

Postby emil » Tue 9. Oct 2012, 22:51

Installing OMV broke because collectd could not restart during install. With the following message:
Code: Select all
root@debian:~# aptitude install collectd
The following partially installed packages will be configured:
  collectd
No packages will be installed, upgraded, or removed.
0 packages upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Need to get 0 B of archives. After unpacking 0 B will be used.
Setting up collectd (4.10.1-1+squeeze2) ...
Restarting statistics collection and monitoring daemon: collectdNot restarting collectd.
invoke-rc.d: initscript collectd, action "restart" failed.
dpkg: error processing collectd (--configure):
 subprocess installed post-installation script returned error exit status 1
configured to not write apport reports
                                      Errors were encountered while processing:
 collectd
E: Sub-process /usr/bin/dpkg returned an error code (1)
A package failed to install.  Trying to recover:
Setting up collectd (4.10.1-1+squeeze2) ...
Restarting statistics collection and monitoring daemon: collectdNot restarting collectd.
invoke-rc.d: initscript collectd, action "restart" failed.
dpkg: error processing collectd (--configure):
 subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
 collectd


UPDATED:
The funny thing is if the daemon is stopped and started with stop/start command everything is fine, it's just restart that doesn't work.
This post http://ubuntuforums.org/showthread.php?t=1497388 suggest to out comment the line
check_config "Not restarting collectd." in /etc/init.d/collectd. But my clever friend guided me to set the hostname in /etc/hosts and collectd is now restarting like a charm. Here is my hosts file:
Code: Select all
root@debian:~# cat /etc/hosts
127.0.0.1   localhost
192.168.1.115 debian
::1      localhost ip6-localhost ip6-loopback
fe00::0      ip6-localnet
ff00::0      ip6-mcastprefix
ff02::1      ip6-allnodes
ff02::2      ip6-allrouters


Cheers,
Emil Kjer
emil
 
Posts: 2
Joined: Tue 9. Oct 2012, 22:30

Re: [How to] Install OMV on Pogoplug Classic (POGO-E02)

Postby mdshaw89 » Mon 29. Oct 2012, 17:26

Thanks for putting this in the forum! I had just performed this install before you had posted it and at least this confirmed what I had done. :)

l8r,

Mike
mdshaw89
 
Posts: 1
Joined: Sun 9. Sep 2012, 21:33

Re: [How to] Install OMV on Pogoplug Classic (POGO-E02)

Postby maihoaomv » Thu 1. Nov 2012, 23:20

After some struggling with the dpkg error I got it to work (so far) on a GoFlexHome. It seems to run fairly fast (acceptable anyway).

I did have a problem with step 2. I couldn't get the omv key to install. I instead had to use the following command
Code: Select all
wget -O - http://packages.openmediavault.org/public/archive.key | apt-key add -

instead of
Code: Select all
apt-get install openmediavault-keyring

That I found on the omv forum at viewtopic.php?f=12&t=507

Thanks for this how to. Getting Arch Linux off the GoFlex Home and running debain with openmediavault is a 1000% improvement.

:D :D :D :D
maihoaomv
 
Posts: 32
Joined: Mon 27. Aug 2012, 06:49

Re: [How to] Install OMV on Pogoplug Classic (POGO-E02)

Postby maihoaomv » Fri 2. Nov 2012, 07:06

I'm having a problem with the plugins. There is nothing listed under plugins and when I click on check I get the following error. I have the same problem with both omnius (.3) and fedaykin (.4). Is there something I need to change / add in one of the repository config files to get it to work?

Code: Select all
Failed to execute command 'export LANG=C;sudo dpkg-query --list openmediavault-*':

Error #4000:
exception 'OMVException' with message 'Failed to execute command 'export LANG=C;sudo dpkg-query --list openmediavault-*': ' in /var/www/openmediavault/rpc/plugin.inc:186
Stack trace:
#0 [internal function]: PluginRpc->getList(Array)
#1 /usr/share/php/openmediavault/rpc.inc(265): call_user_func_array(Array, Array)
#2 /usr/share/php/openmediavault/rpc.inc(98): OMVRpc::exec('Plugin', 'getList', Array)
#3 /var/www/openmediavault/rpc.php(44): OMVJsonRpcServer->handle()
#4 {main}


Update: Problem solved
Found this at http://sourceforge.net/apps/phpbb/openm ... =703#p3714 that fixed the problem.
maihoaomv
 
Posts: 32
Joined: Mon 27. Aug 2012, 06:49

Re: [How to] Install OMV on Pogoplug Classic (POGO-E02)

Postby rodger14803 » Wed 2. Jan 2013, 02:26

maihoaomv wrote:I'm having a problem with the plugins. There is nothing listed under plugins and when I click on check I get the following error. I have the same problem with both omnius (.3) and fedaykin (.4). Is there something I need to change / add in one of the repository config files to get it to work?

Code: Select all
Failed to execute command 'export LANG=C;sudo dpkg-query --list openmediavault-*':

Error #4000:
exception 'OMVException' with message 'Failed to execute command 'export LANG=C;sudo dpkg-query --list openmediavault-*': ' in /var/www/openmediavault/rpc/plugin.inc:186
Stack trace:
#0 [internal function]: PluginRpc->getList(Array)
#1 /usr/share/php/openmediavault/rpc.inc(265): call_user_func_array(Array, Array)
#2 /usr/share/php/openmediavault/rpc.inc(98): OMVRpc::exec('Plugin', 'getList', Array)
#3 /var/www/openmediavault/rpc.php(44): OMVJsonRpcServer->handle()
#4 {main}


Update: Problem solved
Found this at http://sourceforge.net/apps/phpbb/openm ... =703#p3714 that fixed the problem.


I am a newbie, both to OMV, Debian, and forums.
I followed the installation procedure in this thread and on the second try all worked well (boots, I can get to the management page, etc)
except that I am getting the error quoted above. I tried the solution link provided:
"http://sourceforge.net/apps/phpbb/openmediavault/viewtopic.php?f=2&t=703#p3714"
but the *link* did not work for me. I dug around and I think I found it in this forum, but the "solution"
doesn't make sense to me (the newbie effect).
Can someone do a little hand-holding and tell me what the fix is? It is probably right in front of my nose...

Thanks!
Rodger
rodger14803
 
Posts: 17
Joined: Sat 29. Dec 2012, 19:09

Re: [How to] Install OMV on Pogoplug Classic (POGO-E02)

Postby tekkbebe » Wed 2. Jan 2013, 02:59

Roger, when you 1st login to omv gui tell me what version it says.
Guides/Tutorials: http://forums.openmediavault.org/viewtopic.php?f=13&t=1289
Manage firewall with webmin: http://forums.openmediavault.org/viewtopic.php?f=3&t=1072
How to install OMV Extras in OMV .5(Sardaukar): http://omv-extras.org/simple/index.php?id=how-to-install-omv-extras-plugin
User avatar
tekkbebe
 
Posts: 5485
Joined: Fri 6. Jul 2012, 23:11
Location: Michigan, USA

Re: [How to] Install OMV on Pogoplug Classic (POGO-E02)

Postby rodger14803 » Wed 2. Jan 2013, 03:53

0.4.8(Fedaykin)

I was just thinking of using the update manager to go to 0.4.10, but I didn't see any indication in the blog that something like this was addressed.

Thanks for the reply!
Rodger
rodger14803
 
Posts: 17
Joined: Sat 29. Dec 2012, 19:09

Next

Return to Installation of OpenMediaVault

Who is online

Users browsing this forum: No registered users and 5 guests