Page 2 of 2 FirstFirst 12
Results 21 to 22 of 22

Thread: JMRI on a Raspberry Pi 2

  1. #21
    Join Date
    Apr 2019
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default Auto starting DecoderPro on a Raspberry Pi

    Quote Originally Posted by TwinDad View Post
    I came back across this thread while setting up a Raspberry Pi Zero W for my club, and since it is both (a) very good and (b) linked to from the official JMRI website, I thought I'd add a few updates.

    In the intervening three years since @Sherman made the original post, updates to both JMRI and Raspbian OS have made this process SIGNIFICANTLY easier.

    With the current version of Raspbian ("Stretch") and the most recent versions of JMRI (certainly 4.14, most likely any 4.x release), the install boils down to this:

    I just bought a RPi 3 Model B and got it up and running. Like Sherman, I would like to run it headless, but without the need to log into the Pi remotely to start DecoderPro.

    I have gone around in circles chasing down threads on how to add programs for start-up at boot time, but have had no success.

    I also added icons to the desktop, but when I d-click on them, Pi asks if I want to execute/execute in terminal/open/cancel, so that doesn't work as expected. Same happens if I d-click on the file in "file manager". So, I don't know if that is why all of my auto-start attempts have been failures so far.

    So, I am curious, has anyone come up with a fool proof way to get this to start without human intervention?

    BTW, thanks for all the new info regarding what has changed since Sherman made his report.

  2. #22
    Join Date
    Mar 2016
    Posts
    74
    Thanks
    65
    Thanked 67 Times in 44 Posts
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)

    Default

    I'm sure that there are multiple methods to do this and various reasons for choosing a particular solution. I found this page which illustrates 5 methods ... https://www.dexterindustries.com/how...pi-at-startup/

    My suggestion would be to use the '.bashrc' option. This is very similar to the old windows 'autoexec.bat' if you can remember back that far.

    I don't have this setup on my machine (it is on the todo list though) so I can't be specific. You need to work out the command line to launch the DecoderPro - try looking in the properties of the shortcut icon. I'm guessing it by be something like '/home/pi/JMRI/DecoderPro' (

    T (Linux is 'case sensitive' so est this in a terminal window, so you know you have it right. The real trick it to add an '&' to the end of the command. This is to put the program in 'background' mode. This allows the .bashrc script to finish its thing.

    I hope that helps.

Similar Threads

  1. JMRI MRC and Mac
    By ChicagoNW in forum DCC
    Replies: 4
    Last Post: 23rd Oct 2014, 08:58 PM
  2. Jmri + mrc!
    By kalbert in forum DCC
    Replies: 7
    Last Post: 4th Jul 2014, 08:32 PM
  3. JMRI- Too much fun!
    By Sherman in forum DCC
    Replies: 32
    Last Post: 11th Mar 2012, 10:47 PM
  4. Programing with JMRI & PR3
    By blf in forum DCC
    Replies: 6
    Last Post: 2nd Mar 2012, 12:29 PM
  5. JMRI 2.13.1 Released
    By TwinDad in forum Software
    Replies: 15
    Last Post: 24th Sep 2011, 08:18 AM

Tags for this Thread

Posting Permissions

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