JMRI Software on Raspberry Pi

Started by GWR-Kris, February 19, 2013, 11:23:19 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

red_death

Alternatively if that scares you  :no: then you might want to try this script: https://github.com/proffalken/JMR-Pi

Cheers, Mike



GWR-Kris

Quote from: red_death on March 08, 2013, 02:27:07 PM
You need to set up your Pi first and get that working. There are plenty of guides via the R Pi site/forum.

Then have a look in the JMRIusers Yahoo group.

Basically install Java via apt-get.
In command line do Startx and open up the Pi's browser (midori?).
Download and extract JMRI on the Pi. Run PanelPro or DecoderPro

You will need some basic knowledge of Linux to get started, but all the info is out there on the web.

PS you shouldn't be downloading JMRI on your PC.

Cheers, Mike

will give it another go tonight I installed the Raspian software thats all running. but for some reason when i go to the JMRI site it wont allow me to dowload the linux software. SO i basically downloaded it to the PC and copied it across.

The java i did that as well using 1.8.0 and that worked as i used it to run a minecraft server.

MikeDunn

Quote from: red_death on March 08, 2013, 02:27:07 PM
PS you shouldn't be downloading JMRI on your PC.
Why  :confused2:

If the RasPi isn't set up for internet access, how do you suggest he gets JMRI ?

red_death

Because really you want to be a) learning how to do things on Linux and b) you really need the Pi to be connected to the web (at least during set up) so that you can most easily get updates (for the Pi) and the right versions of things. 

Not sure why you would *not* have the Pi connected to the web when you were setting it up...



MikeDunn

I agree re learning about Linux - but that is more a 'this is the preferred way' rather than the 'thou must' your original post implied.  I was curious if there was a 'must' reason (not being a Linux neophyte let alone an expert ... !).  I am still of the opinion that JMRI for the RasPi can be d/loaded via a PC though; not heard anything opposing that.

As to the 'net connection - well, if the OP doesn't have a wireless dongle for the RasPi and it's a problem to locate a RasPi setup (screen etc) to where the router is ...  That's the situation I have (but it will be resolved when I get around to buying more kit for the RasPi; maybe next month).  It's not insurmountable - but it is a lot of aggro (and, truth be told, is a large part of why my RasPi is mainly sitting in my study and is not controlling a layout yet).

Mike

GWR-Kris

right just an update have install java from http://jdk8.java.net/fxarmpreview/index.html

and have managed to unzip the jmri package. but now It wont seen to work in the RPi interface. As im new to RPi and Linux unless something is written down do a b c etc I got lost if something is wrong. as there is currently no one source of information about this.

GWR-Kris

oh ignore me lol. sorted it now.

kirky

Ok, I'm bumping this cos I'm getting desperate.
On my pi I've installed raspbian, run the terminal and installed Git etc.
As expected, the script gave me an IP address and port to log Ito a vnc viewer.
Here's the problem: my vnc viewer on the iPad just won't do anything other than time out. Vnc viewer works for other connections/machines.
I'm no expert in vnc or Linux for that matter so any offerings will b appreciated.

Cheers
Kirky
Northallerton will make its next public appearance will be at Perth model railway show https://smet.org.uk/show/layouts/
June 24/25 2023.

Layout: Northallerton: http://www.ngaugeforum.co.uk/SMFN/index.php?topic=1671.msg16930#msg16930

www.northallertonngauge.co.uk

Cleveland Model Railway club website: www.clevelandmrc.club

MikeDunn

Do I have this right ...

You have the RasPi working fine with VNC from eg a Windows box, but your VNC app for iPad fails to access it ?  Sounds like you need a better app ...

Personally, I'd throw away the iCostTooMuch & use Android  :P

Mike

kirky

#24
Hi Mike
Its cos of you that im in this mess! >:( if you hadn't mentioned the pi inanother post I might have just forgotten about it altogether. Thanks mate :goggleeyes:

Anyway, I must have described the problem badly.
The iPad vnc viewer works fine when connected to windoze box or my Ubuntu box. But not with the pi.
As far as I can tell, the Git etc install loads a vnc server onto the pi, doesn't it?
I have the IP address and port I need, but I'm unsure about the name I enter. Is that any name?
I'm using vnc viewer for he iPad ( which might be expensive but it's wot I have)

Cheers
Kirky
Northallerton will make its next public appearance will be at Perth model railway show https://smet.org.uk/show/layouts/
June 24/25 2023.

Layout: Northallerton: http://www.ngaugeforum.co.uk/SMFN/index.php?topic=1671.msg16930#msg16930

www.northallertonngauge.co.uk

Cleveland Model Railway club website: www.clevelandmrc.club

PaulCheffus

Quote from: kirky on July 31, 2013, 10:43:06 PM
Hi Mike
Its cos of you that im in this mess! >:( if you hadn't mentioned he pi I another post I might have just forgotten about it altogether. Thanks mate :goggleeyes:

Anyway, I must have described the problem badly.
The iPad vnc viewer works fine when connected to windoze box or my Ubuntu box. But not with the pi.
As far as I can tell, the Git etc install loads a vnc server onto the pi, doesn't it?
I have the IP address and port I need, but I'm unsure about the and I enter. Is that any name?
I'm using vnc viewer for he iPad ( which might be expensive but it's wot I have)

Cheers
Kirky

Hi

I had to specifically start the VNC service on my Pi. You can set the VNC service to automatically start at boot but I am at work at the moment so don't have the details of the script I used or where to put it for it to run automatically.

Cheers

Paul
Procrastination - The Thief of Time.

Workbench thread
https://www.ngaugeforum.co.uk/SMFN/index.php?topic=54708.msg724969#msg724969

kirky

Hi Paul
Thanks for that. Yes I've now got the Rpi to connect to the vnc viewer on the iPad. But when I try to connect using the IP address suggested at the end of the script from JMR-Pi then I get 'couldn't resolve on port' message. It seems the port isn't rcognised.

Cheers
Kirky
Northallerton will make its next public appearance will be at Perth model railway show https://smet.org.uk/show/layouts/
June 24/25 2023.

Layout: Northallerton: http://www.ngaugeforum.co.uk/SMFN/index.php?topic=1671.msg16930#msg16930

www.northallertonngauge.co.uk

Cleveland Model Railway club website: www.clevelandmrc.club

PaulCheffus

Quote from: kirky on August 01, 2013, 11:10:01 AM
Hi Paul
Thanks for that. Yes I've now got the Rpi to connect to the vnc viewer on the iPad. But when I try to connect using the IP address suggested at the end of the script from JMR-Pi then I get 'couldn't resolve on port' message. It seems the port isn't rcognised.

Cheers
Kirky

Hi

You should be using the IP address of your Pi instead of the address in the script.

Cheers

Paul
Procrastination - The Thief of Time.

Workbench thread
https://www.ngaugeforum.co.uk/SMFN/index.php?topic=54708.msg724969#msg724969

kirky

Ok, this is confusing. :dunce:
As I said, I can actually see and use the rpi via vnc. However, the install for JMR-pi clearly states that I need to use the specific IP and port. The IP generates /is/ the IP of he RPi. It's the port that is different and that isn't resolved.
I've tried this three times now and Complete new installs on different new sd cards, all resulting in the same issue. The port isn't recognised. (I know I didn't make that clear before, that's cos I hadn't realised that before!)
Do you think I should be able to see jmri on the RPi (without going through vnc)?

Thanks for your help, much appreciated.
Kirky
Northallerton will make its next public appearance will be at Perth model railway show https://smet.org.uk/show/layouts/
June 24/25 2023.

Layout: Northallerton: http://www.ngaugeforum.co.uk/SMFN/index.php?topic=1671.msg16930#msg16930

www.northallertonngauge.co.uk

Cleveland Model Railway club website: www.clevelandmrc.club

PaulCheffus

Quote from: kirky on August 01, 2013, 01:00:49 PM
Ok, this is confusing. :dunce:
As I said, I can actually see and use the rpi via vnc. However, the install for JMR-pi clearly states that I need to use the specific IP and port. The IP generates /is/ the IP of he RPi. It's the port that is different and that isn't resolved.
I've tried this three times now and Complete new installs on different new sd cards, all resulting in the same issue. The port isn't recognised. (I know I didn't make that clear before, that's cos I hadn't realised that before!)
Do you think I should be able to see jmri on the RPi (without going through vnc)?

Thanks for your help, much appreciated.
Kirky

Hi

Ah I've never used JMRI on a Pi so I'm in the dark regarding the scripts and I assumed that was an example. What does the port look like? Is it a number like 5550 or is it a name like TTY001?

Cheers

Paul
Procrastination - The Thief of Time.

Workbench thread
https://www.ngaugeforum.co.uk/SMFN/index.php?topic=54708.msg724969#msg724969

Please Support Us!
May Goal: £100.00
Due Date: May 31
Total Receipts: £22.34
Below Goal: £77.66
Site Currency: GBP
22% 
May Donations