Other Help Topics :: Using DSL for an LCD Picture-Frame project



Do you have some type of pop-up blocker running? They open in a new window. I've tested them using Opera and Internet Explorer and works under both for me.

Anyway, tune2fs -j /dev/hda1 didn't work. I pulled the plug and when I rebooted it was mad. After a second reboot it ws ok but I still don't the error. This is the last hurdle. If I could figure out a way to make the filesystem survive having the plug pulled I'd be set.

Perhaps a script to automatically reboot after it scans for errors...
Like:
Code Sample
# A return of 2 or higher means there were serious problems.
if [ $RC -gt 1 ]; then
       echo "$STRING: Failed"
       echo "*** An error occurred during the file system check."
       echo "*** Dropping you to a shell; the system will reboot"
       echo "*** when you leave the shell."
       export PS1="(Repair filesystem) \# # "
       sulogin
       echo "Unmounting filesystems"
       umount -a
       mount -n -o remount,ro /
       echo "Automatic reboot in progress."
       reboot -f
fi
to this
Code Sample
# A return of 2 or higher means there were serious problems.
if [ $RC -gt 1 ]; then
   export PS1="(Repair filesystem) \# # "
   if [ $RC -lt 4 ]; then
       echo "$STRING: Repaired."
       echo "*** Reboot required. The system will reboot in 30 seconds."
       sulogin -t 30
   else
       echo "$STRING: Failed"
       echo "*** An error occurred during the file system check."
       echo "*** Dropping you to a shell; the system will reboot"
       echo "*** when you leave the shell."
       sulogin
   fi
   echo "Unmounting filesystems"
   umount -a
   mount -n -o remount,ro /
   echo "Automatic reboot in progress."
   reboot -f
fi
borrowed from SmoothWall Express boot script
Perhaps the DSL guys can figure out a way to have it reboot after a scan...this way even if it does bomb..it will reboot and continue on by itself

It looks like the file might be /etc/init.d/mountall.sh but I might be wrong...one of the other supergurus might know where it is located better

Brian
AwPhuch

this is a seriously cool sounding project :)
we should have a special page where people can put all the wierd projects done with dsl (another forum?)

Hi,
Just wanted to add $0.02 to the electronic pictureframe conversation.  I saw my MedCosm Pictureframe project mentioned and it runs very well with DSL.  I will add some directions on installing using frugal_lite in the near future, but the DSL board here is a much better resource.  

Anyway, regardless of what program is used for running the slideshow, my program may be useful in setting up an electronic pictureframe because it offers the ability to resave a directory of pictures in a smaller resolution, increased compression (decreased quality), and with a date-stamp superimposed on the picture.  This is particularly useful for compressing your high-quality bit-crushing 5.1 megapixel images down to something more reasonable for use on that Pentium 133 with 810 MB hard-drive and 800x600 display that you were making into a holiday gift for Aunt Bertha.  The program is FOSS released under the GPL.

Good luck with your electronic pictureframes.  :)

I saw the Medcodm frame and thought about that program.

Feh seems to be doing a good job. And since I came across a 4gb drive I'm no longer worried about file space. Since my pictures come off my windoze box I use Irfanview to barch resize before I burn them to CD. But, I like Medcosm idea, too bad it wasn't written in assembly ;)

A couple updates need to be made to that write up

Version 0.8.4 has automatic login if you don't select multi-user mode. I'm not sure when this was added.

Quote

Lastly, you could edit /etc/fstab to mount the root disk as readonly so that the system doesn't mind if the power is turned off at any time. I didn't do this since the ext3 filesystem seems pretty robust and I might want to update the pictures on the laptop occasionally.


The ro setting in fstab doesn't appear to work. I was never able to get /dev/hda1 to boot readonly so I used tune2fs -j to make it ext3 and now if I power down it just takes and extra reboot to get going again.

I'm looking into AwPhuch's idea and wondering if /etc/init.d/knoppix-autoconfig is the right place. Who's the GURU to point in the right direction?

[edit nov 13]

Original thread from Awphuch's post about the reboot

Next Page...
original here.