Hello Adam,
First of all, on the first link, Plugapps has discontinued it since it is the same system as on the bottom link. They now have Plugbox Linux which is a complete Arch Linux distribution. They are at http://www.plugapps.com . The second link above is Optware. Both require some Linux proficiency so if you are not comfortable with Linux, don't do it, or learn Linux first because you have a chance of making you Pro unusable to a certain extent. Now the difference.
First Optware is just a package manager. What that means for you is that the Pro comes with Busybox Linux and and Optware adds the IPKG package manager to allow you to add 3rd party packages to the built in system. It has about a thousand packages. It has been around for a while and is geared for numerous small systems. The Optware repository is at http://ipkg.nslu2-linux.org/feeds/optware/cs08q1armel/cross/stable/ . You can scan through or read the Packages file http://ipkg.nslu2-linux.org/feeds/optware/cs08q1armel/cross/stable/Packages for a full list and what versions there are.
Plugbox Linux, on the Pro, is a complete Linux environment based on Arch Linux. It has its own package manager called Pacman. It has several thousand packages. It is undergoing a huge update right now to make if friendlier and is a newer distribution for small devices but based on a distribution that has been around for a while. Its new repository is at http://dev2.plugapps.com/arm/ .
The choice of which is up to you. I would suggest doing a google search on each one and going through their web sites. Also, go through their forums.
I use both of them, even though I wrote the guide for Optware (I'm just a user, not a developer). They both work great and whichever you choose should be based on your criteria for your system and what you want to do in the future.
Categories: PogoPlug Development
Sorry if this has been asked. Didn't see any definitive answer in the FAQ.
I have a Pro and my goal is to be able to install various 3rd party applications like squeezebox. Would I be better off with:
http://www.plugapps.com/index.php5?title=OpenPogo:Installing_Base_Package_-_USB
or
http://www.nslu2-linux.org/wiki/Main/PlugComputers
Thank You
Adam
Hi oddball, thanks for the reply. I did see Plugbox Linux, but want to keep the my.pogoplug.com functionality. I think Optware is the way for me, I really just want the packages.
I have lots *nix experience (long time *BSd, and Solaris user/admin) but I don't really want to worry about updating this constantly with new full linux installs.
Thanks again for your help
Adam
Ok, good to know. By the way, Plugbox Linux on a Pro uses either chroot so that my.pogoplug.com still functions or can be pointed to the rootfs of the sata drive.... Which brings me to the point of the reply, the internal sata actually works well and is a lot faster than the usb port. All I did was connect to a 90 degree sata cable on the internal sata port and routed it in front of the power supply (no hot components, no blocked vents) and out a gap on the bottom of the case then connected it to the sata drive. I used a usb to sata kit and used the sata cable and power supply. No case mods needed. Works great and shows up as sda1.
@adamm
Please note:
The dev2 repo for PlugApps depends on a newer kernel than CE provides in the base image. I would suggest *against* using that repo for the time being. Once we have built an up-to-date kernel for the Pro, that repo should be available.
@Oddballhero
SATA works, SATA II capable at that. It will not accept a port multiplier, and it is not hotswap capable (at this time, we know that the kernel doesn't like the idea, and the system will freeze.) I've yet to document the mod I made to my case to house an eSATA port, but that speed difference is *definitive* in every respect.
As for the kernel, we have built custom kernels from source that *do* support CE services. We'll just have to figure out the best way to handle that.
So, I installed optware this evening. Pretty straight forward. I'm having one issue, when I try and add my mount /dev/sda1 /opt statement to rcS, it's not picked up, no matter where I put it. Tried before the hostname statement, at the end, etc.
Nothing showing in dmesg. Haven't tried adding directly to /etc/fstab yet, but that's probably not advisable I'm guessing, thanks.
Ok, some issues with the Pro and it's indexing. Always check your drive indicator light for activity. Unlike the V2 or dockstar, the indexing routines seem to be more aggressive and you can't do much while it is going on. Do an "fdisk -l" to see if the drive is even showing up. Also, you may want to perform e2fsck on the drive since interupting the indexing in any sort of way will corrupt it (this gave me fits for a while since I could have sworn that I umounted it before shutting down / or ejected the drive). I became quite paranoid for a while always watching the drive activity light. I have a bunch of files that may be of help at http://tech.groups.yahoo.com/group/nslu2-general/files/Plug%20Files/ . The mount can be at the end of rcS or a script containing it. On my guide is a shell of a script for shutting down with an inittab entry which would be advisable. Definitely sync and umount the disks before shutting down, rebooting or removing any drives. I actually installed the e2fsprogs and moved e2fsck onto the nand just to be able to check my drives (or used my desktop). Use "mount" to see if the drive is already automounted such as "/tmp/.cemnt/mnt_sda1", you might not be able to mount it on /opt except with "mount -o bind /temp/.cemnt/mnt_sda1 /opt". Anyway, good luck, have patience. Everything stabilized after about a week (although earlier in the week, I wanted to throw it against the wall or beat it with a golf club). Might have been when it finally upgraded to 2.5.9. Everytime I add a drive, there is a minor hiccup as it indexes and then it settles down.
Good Luck!
Addendum:
Sometimes the Pro needs a delay after booting before mounting the drive. Put a sleep 5 up to sleep 10 before you mount your drives.
Thanks oddball, in all cases, I would see the drive via fdlisk -l, and could mount it as soon as I logged in, so I do think the sleep statement will help.
In regards to corruption, yes I noticed that :). At one point /opt/sbin got screwed up and was giving I/O errors, a e2fsck fixed that.
@adamm
I too having same problem not able to mount through rcS. Did added '/bin/mount /dev/sda /opt' at end and as you said can mount after logging.
Did you find the solution. ?
I did, a nice 'sleep 15' at prior to the mount statement. Also, your mount statement looks incorrect, you want to mount /dev/sda1 (assuming 1 is your partition). Hope this helps.
Regards,
Adam
@adamm
Yes adding sleep does the magic. I am not sure but my usb flash drive comes as sda and hard drive as sdb1, saw this through mount cmd. I don't have much knowledge but found that /dev/sda did worked after adding sleep for me.
I have two more question, I did installed transmission but I won't be able to put that in startup script since my 2 TB HD takes around 1-2 minute to be mounted. Else I guess only way is say sleep 120. ?
My biggest bummer is dropbear because it's not allowing me to do port forwarding even after -a option. I even installed open ssh and put 'AllowTcpForwarding yes' in sshd_config but still getting error msg in log 'server denied forwarded connection'.
I seriously believe that my ssh 'port forwarding' is not working because of some firewall rule or my router. I have disabled the firewall on my dlink router. Only thing I can imagine is some firewall on pogoplug itself. I am able to open forwarded connection withing my LAN.
Transmission should be installed on your flash drive. Are you saying you can't start it because the torrents are on the 2TB drive? Seems odd it takes 2 minutes to start after a reboot.
In regards to ssh. What are you trying to do, be able to ssh into the device from outside your LAN? If thats the case, no 3rd party ssh daemon is required. Just need the rule on your router. Disabling the firewall on your router probably won't make a difference if you don't have the proper NAT (port forwarding) rule in place.
Yeah transmission is on my usb but downloads folder in HD. I am not sure how this works but seems like my HD is mounted after 1-2 minutes. When I boot and run mount I don't see sdb1 (My HD) mounted, but it comes automatically after some time.
I want to do SSH tcp tunnel (port forwarding) from my work place, so that I can surf web anonymously. You makes sense to me it has to do with some router thing. I am able to ssh into pogoplug through my dyndns address. But when I open new forwarded port it gets refused. This is really something really careless on my part but I am not able to figure it.
The delay in your HD may be due to routines that check the indices to see if they need to be updated, you may have a lot of files on your HD. Also, as above, if your index files are corrupt, it may cause the routines to hang.
Things to watch out for on your home setup, you may have dyndns implemented to handle dynamic routing external to your modem, but internally, if you are using dhcp to let the pogoplug acquire an address, that may continually change when you reboot it. So the port-forwarding you set on you router/modem may not work. You need to set in your router that the pogoplug's mac address always gets the same static internal IP (192.168.xxx.xxx). Also if you are using a separate router from you modem, you may need to check your settings so you don't end up with a double NAT situation. Check that your modem is bridged. Or setup up dual port forwarding (but then you have to watch out what ip address gets allocated on the router and setup a static ip). Needless to say, if you only have an integrated router/modem, you only have one port forward to worry about and allocate a static address to the pogoplug. You don't have to disable your firewall. Also some router/modems don't allow loopback. So you can access your pogoplug external to your network with your dyndns domain name but not internally in you network. For that you have to use the internal IP.
Yeah I thing indexing is some what weird the way pogoplug does. I have written a script with simple for loop and sleep to wait 3 minutes before giving up on mounting and starting transmission and misc services.
The SSH PORT forwarding is giving me nightmares. This is very important for me at workplace because my employer is very nasty and monitors their employee's all web usage. I have 2 internet connection with 2 routers and have made pogobox as DMZ on one of them. MODEM > WIFI Router > POGOBOX [DMZ]. LAN IP for Pogobox is indeed reserved. I have a PC running Ubuntu and port forwarding with open ssh works on it. So I know its not my router/modem or putty client now. Interesting part is port forwarding within LAN works perfectly for pogobox. I want to do simple port forwarding on pogo so that I can do tor based geographical port forwarding on another machine.
Are there any tools or reference I can look up, I don't have fair knowledge of NAT and IP tables so if that would help me understand.
Finally ...
What I found was that pogoplug was not able to map host name to IP address. The problem was that dns lookup using ssh tunnel doesn't work in pogoplug. So I disabled that option and now do dns lookup differently.
I noticed in the Optware package list that it has SqueezeCenter version 7.3.3-1 available. SqueezeCenter has been superceded by Squeezebox Server (version 7.5.1 is current stable). You may want to check if your device is compatible with SqueezeCenter or if you need to use Squeezebox Server instead.
To answer 2 posts at the same time:
Dhival:
Did you solve your DNS problem? Whichever router you are using for DHCP even if it is static does not seem to provide DNS info and you need to edit setup dnsmasq or some dns server for your system.
Rustybytes:
I don't use squeezecenter so it doesn't affect me but for Adamm's benefit, to see who is the maintainer (different ones for different packages and all are volunteers) on optware just search through the file http://ipkg.nslu2-linux.org/feeds/optware/cs08q1armel/cross/stable/Packages or do "ipkg info packagename" and this will give the maintainer and their email address. Once you have that information contact them. If it mentions NSLU2 Linux then post to the group http://tech.groups.yahoo.com/group/nslu2-general/ a request for update. Chances are the person that may answer you is Brian Zhou who is the Optware Package Manager (and may have built the package). A caveat, currently, I believe there are a bunch of updates but they had a problem with their build machine (Ubuntu) which they are redoing, so have some patience. There are a number of developers waiting to put their package updates back on line (NSLU2-linux has been around since 2004 so machines are getting old). They also have other OS and packages that they maintain on multiple processors and devices (not limited to ARM, yeah it has gone beyond the original NSLU2). Actually some of the original contributors are also involved with smart phones and platforms like Meego, Openmoko, and OE.
If you want to try plugapps, their repository is at http://plugboxlinux.org/arm/
Ther is another alternative to Plugapps and that is provided by Jeff Doozan (http://jeff.doozan.com/debian) A slightly different version of that is provided by Thomas Ruhl (http://squeezeplug.de/) I think the Plugapps version has its origins in Jeff Doozans work but I dont know what the differences are. I'm using Thomas Ruhl's install with Squeezebox Server on my PogoPlug. It seems to work very well, I have also installed other packages such as Samba. There are very regular updates. The only downside is you lose the my.pogoplug.com filesharing capability.
Actually, I did use Jeff Doozan's Uboot and install http://jeff.doozan.com/debian/ (I placed it again since you need a space in your link) on one of my Dockstars for Debian Squeeze. On the Desktop, Debian is my favorite since most of the stuff I do is command line/console based (I'm old). Their repository list is in http://packages.debian.org/squeeze/allpackages?format=txt.gz . Actually NSLU2 was one of the first sites to sponsor Debian on ARM http://www.nslu2-linux.org/wiki/Debian/HomePage . Other Distributions not mentioned are OpenWrt (a personal favorite also) and Angstrom (Open Embedded) both very lean. As for Plugapps, it is ArchLinux and the only association with Jeff Doozan is his u-boot. What Thomas Ruhl did looks like he modified a stock debian install by pre-installing squeezebox server with customization and trim Debian down so that it can run well on a Dockstar or other (Basically a custom Debian install for Squeezebox Server). My Debian Dockstar uses more resources than my other Dockstar/Pogoplug installs until I trimmed it down too. Looking through the NSLU2 wiki, the reason squeezecenter was not updated was that it was a resource hog and the newer versions used even more memory. This may not be a problem on devices like Dockstar's and other plugs with their relatively abundant RAM (128 MB and up, weird saying that) but for other devices that have around 32 MB could be a problem. And Optware still has to support the NSLU2 and routers and mini NAS devices just like dd-wrt or openwrt does. There are articles though that show user's updating their own Squeezecenter package by recompiling the latest source. I also noticed on the internet that you already have your own guide http://rustybytes.com . So for you that is ok, but other users might miss the my.pogoplug.com functionality. They may want to chroot into Thomas Ruhl's install.

RSS


