OUR NETWORK:TiVoCommunity TechLore MyOpenRouter Dijit Community MediaSmart Home See all... About UsAdvertiseContact Us

 
Learn about scoring Forum's Raw Score: 322848.0
February 11, 2011 07:35 AM

Categories: Pogoplug Drive (Linux)

Rating (0 votes)
  • 1
  • 2
  • 3
  • 4
  • 5
Rate This!

Member Avatar

Valinote

Member
Joined: 02/02/2011

Hi guys. I have a standard pink pogoplug v2 and am trying to install optware on an 8gb usb flash drive per the instructions found here http://www.nslu2-linux.org/wiki/Main/PlugComputers. But when I try to execute "ipkg update" I get an error: "ipkg: command not found". My intention is to be able to run pure-ftpd under optware off the flash without disturbing the native pogoplug operating system. Here's what I have done so far...

I have a puppy linux 5.2 laptop that I am using to ssh into my pogoplug, and also to set up the flash drive. With the flash drive in my puppy laptop, I formatted and set up a single ext3 partition. Do I have to set the boot flag?

I was under the impression that I could set this all up on the flash drive with my laptop, independent of the pogo, and then just reboot the pogo with the flash inserted and I would be up and running?

The instructions say that "you need to make the opt subdirectory under "/"". Is that on the flash drive or on the pogoplug?

With the flash still in my laptop, I downloaded the ipkg manager from http://ipkg.nslu2-linux.org/feeds/optware/cs08q1armel/cross/stable/ and uncompressed to the flash drive, thereby creating the bin, etc, share, and lib subdirectories. Then I went into opt/etc/ipkg.conf and added the scr cross as instructed. Please note that I am doing this all on my laptop and not ssh into pogoplug. Is that right? Still on my laptop, I typed "PATH=$PATH:/opt/bin:opt/sbin" and then "ipkg update". That's when I get "command not found".  Can someone please help me?


I'm a complete linux noobie so please be gentle...8-)

-Steve D

Discussion:    Add a Comment | Comments 1-10 of 10 | Latest Comment

February 12, 2011 3:01 PM updated: February 12, 2011 3:02 PM

Ok. Made some progress on the above optware installation. I realized you can't run arm compiled program on my laptop. Got the new commands on the flash drive working and performed the "ipkg update" successfully. Now I am part way through the final Step 6 and have hit a snag. Where is the ".bash_profile" file that is supposed to be in root? I did "ls -a" and don't see it? All I could find was ".bash_history", but no profile. Can someone please help me? I'm almost there! Thanks in advance...

-Steve D

February 12, 2011 8:45 PM

Cool, you figured out the arm vs intel processor dilemma. There might be simpler instructions at http://tech.groups.yahoo.com/group/nslu2-general/files/Plug%20Files/ . The instructions I primarily wrote to be generic to most of the pogoplug type computers. If you followed step 6, you would have created the .bash_profile. Whenever you type the name of the file after an editor, and it does not exist, the editor (vi or nano) will create it. Works the same way on OSX, Windows, and DOS (reaching far back). On Windows, type "edit test.txt" or "notepad test.txt" and those files will be created. If you have ipkg working correctly congratulations. I use pure-ftpd and it works great!
Here is how I call it in "/etc/init.d/rcS"
/opt/sbin/pure-ftpd -B
This will run it as a daemon.
You don't have to set the boot flag since the kernel is in nand. You can if you eventually want to boot off the usb drive itself.
Good Luck!

February 12, 2011 10:01 PM updated: February 12, 2011 10:02 PM

Thank you for the kind advice. I followed your instructions above, adding a line to run mount_optext in my rcS. Does the rcS run automatically when you boot or do you have to do that manually? I have untarred the data.tar.gz of pure-ftpd in the root directory, and I can see the pure-ftpd application file in /opt/sbin, but when I type "pure-ftpd", I get: "error while loading shared libraries: libss1.so.0.9.8: cannot open shared object file: No such file or directory". Are there additional libraries I need to download to run pure-ftpd?

-Steve D

February 13, 2011 12:02 AM

The rcS runs automatically because it is called from the inittab at startup. Actually you don't install the packages manually once ipkg is installed since it does the work for you. It is a package manager. Just install pure-ftpd with "ipkg install pure-ftpd" and it will install all the necessary things since it also downloads and runs the install script and any dependecies. You can also call pure-ftpd at the end of mount_optext2/3 instead of rcS. At the prompt type "set" and this will show if your path is correct and should have /opt/bin and /opt/sbin in front of the rest of the path.

February 13, 2011 12:56 AM

Hmmm. Some commands work and some don't. I am unable to do an "ipkg install pure-ftpd" because wget is getting the same libss1.so.0.9.8 library error described previously. Typing "set" shows "PATH=/opt/bin:/opt/sbin:/bin:/sbin:/user/bin:usr/sbin"
Is it possible I'm missing this libss1 library? How can I download or install anything if wget doesn't work?

-Steve D

February 13, 2011 1:21 AM

I don't really know how you installed ipkg. Does ipkg update work? That would use wget already. Typing "ipkg" would give you all the commands. Typing "ipkg list|grep packagename" lets you search for packages. You can look for libssl.so.0.9.8 (in caps it is LIBSSL and not LIBSS1) in /opt/lib but the only reason you would need that is if you installed wget per the Pogoplug Pro instructions (in Blue) by mistake. The Pogoplug V2 has it's own wget which is standalone and wouldn't look for that library. Go to /opt/bin and delete wget since the real wget is in /usr/bin. By the way, if you want to look for a file, the syntax is "find / -name Filenameyouwerelookingfor".

February 13, 2011 10:01 AM updated: February 13, 2011 10:03 AM

The ipkg itself seems to be installed and working, but somewhere along the line, my wget stopped working. I'm pretty sure I didn't use the Pro instructions in blue by mistake. However, if I type "ipkg list|grep wget" the version comes back as 1.12-2? "find / -name wget" yielded:
/bin/wget
/usr/bin/wget
/opt/bin/wget
So I took your advice and deleted file /opt/bin/wget, but the "error while loading shared libraries: libssl.so.0.9.8" persists. I used "set" to make sure the path to /usr/bin/wget was in there. Also "find / -name libssl.so.0.9.8" comes back with nothing. Thanks for taking the time to be patient with me...8-)

-Steve D

February 13, 2011 12:40 PM updated: February 13, 2011 12:51 PM

I found out how to cut/paste from a terminal. To help clarify, here is what I'm seeing...

-bash-3.2# ipkg list|grep ipkg
ipkg-opt - 0.99.163-10 - The Itsy Package Manager
ipkg-web - 7-7 - A web frontend for ipkg

-bash-3.2# ipkg list|grep wget
wget - 1.12-2 - A network utility to retrieve files from the Web
wget-ssl - 1.12-2 - A network utility to retrieve files from the Web

But typing the commands themselves...

-bash-3.2# wget
wget: error while loading shared libraries: libssl.so.0.9.8: cannot open shared object file: No such file or directory

-bash-3.2# ipkg update
Downloading http://ipkg.nslu2-linux.org/feeds/optware/cs08q1armel/cross/stable//Packages
wget: error while loading shared libraries: libssl.so.0.9.8: cannot open shared object file: No such file or directory
An error ocurred, return value: 1.
Collected errors:
ipkg_download: ERROR: Command failed with return value 127: `wget --passive-ftp -q -P /opt/ipkg-p3d26R http://ipkg.nslu2-linux.org/feeds/optware/cs08q1armel/cross/stable//Packages'

Typing "find / -name libssl.so.0.9.8" produces no output.

The wget must have worked initially for me to be able to download and install ipkg, but now I can't figure out why it no longer works.

-Steve D

February 13, 2011 3:50 PM

If you haven't figured it out yet, the answer is in the post before last. You should have only one wget. Find found 3 and you got rid of one. Somehow you installed wget-ssl on bin. Now all you need to do is delete /bin/wget. The real one is in /usr/bin. To confirm type "ls -la /usr/bin/wget" and you should get back (or something like it):
lrwxrwxrwx 1 root root /usr/bin/wget -> ../../bin/busybox

This shows that it is a function of Busybox Linux.
You are very close to the solution.
Good Luck!

February 13, 2011 4:15 PM

Yippie! That did the trick. wget is working again after deleting the extra copies. At some point I must have manually untarred into the wrong directores. But all is well now and so I was able to successfully download and install pure-ftpd. Gonna browse the manual and play with it a bit. Thanks, Hero!

-Steve D

Discussion:    Add a Comment | Back to Top | Comments 1-10 of 10 | Latest Comment

Add Your Reply

(will not be displayed)

Email me when comments are added to this thread

 
 

Please log in or register to participate in this community!

Log In

Remember

Not a member? Sign up!

Did you forget your password?

You can also log in using OpenID.

close this window
close this window