WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: Where is the /home/TC/.xsession file?  (Read 2902 times)

Offline suxi

  • Newbie
  • *
  • Posts: 25
Where is the /home/TC/.xsession file?
« on: June 14, 2012, 09:03:21 AM »
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 :)
« Last Edit: June 14, 2012, 11:29:30 AM by suxi »

Offline gerald_clark

  • TinyCore Moderator
  • Hero Member
  • *****
  • Posts: 4254
Re: Where is the /home/TC/.xsession file?
« Reply #1 on: June 14, 2012, 09:34:00 AM »
Add a scritpt  /home/tc/.X.d/feh.sh

#-----------------------------------
feh -F- D 3 /mnt/sda1/pics &

Offline suxi

  • Newbie
  • *
  • Posts: 25
Re: Where is the /home/TC/.xsession file?
« Reply #2 on: June 18, 2012, 03: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

Offline curaga

  • Administrator
  • Hero Member
  • *****
  • Posts: 10969
Re: Where is the /home/TC/.xsession file?
« Reply #3 on: June 18, 2012, 04:48:52 AM »
fbv works in the framebuffer.
The only barriers that can stop you are the ones you create yourself.

Offline suxi

  • Newbie
  • *
  • Posts: 25
Re: Where is the /home/TC/.xsession file?
« Reply #4 on: June 18, 2012, 05: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/

fim — highly customizable and scriptable framebuffer image viewer based on fbi
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 ;)

« Last Edit: June 18, 2012, 08:05:49 AM by suxi »