Linux Archive

Arch Linux (and ownCloud) on a PogoPlug POGO-E02

Posted September 13, 2012 By Landis V

Update:  Please see my newer articles about getting Debian running on the E02’s as well as a functional ownCloud instance.

PogoPlug hardware seems to be notoriously mislabeled as to the version it is running.  My experience was no exception. I ordered a POGO-P21, the label on the box showed it was a P21, but the label on the foot of the device shows that it’s the Kirkwood-based E02.  A good hint to this is the following output from ‘cat /proc/cpuinfo’ when SSH’ed to the device while running the native Pogo software (credit to the thread at http://archlinuxarm.org/forum/viewtopic.php?f=29&t=2133 for this information):

Processor : ARM926EJ-S rev 1 (v5l)
BogoMIPS : 1192.75

Get your basic Arch environment installed using the instructions at http://archlinuxarm.org/platforms/armv5/pogoplug-v2-pinkgray for the E02 version.  For other models, you’re on your own.  For my E02, I was operational in the Arch environment after following these steps and rebooting.

Next steps are as follows (currently incomplete, but a good start):

#Update your base system
pacman -Syu

#Install Apache 2.2
pacman -S extra/apache

#Install PHP (I think this will include several of the required modules for ownCloud, as commented below)
pacman -S extra/php

# Confirm installation of php-json later using:
# php /usr/include/php/ext/json/
# php /usr/include/php/ext/json/php_json.h
# php /usr/lib/php/modules/json.so
# Add “extension=json.so” to /etc/php/php.ini
# per http://chakra-project.org/bbs/viewtopic.php?id=7928
# May be same for PHP XML per http://www.archlinux.org/packages/extra/i686/php/files/
# ^ also mbstring
# ^ and gd
# ^ perhaps zip.so, but under modules.
pacman -S curl
# Say “y” to install
# php5-curl as usr/lib/php/modules/curl.so?
wget http://owncloud.org/releases/owncloud-latest.tar.bz2
tar -jxvf owncloud-latest.tar.bz2
mv owncloud /srv/http/

Right now, I have a working HTTP server, but that’s all I have the time for this evening.  PHP is not yet operational, permissions are not yet configured, and there is nothing in place to lock things down.  With a little luck I’ll have an opportunity to revisit this article and post some additional information to finalize your setup in the near future.  Good luck!

Be the first to comment

http://www.keepassx.org/news/2012/07/361

This is an interesting tidbit to run across, and something I’ve been looking forward to for a while.  I never found running classic KeePass under WINE to be a particularly enjoyable experience, but since I only use KeePass 2.x files (I often forget why, but there’s some reason that I remember every time I read through the differences) I was stuck with that as my only option.  Will have to see if I can get this to compile and run, and then see what I can come up with for options on my Android.

Be the first to comment

FAQ – KVM

Posted June 5, 2012 By Landis V

http://www.linux-kvm.org/page/FAQ

Kernel Virtual Machine FAQ – self explanatory.  Page has some good links to info on KVM, may help with troubleshooting blank screen when attempting to initiate a guest from libvirt in KVM-QEMU.

Be the first to comment

Belkin ShareMax N300 Follow-ups

Posted June 3, 2012 By Landis V

As I mentioned in an earlier post, I bought one of these little 4-port wireless routers with a gigabit switch to use primarily as a NAS server.  I’ve been so happy with it that, when I recently discovered the need for a light duty broadband router and firewall on a loaner basis, I decided to pick up another one.  With the original, I took the firmware to a Tomato version and I have found it very pleasant to work with, so I plan to do the same.  I recall having a few problems getting it where I wanted it to be, so I’ve decided to make some notes on my steps through the process this time around.  I think I may have actually attempted a direct flash to the Tomato firmware the first time, and had to perform a recovery, so I’m going to “follow the directions” this time around 🙂  Much of the instruction comes from the FatWallet forum thread at http://www.fatwallet.com/forums/expired-deals/1180400/?start=0, and specifically this post and (primarily)  this post on page 3 of the discussion.  There’s also a good link discussing recovery in between those two posts should you happen to brick a box.  I just wanted to clean these up and put them in a slightly more organized fashion than sometimes happens in a forum thread, as well as document the steps that worked for me.

Please note that I disclaim any and all liability for any damage or loss, direct or indirect, as a result of these instructions.  These notes are primarily for my own benefit and may or may not work in your individual circumstances.  You acknowledge that installing third party firmware is an unsupported action and accept full responsibility for any problems or costs resulting therefrom.

  1. I transferred copies of the following files, which I had previously downloaded, to the laptop I planned to use for the process:
    • dd-wrt.v24-18946_NEWD-2_K2.6_mini_f7d3301.bin (other versions may work, your mileage may vary)
    • dd-wrt.v24-18946_NEWD-2_K2.6_mega.bin (as above, other versions may work, ymmv)
    • tomato-K26USB-1.28.7497.IMIPSR2-Toastman-RT-Ext.trx
  2. Connected the Belkin to the laptop via ethernet, booted it up, and disabled wireless, since I don’t need it in this instance and it is interfering with the wireless connection I’m using to read up as I go.  Hard set the IP on my laptop to 192.168.2.10 with a mask of 255.255.255.0.
  3. Logged into the Belkin at 192.168.2.1.  I disabled wireless because it won’t be needed in my scenario, and because it was interfering with the laptop I was using for reference on a wireless connection to my operational network.  Saved config and restarted the router.  These steps shouldn’t be necessary in most cases.
  4. Logged back into router, browsed filesystem for, and uploaded DD-WRT mini firmware referenced above, via Utilities section, Firmware Update (had to “submit” blank password, as I had not set one). (picture)
  5. As noted in the forum instructions, I waited about 10 minutes.  Then set static IP on laptop of 192.168.1.10 (same mask as above) and attempted to open browser to DD-WRT admin page at 192.168.1.1, successfully.  The router immediately presented a page indicating an unsafe username and password, which it would not allow me to proceed without changing.  Set username and password to a known but simple value.
  6. Proceeded to Administration tab (prompted for, and entered, username and password specified above), then the Firmware Upgrade subtab.  Set the “After flashing, reset to” box to “Reset to Default settings”, browsed for the dd-wrt mega file noted above, and proceeded with the upgrade.  The router completed the upload in approximately the 300 seconds it indicated, then provided a screen with a progress bar indicating the router was restarting.  I noted that a ping I had running to the router dropped shortly after that screen appeared.  Ping remained down even though the status screen indicated that it should be back online.  Router still appeared in ARP cache, and upon clearing ARP cache on the PC and restarting ping, the entry returned but I remained unable to connect to the device.
  7. Pulled power from the router at the wall outlet.  Waited at least 30 seconds, then reconnected.  Ping resumed a few seconds later, and I was then able to open the web interface.  Was again prompted that username/password was unsafe and again entered a simple combination in order to proceed.  Observed that the router did indicate it is on the “mega” firmware in the top right corner of the page.
  8. After entering password, returned to Administration tab, Firmware Upgrade subtab, set same option to “Reset to Default settings”, located and uploaded the Tomato firmware file.  Router again indicated that it was uploading the file for approximately 300 seconds, then produced “upgrade successful” screen indicating it was restarting.  As before, ping dropped, but this time only briefly.  Was prompted for username/password, entered the combo I had set above, and was provided with a screen to continue to the web administration page (prompt indicated the webserver was “DD-WRT”, which indicated the upgrade was not completely successful).  Upon clicking continue, received username password requests again and was unable to proceed with the previously entered username and password.
  9. Hard pulled power at the wall again for a minimum of 30 seconds.  Restored power, continued to see indication that the network cable was unplugged.  Tried power pull one more time with same results – light on on front of router, but computer indicating that there was no cable connected and no ping replies or arp entries.
  10. Proceeded with 30/30/30 reset (see below).  Did observe that I was getting replies from 192.168.1.1 with a TTL of 100 after approximately the first 30 seconds, and the same after restoring power and continuing to hold reset for 30 seconds.
  11. Attempted to open a browser to 192.168.1.1, and received the CFE miniWeb Server with a location to provide a firmware file.  Browsed to the firmware file, then uploaded.  Noted that ping response times increased from ~1ms to between 6 and 10ms, then back to 1 or 2 ms after a couple of minutes.  Noted that the web interface advised that the firmware file provided was not a valid firmware image.
  12. Selected “Continue” in the advisory page, issued the command from the miniWeb server to restore default NVRAM values.  Restarted router from the CFE miniWeb page.
  13. Amazingly enough, after restarting and attempting to access default page at 192.168.1.1 again, was provided with a password prompt, entered the password I had set previously, and was provided with the Tomato router interface.  How about that.
  14. Updated username and password to something more secure, and proceeded with my configuration.

Notes

Instructions are for the Belkin Share Max N300 (F7D3301/F7D7301) v1.

The two DD-WRT files are out of order when you browse for the files (mega is alphabetically before mini… keep it in mind)!

30/30/30 reset method:  Hold down reset button for 30 seconds.  While continuing to hold reset, power off by unplugging from wall outlet and leave unpowered for 30 seconds with reset held.  Without releasing reset button, restore power to modem; wait 30 seconds, then attempt connection to web interface again.

3 Comments so far. Join the Conversation

http://bderzhavets.wordpress.com/2011/04/27/setup-kvmqemuspice-on-ubuntu-11-04-via-ppaserge-hallynspice2/

Just recently read about the spice protocol for remote display/audio/etc, and it looks very promising.  Finally got my new build system up and running on Ubuntu (turns out that “nomodeset” as a kernel option was key to that, and had to work around through a few hoops… still not sure whether it’s running UEFI or typical, but it’s running, so I’m done caring).  Next step is to get a couple of virtual machines running, and see if I can justify shutting down a couple of other systems and end up saving power, as I suspect my new build is quite a bit hungrier for juice than the miscellaneous small boxes I currently run.  Will have to hang the Kill-A-Watt off it at some point and test to be sure.

Be the first to comment

softflowd – fast software NetFlow probe

Posted May 14, 2012 By Landis V

http://www.mindrot.org/projects/softflowd/

Keep in mind for Linux-based infrastructure.

Be the first to comment

MythTV, XBMC, misc.

Posted May 11, 2012 By Landis V

https://help.ubuntu.com/community/MythTV/Install/Server/Backend

http://wiki.xbmc.org/?title=MythTV

Seriously, can’t Mac just use Ctl+V/Ctl+X/Ctl+C?  Thought they had a “control” key as well, in addition to the poison apple and the cloverleaf.  Guess I’ll have to check.

After a bit of a hiatus, getting back into MythTV a little bit.  This time, just going to set up backend on a PC I always have running anyway, and as noted in the second link, run XBMC as a Myth frontend.  Since I finally bought a TV from the modern era, I ordered a video card with an HDMI output and am thinking I can get an XBMC set up as a frontend so we can DVR the very small handful of shows I actually kind of give a damn about watching.

I’ve also been doing some research and playing with Joomla, as it seems like it may be a better platform for my most recent web endeavor than WordPress.  As much as I like WordPress and am relatively comfortable with it, there are some layout things that I think would take additional work in WordPress that I can just do or use a plugin for in Joomla.  I could probably make WP do what I want, but I think I’d probably have more time in that than I would in learning Joomla and implementing the plugins I need to deliver the experience I’m looking for.  Plus, without digging into the backend and really building an understanding of the platform, I’m not comfortable with my ability to build out the changes I want securely.  At layer 2 or 3 of the OSI, I have enough experience to trust my judgment, even cross platform.  At layer 7 (8?), I question myself a little more.  I’m not comfortable in situations where I can’t trust my own judgment.

Be the first to comment