AVS › AVS Forum › Video Components › Home Theater Computers › HTPC - Linux Chat › lightweight linux distro for picture frame
New Posts  All Forums:Forum Nav:

lightweight linux distro for picture frame

post #1 of 18
Thread Starter 
I need a lightweight linux distribution for a picture frame. Its sole purpose in life will be to boot, and run the program feh to show a slideshow of the pictures on the flash drive or possibly from the internet.

Requirement: the program feh.

I would just use Ubuntu because that's what I'm familiar with, but I would have to buy a 4GB compact flash card even for Xubuntu because it requires 2.8GB. I would like to be able to install on a 1GB card, to save money.

I looked at DSL but by default it doesn't have apt-get, so I couldn't install feh. I'm a total linux noob, so I didn't know how else to install it.
post #2 of 18
Maybe you should try Knoppix. It fits on a CD but the link I just posted tells you how to install it to a pen drive.

Knoppix is based on Debian, so it uses .deb packages and apt-get like Ubuntu. For instance, here are the .debs for feh.
post #3 of 18
Thread Starter 
knoppix is big though. The site says to have a 1GB or larger USB drive. My computer can't boot from USB so I have to use a 1GB CF card adapter.

I think DSL is easy to have use apt now that I googled it. I'll try it again I think. then I can hopefully just apt-get feh.
post #4 of 18
I assume you'll be making a DIY frame from an old notebook?

http://www.risacher.org/pfl/
post #5 of 18
Thread Starter 
That won't work. I don't have an optical drive or internet access and my specs are very low <1GB hdd space, 128mb ram. I think DSL will work though; after some googling it seems it's pretty easy to enable apt. Then I can just install feh and live happily ever after.
post #6 of 18
A 4GB CF card can be had for under 15$. Is it REALLY worth it to bother for so little money?!
-Trouble
post #7 of 18
post #8 of 18
Maybe you should create your own "Live CD", which you can install on the CF card.

http://www.linux-live.org/

Edit: Here's another How-To that I found:

https://help.ubuntu.com/community/Li...ionFromScratch
post #9 of 18
Thread Starter 
Quote:
Originally Posted by Troubleshooter View Post

A 4GB CF card can be had for under 15$. Is it REALLY worth it to bother for so little money?!
-Trouble

Available where? The cheapest I found was the MicroCenter bulk CF cards, and they are $10 for 1GB and $15 for 2GB.

@DSL:

I have DSL installed and it's running pretty good, I just need feh. So then I ran into my next problem...the machine doesn't have an internet port. None. I think it had a docking station and the ethernet port was on that. So I can't even connect to the internet to try to download packages or enable apt. And DSL has the 2.4 kernal so I can't compile feh on this machine and copy it over either.

I think I'll grab my USB-to-CF adaptor from work tomorrow and try to boot into the CF card from a connected computer so I can download feh or enable apt. But really, this is turning out to me way more complicated that in should be. Maybe I should have sprung for a 4gb card, and just used xubuntu. But that seems like so much waste. Maybe I could just do a basic install, and add x? How big do you think that would be?
post #10 of 18
Newegg no less! One of them was like 12$ and there were others under 15$ as well.
-Trouble
post #11 of 18
Thread Starter 
I didn't want to mailorder, though.

I gave up on DSL and installed a command-line Hardy system. I used a connected computer and a CF adaptor. I didn't do any stripping down after installing a command line system, then I basically just apt-get'd xorg and feh. Feh runs fine without a window manager.

The problems I have now are that I need it to auto-log me in, because I won't have a keyboard. I did a bit of searching but didn't find much.

I also need to place my 'startx' command somewhere, I'm not sure where.

And then, I need a permanent path for my 'start feh and play pictures' script, but I also need it to be on a flashdrive. So I think I might have to like add a 'mount flashdrive on boot' script in there somewhere or put it in the fstab or something. I'm not sure if I'll be able to remove and reinstall the flashdrive (with updated pictures) with the system up and running, but I would like to.

Apparently a commandline Hardy install and X fit on a 1GB flashdrive, but how can I check my free space? I'm used to like, using konqueror or system monitor or something.
post #12 of 18
Code:
df -h
will give you a quick look at the space on all mount points.
post #13 of 18
Quote:
Originally Posted by Daravon View Post

I gave up on DSL and installed a command-line Hardy system. I used a connected computer and a CF adaptor. I didn't do any stripping down after installing a command line system, then I basically just apt-get'd xorg and feh. Feh runs fine without a window manager.

The problems I have now are that I need it to auto-log me in, because I won't have a keyboard. I did a bit of searching but didn't find much.

I also need to place my 'startx' command somewhere, I'm not sure where.

And then, I need a permanent path for my 'start feh and play pictures' script, but I also need it to be on a flashdrive. So I think I might have to like add a 'mount flashdrive on boot' script in there somewhere or put it in the fstab or something. I'm not sure if I'll be able to remove and reinstall the flashdrive (with updated pictures) with the system up and running, but I would like to.

Since "startx" is actually a shell script, you can place your 'start feh and play pictures' script in it at the end.

I don't think you can autologin the command prompt, but you should be able to put "startx" in a bash startup script, possibly /etc/profile, but I haven't tested this. Optionally (or if that doesn't work), "startx" can go in a system startup script, although I don't know which one, because I haven't had a chance to look through the debian startup procedure.

Not sure about flashdrive automount...maybe a udev rule or something? P.S., I found this on the subject (check the last post before digging through the thread) --> http://saintsreport.com/forums/archi...p/t-23340.html
post #14 of 18
I did a quick browse of Google, and it appears Ubuntu Hardy may include rc.local in its boot sequence. On many systems, in particular RedHat-flavored distros, this is the last script run when services are activated at boot. Any commands you put there will be automatically executed by the root user. This approach avoids the need to login as a normal user before running the slideshow. The drawback is that the application will be running as root, but that might not be all that important in a standalone picture frame.

Debian, in general, doesn't use rc.local, and some Ubuntu flavors apparently don't either. If you don't have such a script, you might take a look at this.
post #15 of 18
post #16 of 18
Here's a thorough how-to on getting a DPF up and running using DSL. I had it running nicely on an old Toshiba laptop without much hassle. Very light weight

ww.thewares.net/item/33

(don't forget to add the missing w)
post #17 of 18
Chapter 15 of "The Official Damn Small Linux(R) Book: The Tiny Adaptable Linux(R) That Runs on Anything" is called "Running a digital media frame with DSL"
post #18 of 18
Thread Starter 
What I ended up doing is a commandline Ubuntu install, with X but no window manager, which took only about 650Mb. Then I followed a internet guide on how to set up auto-login. Then I made a cron job that runs 'startx' every minute. Startx runs xinitrc, which runs Xsession, which is the actual X-starting-up-script. So in Xsession I bunged a script of my own that mounts the flashdrive to a directory in my home, and then runs feh in fullscreen mode, with a 20 second delay, and hiding the mouse pointer. There's currently no way to startx without running the slideshow, and running startx every minute is kinda kludged, but I guess it doesn't matter since it boots straight to the pictures now and has been running for a few days already.
New Posts  All Forums:Forum Nav:
  Return Home
  Back to Forum: HTPC - Linux Chat
AVS › AVS Forum › Video Components › Home Theater Computers › HTPC - Linux Chat › lightweight linux distro for picture frame