Results 1 to 3 of 3

Thread: modify .xinitrc file to launch serviio server

  1. #1

    Question modify .xinitrc file to launch serviio server

    I've followed these instructions to build a new script to launch a media server at login. This script is in /Home. The modified .xinitrc is based on the included template in /Home.
    HTML Code:
    http://suseroot.com/suse-linux-tweaks/load-startup.php
    Code:
    # Add your own lines here...
    #
    
    #Start the Serviio server first then the console
    serviio.sh &
    serviio-console.sh &
    Also I added the serviio .sh files in /bin as instructed in another opensuse resource. I can't relocate it but it says use /bin for users items.

    The code doesn't work as expected but I'm sure it is behaving as it should.
    If understand correctly the init.d in /etc hands off to the /Home/bin for user scripts, then what's there runs.
    But what I'm not getting is what directs my new .xinitrc script to find the app in /Home/bin/serviio/bin.

    Am I on the right track? I'm at a loss to figure out what my next search term should be.

  2. #2

    Default Re: modify .xinitrc file to launch serviio server

    It seems like I need to add a line in here after . /etc...
    [ # Source common code shared between the
    # X session and X init scripts
    #
    . /etc/X11/xinit/xinitrc.common
    ]
    to reference where the server files are.
    Something like:
    . /home/slmandr/bin/serviio-1.4/bin/serviio.sh
    . /home/slmandr/bin/serviio-1.4/bin/serviio-console.sh

  3. #3

    Default Re: modify .xinitrc file to launch serviio server

    Solved:
    Needed whole path in .xinitrc as:
    Code:
    #
    # Add your own lines here...
    #
    
    #Start the Serviio server first then the console
    
    /home/#USER/bin/serviio-1.4/bin/serviio.sh &
    /home/#USER/bin/serviio-1.4/bin/serviio-console.sh &
    *change #USER to your own whoami.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •