Sunday, January 27, 2013

Using your Pogoplug with LMS

Observations
I had a problem last night where it was very slow in responding.
But, I had been tweaking the options in my wireless router, and had messed with things when I was setting up a 2nd pogo.

I elected to reinstall everything, I reimaged the USB stick to the VAMP image and then reinstalled LMS. At this point, my network didn't show the Pogo anywhere, so I did it one more time, and it worked fine.

Shutdown
I always shutdown by typing "shutdown now" from a putty session, but there were times when I would shutdown, restart, and it wouldn't come back on my network.
I think I wasn't waiting long enough.
When you unplug power, leave it powered down for at least a minute before plugging power back in.
When I do that, it always seems to come up.

Fixing problems
It is a pretty simple system, but I have had a couple problems, and it can be a little hard to figure out what's going on.

One problem I had was somehow my USB hard drive got messed up, and then things stopped working, caused some head scratching.
So, if your Pogo stops coming up, so you don't see the green light, can't log in or see it in your internet program anymore, then try turning it off, unplugging the hard drive, and turn it back on and see if it works then.  It if works without the hard drive, you need to check your hard drive.

EDIT Feb 24
I have also had problems where the hard drive was fine, but the pogo wouldn't come up with the hard drive connected, but if I disconnect the hard drive, then it does come up.

If you type "df" in a pogo session, you should see something like this:


Filesystem           1K-blocks      Used Available Use% Mounted on
tmpfs                   127204         0    127204   0% /lib/init/rw
udev                    125128       144    124984   1% /dev
tmpfs                   127204         4    127200   1% /dev/shm
rootfs                 3096336    918248   2020804  32% /
tmpfs                   127204         0    127204   0% /tmp
/dev/sdb1            488383484 129274624 359108860  27% /music


I typed in DF and got some error message, so I decided to just rebuild the stick.

I  reinstalling VAMP on the usb stick, and then reinstalling LMS on the VAMP.
That's when I decided to get an extra stick, and make an image of the stick after LMS was installed, so I would always have a backup copy of LMS I could just copy to a stick.
I added instructions on how to do this on my setup page.


Adding files to LMS/Pogo
Since you overwrote the Pogo software, you can't write to the Pogo like it was intended.
But, there is an easy way to add music to your Pogo, a program called WinSCP.
http://winscp.net/eng/index.php

It gives you a graphical interface so you can drop and drag your files from your PC to the Pogo.

Install it, and log into the Pogo using the same info as putty.

Click to go back to the root directory

Click on the music folder, and you should see your USB hard drive.

Just add the files whereever you want on the hard drive, and then you can rescan in LMS.


iPhone apps

There is a nice Logitech iPhone app that you can use as a remote control.
https://itunes.apple.com/us/app/logitech-squeezebox-controller/id431302899?mt=8

In spite of the bad reviews, I like it, and I don't have to log in every time, so I don't know what people are complaining about.



There are also SSH terminal apps you can use instead of putty.
I have been using serverauditor because it's free, and works for me
https://itunes.apple.com/us/app/server-auditor-ssh-client/id549039908?mt=8

You can set it up to log in automatically, so you don't need to type the login info every time.

After it connects, then touch the line and it will give you a terminal view.
At the terminal view, if you do an upward swipe, it shows the last command used.  Another swipe and the command before that, so you can easily call up the commands you have been using instead of typing them in.

I mostly use this app to shutdown, and I usually don't have to go back very far to find a shutdown.

They do have other most sophisticated ssh terminal apps, but most are not free.  This one is free, and is easy for me to use, and does what I need.


Notes:
cd /scripts
copy "hd-idle-1.03-bin.tar.gz" from the /scripts to root
I used winscp to do this, and copied the file to my PC, and then to root.


Go to root and then unpack it
cd /
tar -xvzf  hd-idle-1.03-bin.tar.gz

editor nano filename
cd /etc/default

nano /hd-idle

Change line to "START_HD_IDLE=true"

view and change permissions
cd /usr/sbin
stat hd-idle
chmod 777 hd-idle

run it (you need to stay in the sbin directory)
/etc/init.d/hd-idle start

No comments: