Tiny Core Linux

Tiny Core Base => TCB Talk => Topic started by: suxi on June 14, 2012, 12:03:21 PM

Title: Where is the /home/TC/.xsession file?
Post by: suxi on June 14, 2012, 12:03:21 PM
Hello everyone!

I would like TC to run a slide show automatically after boot and have currently chosen feh for this task.

The wiki points out this startup script order:

[BootLoader → bzImage → tinycore.gz] → init → inittab → init.d/rcS → tc-config → ( dhcp.sh & tce-setup & restore.sh & bootsync.sh → bootlocal.sh) → init → /root/.profile → /home/tc/.profile →→→ /usr/bin/startx → ( xsetup.sh) → /home/tc/.xsession → ( Xvesa, jwm & wbar & /home/tc/.X.d/*.* )

So I think I need to add feh -F- D 3 /mnt/sda1/pics to the .xsession file in /home/tc in order to start X Windows first. Unfortunately this file doesn't exist. I have tried to add the command line to bootlocal.sh but although I run a backup after editing the file it reverts back to its original state after rebbot.

I would be greatfull for any help. Maybe you could also suggest another lightweight image viewer which can run a slideshow without the need for X Window such as Mplayer for videos.

Thanks a lot

suxi, still excited about his discovery of Tiny Core :)
Title: Re: Where is the /home/TC/.xsession file?
Post by: gerald_clark on June 14, 2012, 12:34:00 PM
Add a scritpt  /home/tc/.X.d/feh.sh

#-----------------------------------
feh -F- D 3 /mnt/sda1/pics &
Title: Re: Where is the /home/TC/.xsession file?
Post by: suxi on June 18, 2012, 06:50:39 AM
Thank you Gerald, that did the trick!

Can you recommend a viewer which doesn't require the Xserver to be started?

Best ...

suxi
Title: Re: Where is the /home/TC/.xsession file?
Post by: curaga on June 18, 2012, 07:48:52 AM
fbv works in the framebuffer.
Title: Re: Where is the /home/TC/.xsession file?
Post by: suxi on June 18, 2012, 08:45:49 AM
Thanks a lot. Searching for fbv I also found fim. I'll look into both of them.

fbv — framebuffer image viewer
http://s-tech.elsat.net.pl/fbv/ (http://s-tech.elsat.net.pl/fbv/)

fim — highly customizable and scriptable framebuffer image viewer based on fbi
http://www.autistici.org/dezperado/fim/ (http://www.autistici.org/dezperado/fim/)

EDIT: fbv works but unfortunately clears the screen before loading the next image which results in a black screen for a second or so. If I don't clear the screen I can only use full screen pictures, because new pictures with different aspect ratios won't cover the previous picture. Such a pity ;)