ncsuapex
02-14-2006, 10:27 AM
I've been working on a digital picture frame for a while now and have used several other "live" Linux Cds with no success. I did manage to get one working using DOS but I didn't like the functions of the program I used for the slideshow. Thanks to Slax and all the help I've gotten from the Slax forum I have a working Slax Digital Picture Frame, at least from the software side. I need to take my working DPF apart and reconfigure the hardware now that I have it working for Slax.
I downloaded the follow files:
Slax 5.0.6 from http://merlin.fit.vutbr.cz/mirrors/slax/SLAX-5.0.x/
Quick Image Viewer from http://slax.linux-live.org/modules.php?category=graphics&id=312&name=Quick+Image+Viewer
vfu from http://slax.linux-live.org/modules.php?category=console&id=313&name=vfu
No_CD_Ejection_2_0.mo from http://slax.linux-live.org/modules.php?category=other&id=604&name=No_CD_Ejection_2_0.mo
I mounted the Slax ISO to a directory I made on my Linux box:
mount -o loop -t iso9660 slax-5.0.6.iso /mnt/iso
Because I mounted the ISO as read only I had to copy the entire directory into another directory to be able to write to it.
mkdir /mnt/slaxconfig
cp -R /mnt/iso /mnt/slaxconfig
Next was to add the modules to the modules directory
Next I created a line in the rootcopy/etc/rc.d/rc.local file to make a directory for the usb device upon boot.
mkdir /mnt/sda1_removable
Next line is to mount the usb device upon boot
mount -o /dev/sda1 /mnt/sda1_removable
I mount the USB as read only so there is no data corruption when you turn the DPF off or in case of power failure.
Next was to create a script in the rootcopy/root/.kde/Autostart directory to autostart the slideshow after KDE starts.
Contents of the script, which I called myss.ph
#!/bin/bash
# script to start slide show
qiv -srfid 60 /mnt/sda1_removable/*.jpg
Then I made my new ISO.
./make_iso.sh /tmp/myss.iso
Next I copied the ISO to my usb thumbdrive so I could copy it to my windows machine to make the rest of the modifications in Myslax as I did not know how to make them otherwise.
In Myslax creator I set the option for GUI, no harddrive and no pcmcia, etc.
after I created the ISO I burned the ISO in Myslax creator and now I have a ISo for a Digital Picture frame.
This should work with no modifications. All you have to do is put your .jpg files on your thumbdrive. Make sure they file extension(jpg) are all lower case. When ever you want to change the files just power off the device, pop the USB out, connect to your PC, copy pictures over, put USB thumb drive back into the device and power on!
I plan to make some modifications to remove any unused modules,etc, so that it boots quicker. If anyone wants this ISO please feel free to ask.
I downloaded the follow files:
Slax 5.0.6 from http://merlin.fit.vutbr.cz/mirrors/slax/SLAX-5.0.x/
Quick Image Viewer from http://slax.linux-live.org/modules.php?category=graphics&id=312&name=Quick+Image+Viewer
vfu from http://slax.linux-live.org/modules.php?category=console&id=313&name=vfu
No_CD_Ejection_2_0.mo from http://slax.linux-live.org/modules.php?category=other&id=604&name=No_CD_Ejection_2_0.mo
I mounted the Slax ISO to a directory I made on my Linux box:
mount -o loop -t iso9660 slax-5.0.6.iso /mnt/iso
Because I mounted the ISO as read only I had to copy the entire directory into another directory to be able to write to it.
mkdir /mnt/slaxconfig
cp -R /mnt/iso /mnt/slaxconfig
Next was to add the modules to the modules directory
Next I created a line in the rootcopy/etc/rc.d/rc.local file to make a directory for the usb device upon boot.
mkdir /mnt/sda1_removable
Next line is to mount the usb device upon boot
mount -o /dev/sda1 /mnt/sda1_removable
I mount the USB as read only so there is no data corruption when you turn the DPF off or in case of power failure.
Next was to create a script in the rootcopy/root/.kde/Autostart directory to autostart the slideshow after KDE starts.
Contents of the script, which I called myss.ph
#!/bin/bash
# script to start slide show
qiv -srfid 60 /mnt/sda1_removable/*.jpg
Then I made my new ISO.
./make_iso.sh /tmp/myss.iso
Next I copied the ISO to my usb thumbdrive so I could copy it to my windows machine to make the rest of the modifications in Myslax as I did not know how to make them otherwise.
In Myslax creator I set the option for GUI, no harddrive and no pcmcia, etc.
after I created the ISO I burned the ISO in Myslax creator and now I have a ISo for a Digital Picture frame.
This should work with no modifications. All you have to do is put your .jpg files on your thumbdrive. Make sure they file extension(jpg) are all lower case. When ever you want to change the files just power off the device, pop the USB out, connect to your PC, copy pictures over, put USB thumb drive back into the device and power on!
I plan to make some modifications to remove any unused modules,etc, so that it boots quicker. If anyone wants this ISO please feel free to ask.