WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

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

Offline suxi

  • Newbie
  • *
  • Posts: 25
Where is the /home/TC/.xsession file?
« 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 :)
« Last Edit: June 14, 2012, 02:29:30 PM 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, 12:34:00 PM »
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, 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

Offline curaga

  • Administrator
  • Hero Member
  • *****
  • Posts: 11044
Re: Where is the /home/TC/.xsession file?
« Reply #3 on: June 18, 2012, 07: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, 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/

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, 11:05:49 AM by suxi »