LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 03-13-2008, 03:45 PM   #1
tjk176
LQ Newbie
 
Registered: Mar 2004
Location: PA, USA
Distribution: still sampling, SUSE 10.3, Ubuntu, puppy, mythdora...
Posts: 19

Rep: Reputation: 0
using DSL to run pic frame script - not working


I'm trying to use DSL to make a digital picture frame. I've used some scripts from a few sites mainly this one http://www.thewares.net/item/33 . The instructions were for older versions of dsl. I'm using version 4.2.5 now. I need a script called at boot to run feh fullscreen and unclutter to remove the mouse cursor. I can't get it to work. The .xinitrc and cron_start_frame.sh are below. I'm not worried about using cron I just want the slideshow to turn on and run. Any help is greatly appreciated.

.xinitrc

# put X windows programs that you want started here.
# Be sure to add at the end of each command the &

KEYTABLE="$(getknoppixparam.lua KEYTABLE)"
DESKTOP="$(getoption.lua $HOME/.desktop wm)"
ICONS="$(getoption.lua $HOME/.desktop icons)"

umix -lf .umix 2>/dev/null

[ -f .mouse_config ] && sh .mouse_config &

# For non-US Keyboards
if [ ${KEYTABLE:0:2} != "us" ]; then
xmodmap -e "clear Mod4" -e "add Mod5 = Mode_switch" &
fi

[ "$ICONS" == "dfm" ] && /usr/bin/dfm &

# if egrep -qv lowram /proc/cmdline 2>/dev/null; then
# dillo /usr/share/doc/dsl/getting_started.html &>/dev/null &
# torsmo 2>/dev/null &
# fi

[ -f ".$DESKTOP.inc" ] && ~/".$DESKTOP.inc"
exec "${DESKTOP:=jwm}" 2>/dev/null

xset s off
noblank
xset s off

/usr/bin/aterm -T "Bash" -e /bin/bash &
#startx &
/home/dsl/frame/scripts/cron_start_frame.sh &
fluxbox 2>/dev/null


cron_start_frame.sh

#!/bin/sh
#
# Script to run Digital Picture Frame using Feh
# drware@thewares.net
#

# Change number below to the duration, in seconds
# for each photo to be displayed
DELAY="300"

# hide the cursor after 15 seconds
/usr/X11R6/bin/unclutter -idle 15 &

# Start slide show
/usr/bin/feh -qzrZF -D 120 /mnt/hda3/photos/ &

# Phone home and sync
# /home/dsl/frame/rsync.sh

exit 0
 
Old 03-15-2008, 05:12 AM   #2
Samotnik
Member
 
Registered: Jun 2006
Location: Belarus
Distribution: Debian GNU/Linux testing/unstable
Posts: 471

Rep: Reputation: 40
You don't need any window manager at all. Use a simple script to start X at a boot time, uncutter to hide mouse cursor, and fbsetbg with cron to set a wallpaper
 
Old 03-18-2008, 01:55 PM   #3
tjk176
LQ Newbie
 
Registered: Mar 2004
Location: PA, USA
Distribution: still sampling, SUSE 10.3, Ubuntu, puppy, mythdora...
Posts: 19

Original Poster
Rep: Reputation: 0
Thanks for the reply but I'm still lost. I don't really know how to write a script or get it to run at boot. I thought that I had one written that should work but how do I make it run at boot? You said I don't need a window manager but I don't know how to not have one. Thanks in advance if anyone can give any help.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Is a script, run at boot time from init.d, run with root authority? tmbrwolf53 Linux - Server 2 03-31-2007 09:15 PM
Flash 9beta AND Google desktop pic stopped working?? Adrian Baker Linux - Software 2 11-20-2006 04:54 AM
cannot run in frame buffer mode in gentoo Maverick1182 Linux - Newbie 1 07-31-2006 11:54 AM
calling a frame from another frame : JAVA randomx Programming 0 10-07-2004 03:49 PM
on Network Up Script run? On Battery power run script? v2-ncl Linux - General 0 12-08-2003 10:34 AM


All times are GMT -5. The time now is 06:25 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration