Sunday, February 25, 2007

Digital Picture frame

Slax DPF version 2-25-2007 with SSH enable


Slax 5.1.8 rc

I can not give out this ISO as I have added personal information and I do not have the time to go through it to remove it all. I will answer questions if you have any.


This time I burned the working ISO to a CD. files listed in the directory "rootcopy" need to be put in the rootcopy folder on your Slax ISO and burned to your CD. For more info on how to use rootcopy, search the forums. (http://www.slax.org/forum/)


Next was to create a script in the rootcopy/root/.kde/Autostart directory to autostart the slideshow after KDE starts.

startss.ph
_______________________________________
#!/bin/bash
#script to start slide show from USB device

/mnt/sda1_removable/ss/slideshow.ph
_______________________________________


Script to start the wireless connection after KDE starts

wificonfig.sh
_______________________________________
#installs Netgear WPC11 V4 card
# ndiswrapper to add wpc11 v4
ndiswrapper -i /wpc11v4/net8180.inf
ndiswrapper -m
modprobe ndiswrapper
dhcpcd -d -t 10 wlan0
sleep 5

ifconfig wlan0 up
ifconfig wlan0 192.168.1.9 netmask 255.255.255.0
route add default gateway 192.168.1.1
echo "nameserver 192.168.1.1" >> /etc/resolv.conf
iwconfig wlan0 essid "ssid"


* for "ssid" put your wireless ssid, remove quotes
___________________________________________________________




I added "autoexec=startx" to isolinux.cfg to autostart the laptop into kde


added rc.sshd to rootcopy/etc/rc.d make sure its executable
This will allow you to ssh into you DPF to make changes once its done

copied sshd_config to rootcopy/etc/ssh
changed the line to not permit root login remotely.
PermitRootLogin no

created a guest user to log in remotely, you can su - to root once youre logged in if you need root access
after I created a new guest account I copied the following files from /etc to rootcopy/etc
passwd passwd- shadow shadow-



If your USB drive doesnt auto mount put a line in rc.local to mount it when it boots

rootcopy/etc/rc.d/rc.local
_____________________________________________________________________________
#!/bin/sh
#
# /etc/rc.d/rc.local: Local system initialization script.
#
# Put any local setup commands in here:


#fileswap /mnt/hda1/swap 350
mkdir /mnt/sda1_removable

mount -t vfat /dev/sda1 /mnt/sda1_removable


_______________________________________________________________________________



rootcopy/etc/rc.d/rc.6

commented out 2 lines to keep the CD from ejecting and also to stop asking for user to press enter to reboot/shutdown
This way you can shutdown/reboot with out the CD ejecting and also without having to press any key.Also add the No Eject Cd

module to the modules folder

#echo -ne "Press Enter to $command "
#read junk



I had to adjust the following 2 files to get my screen resolution to 1024x768. Once I corrected it I put them in:

rootcopy/etc/x11

xorg.conf
xorg.conf-vesa


I wanted konqueror to load full screen with a weather radar loop. I also wanted to hide the menu bar and tool bars. Edit

rootcopy/opt/kde/share/apps/konqueror

konqueror.rc



Made directory /mnt/sda1_removable/ss/pics
this will hold my pictures on the USB drive.




/mnt/sda1_removable/ss/slideshow.ph
**************************************************************************************************

#!/bin/bash
# script to start slide show from USB device
# lines starting with # are ignored. To change the DPF from pictures to weather loops, uncomment out the loop you want

# Delays start of slideshow to give time for windows to start

sleep 35

# Starts the slideshow using Quick Image Viewer
# s states to start qiv in slideshow mode
# r states to play images in a random order
# f puts iamges in fullscreen
# i status bar off (will not show filenames)
# d delays each image in x seconds x being 10 in this case
# /mnt/sda1/* is the location the images should be in
qiv -sritfmd 30 /mnt/sda1_removable/ss/pics/*


# USA Radar Loop
#kstart --fullscreen konqueror ".intellicast.com/WeatherImg/SatelliteLoop/hiusa_None_anim.gif"

# Southeast Atlantic Radar Loop
#kstart --fullscreen konqueror ".intellicast.com/WeatherImg/SatelliteLoop/hiatlsat_None_anim.gif"

# NC Base Reflectivity Loop
#kstart --fullscreen konqueror ".intellicast.com/WeatherImg/BaseReflectivityLoop/rax_None_anim.gif"

# US Surface Analysis Radar
#kstart --fullscreen konqueror ".intellicast.com/WeatherImg/CustomGraphicLoop/sfcmap_None_anim.gif"

# US Radar Loop
#kstart --fullscreen konqueror ".intellicast.com/WeatherImg/RadarLoop/usa_None_anim.gif"


*****************************************************************************************************



You'll need to make changes for your network, etc. If you have any questions please feel free to ask PM me





File List:


rootcopy/etc

lilo.conf
passwd
passwd-
shadow
shadow-


rootcopy/etc/rc.d

rc.local
rc.sshd
rc.6


rootcopy/etc/ssh

sshd_config


rootcopy/etc/x11

xorg.conf
xorg.conf-vesa

rootcopy/home/guest123

rootcopy/opt/kde/share/apps/konqueror

konqueror.rc


rootcopy/root/.kde/Autostart

startss.ph
wificonfig.sh


rootcopy/root/.kde/share/config

kickerrc


rootcopy/ss

slideshow.ph
startss.ph
startwifi.ph


rootcopy/wpc11v4

autorun.inf
dns
ipinfo
key
lilo.conf.bak
net8180.inf
netwg11t.inf
rmount.exe
rtl8180.sys
startwifi
wificonfig.sh