Go Back   AnandTech Forums > Software > *nix Software

Forums
· Hardware and Technology
· CPUs and Overclocking
· Motherboards
· Video Cards and Graphics
· Memory and Storage
· Power Supplies
· Cases & Cooling
· SFF, Notebooks, Pre-Built/Barebones PCs
· Networking
· Peripherals
· General Hardware
· Highly Technical
· Computer Help
· Home Theater PCs
· Consumer Electronics
· Digital and Video Cameras
· Mobile Devices & Gadgets
· Audio/Video & Home Theater
· Software
· Software for Windows
· All Things Apple
· *nix Software
· Operating Systems
· Programming
· PC Gaming
· Console Gaming
· Distributed Computing
· Security
· Social
· Off Topic
· Politics and News
· Discussion Club
· Love and Relationships
· The Garage
· Health and Fitness
· Merchandise and Shopping
· For Sale/Trade
· Hot Deals with Free Stuff/Contests
· Black Friday 2014
· Forum Issues
· Technical Forum Issues
· Personal Forum Issues
· Suggestion Box
· Moderator Resources
· Moderator Discussions
   

Reply
 
Thread Tools
Old 08-08-2011, 04:59 PM   #1
chuck2002
Senior Member
 
Join Date: Feb 2002
Posts: 467
Default Guide for installing a Full Debian install on a $33 PogoPlug

Hi I ran across some info on installing Debian onto a PogoPlug device the other day and wrote up a quick guide for it that I thought I would share.

This is a cheap, capable little device for tossing up and making do your bidding, and it doesn't need to run some stripped install.

Some portions of it are less technical than others...

Ok we are going to go over installing the full version of Debian Squeeze onto your PogoPlug Pink device. (This is the first edition device. These directions are not for any newer Pogo devices.)
Here is an example of one that is a first generation device that will work with these directions:
Pogo Drive for $33 Shipped
http://www.adorama.com/COCPOGOE02.ht...urce=cj_361116

You can get one of these devices for 33 bucks online, and this method of installing Debian goes onto a USB flash drive that you place into the Pogo. All of the changes (Except where you tell your Pogo to boot from a USB drive) are done onto the flash drive, so if you want to return your Pogo Plug's stock capabilities, just remove the flas drive and boot your Pogo.

When we are done, you will have a fully functioning Debian server for $33 plus the cost of a USB flash drive. If you want more storage capacity, slap on a USB portable hard drive. Also, this little box is fanless and silent and draws around 4 watts of electricity.

So the first thing you must do is to boot your Pogo, determine its IP address and login to it via SSH. You will use the following credentials: root with the password ceadmin
Once in, you will need to perform the following:
Gathered from this page:
http://jeff.doozan.com/debian/uboot/

cd /tmp
wget http://jeff.doozan.com/debian/uboot/..._uboot_mtd0.sh
chmod +x install_uboot_mtd0.sh
./install_uboot_mtd0.sh

Now you have changed the default Pogo boot behavior to attempt to boot a USB drive first before booting itself.
Next, you will want to fdisk and format your USB flash drive to get it ready to use with your Pogo.
I prefer to use a Ubuntu desktop for this with the gparted application, however you can do it directly from your Pogo with these directions:
fdisk /dev/sda
# Configure partion 1 as Linux (I'd recommend making this at least 512Mb. The default bare-bones installation uses 280Mb.) --The more the better here because this is where Debian will live and you will be able to install more apps with more space.
# Configure partion 2 as Linux Swap (I used 256MB. Adjust according to your anticipated memory usage.)
# Set partition 1 active

Ok now your drive is ready for linux, so plug it into your Pogo if you partitioned it with some other computer.
Here is the install script we will use to install Debian. Enter the following commands:
cd /tmp
wget http://jeff.doozan.com/debian/dockstar.debian-lenny.sh
chmod +x dockstar.debian-lenny.sh
./dockstar.debian-lenny.sh

It will confirm that you know what you are doing and that your flash drive will be erased. This process will take about 30 minutes depending on your internet speed.
Once complete, it will ask you to reboot, so do it.
It will boot off of your flash drive, and you will be able to use ssh to login to your new Debian installation.
The default username and password are:
root
root
You should change the password first thing.

Next, we will want to update the OS. Run the following:
apt-get update
apt-get upgrade

Once that is finished, we will want to upgrade the distribution to Squeeze, which is the latest Debian distro. We could have gone straight to that, but the scripts for Pogo to make that happen are broken, so we have to do the dist upgrade from the working Lenny version of Debian. No big deal.
To do this, we need to update our sources. I prefer to use the text editor Nano over vi, so first I install nano.
apt-get install nano

Update your sources file by entering this command:

nano /etc/apt/sources.list
entering the following information, replacing the same items that reference Lenny.
deb http://ftp.us.debian.org/debian squeeze main contrib non-free
deb-src http://ftp.us.debian.org/debian squeeze main contrib non-free

My sources.list file looks like this after the updates:

deb http://ftp.us.debian.org/debian squeeze main contrib non-free
deb-src http://ftp.us.debian.org/debian squeeze main contrib non-free

deb http://security.debian.org/ squeeze/updates main
deb-src http://security.debian.org/ squeeze/updates main

deb http://volatile.debian.org/debian-volatile squeeze/volatile main
deb-src http://volatile.debian.org/debian-volatile squeeze/volatile main

# Orion repository
deb http://people.debian.org/~tbm/orion squeeze main


Ok. Now run apt-get update again
Install the archive keyring prior to performing the OS upgrade to avoid upgrade errors:
apt-get install debian-archive-keyring

Now we are ready to upgrade the OS to Debian Squeeze with this command:
apt-get dist-upgrade

Sit back and drink a beer or just go to the bar, as this operation will take at least an hour.
During the process, the upgrade will stop a few times to ask you questions. Just say yes to everything.





Ok now that you have your Debian server, what the heck are you going to do with it?
-If you aren't awesome at the Linux commandline, I'd suggest installing Webmin. This is a web based interface that you can use to manage your server and most applications you install to it.
-Next, you can install a game server if you are so inclined. I installed tremulous-server to mine just to see if it would do it. No problemo. Tremulous is a fun, free first person shooter.
-Another thing you can do is install a LAMP web server. This is Linux, Apache, MySQL, and PHP. I installed this and it works really nicely. You can run your own web server at home to do development on or host your own web page from your broadband connection. -Keep in mind that the Pogo has only 256 megs of RAM. YOu will want to do some mySQL optimization for smaller memory systems after installation. There are guides for this online.
-One other thing you could do is to install Samba in order to do file sharing across your network. Samba is the Linux version of a Windows server file share.
-Finally, you could use your Pogo as a cheap offsite backup solution. Get a USB portable hard drive and add it to your Pogo and then install duplicity. This program allows you to make a set it and forget it syncing of data from your location securely to some other location. This only syncs changes, so once your data is at your remote location, you will just be syncing changes. The best part is that the data is encrypted at the remote location, so your buddy never knows or can access your data.
So here is the scenario: You have a Pogo at your house that has samba shares on it, so your household computers all backup to it.
You get another Pogo, get it all configured and make a duplicity copy of your data to it. Now you send it to your buddy that has broadband internet. He configured his router so that you can access your pogo remotely via SSH. You then create or edit your automated duplicity task to do a weekly sync with the remote Pogo.
Done deal. Set it and forget it remote backups on the cheap. If you want to get fancy, you can have the Pogo on your end email you with the job status log once it completes.

Here are my instructions for installing Webmin since it is not part of the apt repositories:
Run the following commands to install webmin:
wget http://prdownloads.sourceforge.net/w..._1.530_all.deb
Install Webmin's prerequisites. You can copy and paste this whole lines of stuff into your SSH comand to do them all at once.
apt-get install perl libnet-ssleay-perl openssl libauthen-pam-perl libpam-runtime libio-pty-perl apt-show-versions language-pack-en-base nano
Now install the webmin package
dpkg --install webmin_1.530_all.deb

Once installed, you will access it from: https://pogoplug IP address:10000
chuck2002 is offline   Reply With Quote
Old 08-11-2011, 10:45 AM   #2
TBSN
Senior Member
 
TBSN's Avatar
 
Join Date: Nov 2006
Posts: 919
Default

Thanks for the guide, this has to be the cheapest little server. Are the specs basically on par with a router or a little higher than that?
TBSN is offline   Reply With Quote
Old 08-11-2011, 10:57 AM   #3
chuck2002
Senior Member
 
Join Date: Feb 2002
Posts: 467
Default

Ya I would say so with the exception of the onboard ram, which is 256 megs. Not sure what the processor is, other than an ARM.
It isn't a speed demon, but it is capable of maxing out the speed of the USB interface during file serving.
Plenty of available ram on my rig with just SSH services running:
249.68 MB total, 49.41 MB used
chuck2002 is offline   Reply With Quote
Old 08-11-2011, 11:11 AM   #4
TBSN
Senior Member
 
TBSN's Avatar
 
Join Date: Nov 2006
Posts: 919
Default

I'm tempted to get it (it is around ~$45 shipped now) for a file server. The router I have has a usb hub and with DD-WRT I *could* use it to do file serving on the network, but I doubt it could max out the USB speed.

How difficult is it to set up a network file server for someone who's a beginner-intermediate level linux user?
TBSN is offline   Reply With Quote
Old 08-11-2011, 11:17 AM   #5
chuck2002
Senior Member
 
Join Date: Feb 2002
Posts: 467
Default

Debian is pretty easy to setup file serving. You can find a samba configuration guide online to use and just basically copy and paste commands into the ssh window to install and configure to your liking.
Also, Webmin is very nice for a GUI web interface to help with linux and Samba file serving management for linux beginners.

The Debian OS installs to and runs off of the flash drive permanently. The nice thing here is that you just remove the flash drive and you can return the Pogo unit to stock form in a single reboot without the flash drive.
It also is possible to forgo the flash drive and just install directly to a USB hard drive.
chuck2002 is offline   Reply With Quote
Old 08-12-2011, 02:17 AM   #6
Colt45
Lifer
 
Colt45's Avatar
 
Join Date: Apr 2001
Location: Советский Союз
Posts: 19,719
Default

These are handy little rigs, got one and put debian on it some time ago... ordered another but it hasn't arrived yet.

Kinda disappointed the chip in there has no temp sensor, or I2C or SPI or whatnot, or maybe there are just no drivers... I thought I looked into it some time ago but I couldn't find a datasheet, maybe marvell is in the NDA BS business too.

Anyhow, I've been interfacing mine to one of the AVRs with USB, figured I'd have it do some automation and monitoring of... something. Kinda got sidetracked lately though.
__________________
######
############
##########################
##################################################
##################################################
Colt45 is offline   Reply With Quote
Old 08-12-2011, 10:15 AM   #7
TBSN
Senior Member
 
TBSN's Avatar
 
Join Date: Nov 2006
Posts: 919
Default

How do you use it with a receiver, can you play music through the USB?
TBSN is offline   Reply With Quote
Old 08-13-2011, 09:43 AM   #8
skyking
Lifer
 
skyking's Avatar
 
Join Date: Nov 2001
Posts: 15,967
Default

what are the power requirements? I figure it has a wall wart and if it takes 12VDC, It could make a nice little mobile computer for automotive use.
__________________
Heat

skyking is offline   Reply With Quote
Old 08-13-2011, 10:43 AM   #9
chuck2002
Senior Member
 
Join Date: Feb 2002
Posts: 467
Default

No wall wart. The power supply is internal to the device. It draws about 4 watts.
No fans either. Takes a good while to boot though. I haven't timed it. It would make a nice little car box. The trim on the device could be removed to reduce space requirements.
chuck2002 is offline   Reply With Quote
Old 08-13-2011, 07:26 PM   #10
xSauronx
Lifer
 
xSauronx's Avatar
 
Join Date: Jul 2000
Location: Eastern NC
Posts: 19,316
Default

dont need one, as i have an esxi box with a debian vm going, but i kinda want one just for the hell of it....
__________________
LET'S GO 'CANES [they arent going anywhere. ever.]
Free speech doesn't protect speech you like, it protects speech you hate.

Heatware |
xSauronx is offline   Reply With Quote
Old 08-13-2011, 10:09 PM   #11
TBSN
Senior Member
 
TBSN's Avatar
 
Join Date: Nov 2006
Posts: 919
Default

I just bought one for the hell of it. I figure I've wanted a NAS/fileserver for a while and this is the cheapest and smallest way to start into it.
TBSN is offline   Reply With Quote
Old 08-14-2011, 09:45 AM   #12
chuck2002
Senior Member
 
Join Date: Feb 2002
Posts: 467
Default

Quote:
Originally Posted by xSauronx View Post
dont need one, as i have an esxi box with a debian vm going, but i kinda want one just for the hell of it....
Same here. I also have an ESXi box but couldn't resist. It is a neat item, and you could slap on a big hard drive and use it to backup your ESXi vm's.
You need one.
chuck2002 is offline   Reply With Quote
Old 08-15-2011, 03:10 AM   #13
Colt45
Lifer
 
Colt45's Avatar
 
Join Date: Apr 2001
Location: Советский Союз
Posts: 19,719
Default

Quote:
Originally Posted by chuck2002 View Post
No wall wart. The power supply is internal to the device. It draws about 4 watts.
No fans either. Takes a good while to boot though. I haven't timed it. It would make a nice little car box. The trim on the device could be removed to reduce space requirements.
They've got a 5V supply internally (IIRC) so the parent could use it in a car with a 12>5V regulator, if they bypassed the internal PS.
__________________
######
############
##########################
##################################################
##################################################
Colt45 is offline   Reply With Quote
Old 08-15-2011, 01:19 PM   #14
Red Squirrel
Lifer
 
Red Squirrel's Avatar
 
Join Date: May 2003
Location: Canada
Posts: 27,785
Default

Add in a USB external drive dock, or esata if it has it, and this makes an awesome little backup server.
__________________
~Red Squirrel~
486dx2 @66Mhz turbo, 8MB ram, 512MB HDD, sound blaster 16 + 2x cdrom, Trident 1MB video card @ 640*480, 56k high speed modem.
Red Squirrel is online now   Reply With Quote
Old 08-15-2011, 02:16 PM   #15
chuck2002
Senior Member
 
Join Date: Feb 2002
Posts: 467
Default

Quote:
Originally Posted by Red Squirrel View Post
Add in a USB external drive dock, or esata if it has it, and this makes an awesome little backup server.
It has only USB(v2) ports. (Quantity 4) No Esata. Regardless, ya it is a fun box to beat on.
chuck2002 is offline   Reply With Quote
Old 08-15-2011, 04:12 PM   #16
Colt45
Lifer
 
Colt45's Avatar
 
Join Date: Apr 2001
Location: Советский Союз
Posts: 19,719
Default

Depending on the revision, some of them have a SATA port internally, if you want to chop it up.
__________________
######
############
##########################
##################################################
##################################################
Colt45 is offline   Reply With Quote
Old 08-15-2011, 04:37 PM   #17
chuck2002
Senior Member
 
Join Date: Feb 2002
Posts: 467
Default

Nice. Googling around, it looks like the pink front plate comes off with a yank and there may be a sata jack in there.
I might just take this apart on mine just to paint it something other than pink....
chuck2002 is offline   Reply With Quote
Old 08-15-2011, 05:13 PM   #18
TBSN
Senior Member
 
TBSN's Avatar
 
Join Date: Nov 2006
Posts: 919
Default

Quote:
Originally Posted by Colt45 View Post
Depending on the revision, some of them have a SATA port internally, if you want to chop it up.
I'd be willing to crack it open and give it a try. is there a link to that procedure or do I have to figure it out on my own? *edit* looks like only the pogoplug pro has the sata port? I got the pink one.

Also I found two other companies that make little embedded computers like the pogoplug, like http://www.plugcomputer.org/

They have a few more hardware options and come with some type of Linux I believe. Also there's http://www.tonidoplug.com/. Still it's hard to beat ~$50 shipped like this older-gen pogoplug.

Last edited by TBSN; 08-15-2011 at 05:18 PM.
TBSN is offline   Reply With Quote
Old 08-15-2011, 08:19 PM   #19
KillerBee
Golden Member
 
KillerBee's Avatar
 
Join Date: Jul 2010
Posts: 1,091
Default

This one looks interesting too spec-wise (I have no experience with it )
since it includes an eSATA 3G port

http://www.globalscaletechnologies.c...dcdetails.aspx


Edit: just noticed the price ... $250 (never mind)

Last edited by KillerBee; 08-15-2011 at 08:34 PM.
KillerBee is online now   Reply With Quote
Old 08-16-2011, 03:12 AM   #20
Colt45
Lifer
 
Colt45's Avatar
 
Join Date: Apr 2001
Location: Советский Союз
Posts: 19,719
Default

The late rev pink pogos have the same board as the pro, but missing something, i forget what. Video? This is the version with SATA inside.

You can tell by the sticker on the pink bit, the one I have is E02 and it is the old version, no sata. Not sure what it is for the newer ones.

Or I guess you could just check /proc/(cpuinfo|meminfo) or top or something like that. Old one is 256MB ram and.. 1.2GHz? single core. The newer rev (with sata, pro board inside) is 128Mb ram, 700? Mhz, and dual core.
__________________
######
############
##########################
##################################################
##################################################
Colt45 is offline   Reply With Quote
Old 08-16-2011, 06:53 AM   #21
chuck2002
Senior Member
 
Join Date: Feb 2002
Posts: 467
Default

I just took my Pogo apart. I yanked on the bottom of the pink stand near the bottom pulling straight out the front of the device. It made an ugly snapping sound and came apart. Then the clear sleve comes off and the two white halves come apart easily.
I am left with some plastic tabs that broke off when I yanked the front off. It went back together ok though.
Inside mine, there was nothing exciting. No SATA jack, no heatsinks on the chips, nothing really but a board and a small power supply.
I did take that opportunity to black tape the power LED though, and put it all back together.
chuck2002 is offline   Reply With Quote
Old 08-16-2011, 07:02 AM   #22
chuck2002
Senior Member
 
Join Date: Feb 2002
Posts: 467
Default

This one looks interesting for an IPCop or Pfsense router installation. A bit pricey for $129, but cheaper than my old FitPC computer that I bought to use for IPCop for $300 a few years ago.
http://www.globalscaletechnologies.c...rver-plus.aspx
chuck2002 is offline   Reply With Quote
Old 08-16-2011, 07:36 AM   #23
TBSN
Senior Member
 
TBSN's Avatar
 
Join Date: Nov 2006
Posts: 919
Default

I wish they took the whole "plug" computer thing less literally because wallwarts can be a PITA.

Quick question regarding the writeup at the beginning; The instructions on the site you are referencing for installing squeeze right off the bat won't work with the pogoplug? I just want to make sure because otherwise it would be easier just do the squeeze install mentioned here: http://jeff.doozan.com/debian/
TBSN is offline   Reply With Quote
Old 08-16-2011, 08:01 AM   #24
skyking
Lifer
 
skyking's Avatar
 
Join Date: Nov 2001
Posts: 15,967
Default

Quote:
Originally Posted by chuck2002 View Post
I just took my Pogo apart. I yanked on the bottom of the pink stand near the bottom pulling straight out the front of the device. It made an ugly snapping sound and came apart. Then the clear sleve comes off and the two white halves come apart easily.
I am left with some plastic tabs that broke off when I yanked the front off. It went back together ok though.
Inside mine, there was nothing exciting. No SATA jack, no heatsinks on the chips, nothing really but a board and a small power supply.
I did take that opportunity to black tape the power LED though, and put it all back together.
Did you see the JTAG and serial pinouts in yours?
http://www.pogoplugged.com/forum/thr...2-Pink-board./
I'd bring the serial out of the case if you have some hardware laying around.
__________________
Heat

skyking is offline   Reply With Quote
Old 08-16-2011, 11:24 AM   #25
chuck2002
Senior Member
 
Join Date: Feb 2002
Posts: 467
Default

Quote:
Originally Posted by TBSN View Post
I wish they took the whole "plug" computer thing less literally because wallwarts can be a PITA.

Quick question regarding the writeup at the beginning; The instructions on the site you are referencing for installing squeeze right off the bat won't work with the pogoplug? I just want to make sure because otherwise it would be easier just do the squeeze install mentioned here: http://jeff.doozan.com/debian/
No, unless he redid them. There was some package authentication issues that I experienced following those squeeze instructions. I did some looking on the forum and the solution was a different script, or install Lenny first.
I decided to go the Lenny and then upgrade route to get around this problem.
chuck2002 is offline   Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -5. The time now is 12:57 PM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.