开云体育


Re: Can't get PanelPro or DecoderPro to run under Linux Ubuntu #linux

 

On Wed, Apr 16, 2025 at 08:45 AM, Robert Heller wrote:
You just need to install openjdk-21-jre:

sudo apt install openjdk-21-jre

and you should be just fine.
That worked.? Thank you all for your help.? This is a great user group.
--
Tom


Re: Can't get PanelPro or DecoderPro to run under Linux Ubuntu #linux

 

No, it was probably installed by somerthing else that needed JAVA CLI.

It is often quite normal to have the headless version installed. In fact the
headless is needed by the headed version.

You just need to install openjdk-21-jre:

sudo apt install openjdk-21-jre

and you should be just fine.

At Wed, 16 Apr 2025 08:25:50 -0700 "Tom Myrick via groups.io" <jmri@...> wrote:


On Wed, Apr 16, 2025 at 06:59 AM, Dave Sand wrote:


Do the following command to see what you currently have installed.

dpkg -l | grep openjdk

Here is my result.? It does appear I have installed the "headless" version of java 21.? I have no idea what that means, but I guess I should not have installed it :)

--
Tom






--
Robert Heller -- Cell: 413-658-7953 GV: 978-633-5364
Deepwoods Software -- Custom Software Services
-- Linux Administration Services
heller@... -- Webhosting Services


Re: Can't get PanelPro or DecoderPro to run under Linux Ubuntu #linux

 

Tom,

You should be able to add the additional components for GUI support.

sudo apt install openjdk-21-jre

After you do that, you should have both entries as shown in my example.

Dave Sand



----- Original message -----
From: "Tom Myrick via groups.io" <jmri=[email protected]>
Subject: Re: [jmriusers] Can't get PanelPro or DecoderPro to run under Linux Ubuntu #linux
Date: Wednesday, April 16, 2025 10:25 AM

On Wed, Apr 16, 2025 at 06:59 AM, Dave Sand wrote:
Do the following command to see what you currently have installed.
?
dpkg -l | grep openjdk
?
Here is my result.? It does appear I have installed the "headless" version of java 21.? I have no idea what that means, but I guess I should not have installed it :)
?

?
--
Tom


Re: Can't get PanelPro or DecoderPro to run under Linux Ubuntu #linux

 

Yes:

marchhare% dir -l /usr/bin/java
lrwxrwxrwx 1 root root 22 Jan 28 2024 /usr/bin/java -> /etc/alternatives/java*
marchhare% dir -l /etc/alternatives/java
lrwxrwxrwx 1 root root 43 Jan 28 2024 /etc/alternatives/java -> /usr/lib/jvm/java-17-openjdk-arm64/bin/java*

man 8 update-java-alternatives

At Wed, 16 Apr 2025 16:59:57 +0200 "Heiko Rosemann via groups.io" <heiko.rosemann@...> wrote:


Tom and Dave,

I don't know Mint/Ubuntu/Debian, but I suppose there is a way to tell
the system which java version to use by default?

According to my google responses, you can run

update-java-alternatives --list

followed by

sudo update-java-alternatives --set /path/to/java/version

(with /path/to/java/version replaced by one of the outputs from the
first command)

Or alternatively:

sudo update-alternatives --config java

You may have to re-login afterwards.

All according to


Make sure to select a non-headless version in that step :)

Heiko

(On my Slackware machine, I'd manually change JAVA_HOME and PATH, but if
the alternatives-commands work, they probably are easier to access)

On 4/16/25 15:59, Dave Sand via groups.io wrote:
Tom,

The openjdk command installs both the headless version along with the
additional components to support GUI based apps such as JMRI.

Do the following command to see what you currently have installed.

dpkg -l | grep openjdk

Note: ?-l is dash el.

Here is the result on my Linux test system.
ii *openjdk*-11-jre:arm64
11.0.26+4-1ubuntu1~22.04? ? ? ? ? ? ? ? arm64? ? ? ? OpenJDK Java
runtime, using Hotspot JIT
ii *openjdk*-11-jre-headless:arm64
11.0.26+4-1ubuntu1~22.04? ? ? ? ? ? ? ? arm64? ? ? ? OpenJDK Java
runtime, using Hotspot JIT (headless)
ii *openjdk*-17-jre:arm64 ? ? ? ? ? ? ? ? ? ? ? 17.0.14+7-1~22.04.1
? ? ? ? ? ? ? ? arm64? ? ? ? OpenJDK Java runtime, using Hotspot JIT
ii *openjdk*-17-jre-headless:arm64? ? ? ? ? ? ? 17.0.14+7-1~22.04.1
? ? ? ? ? ? ? ? arm64? ? ? ? OpenJDK Java runtime, using Hotspot JIT
(headless)

Dave Sand


----- Original message -----
From: "Tom Myrick via groups.io" <jmri@...
<mailto:[email protected]>>
To: [email protected] <mailto:[email protected]>
Subject: Re: [jmriusers] Can't get PanelPro or DecoderPro to run under
Linux Ubuntu #linux
Date: Tuesday, April 15, 2025 11:27 PM

On Tue, Apr 15, 2025 at 09:16 PM, Dave Sand wrote:

It appears that you installed the headless version of Java. ?The
help page can be confusing.
All you need is the following command using the command line:
sudo apt install openjdk-17-jre

Will I need to uninstall the headless version of Java (I believe I
installed Java 21) or will that command line fix Java?
--
Tom

--
Robert Heller -- Cell: 413-658-7953 GV: 978-633-5364
Deepwoods Software -- Custom Software Services
-- Linux Administration Services
heller@... -- Webhosting Services


Re: SPEED used by train in automation

 

开云体育

Dear Mr nags

Thank you for the response.

I think you are describing what happens when you use automation via warrents.
I dont use warrents. ?I use dispatcher.
Does dispatcher function exactly like warrents?

My issue is as follows.
I have fast trains. When i create the train window i tell it to use 50% max speed.the train runs at ?a reasonable speed when it has 2 allocated blocks in front of it and slows down when it enters the first allocated blocks if the block in front of the 2 allocated blocks is occupied. It doesnt appear to change speed slowly but changes immediately upon entering the block. ?That speed may be half of its previous speed. My engines do not use momentum. It stops in the block before an occupied block instantly.

All this is exactly as it should be.

When i run 4 European engines i need the throttle to be set to 100% for them to run at a slow but tolerable speed. I use 100X% in creation. Now when they are asked to run at say half speed they move very very painfully slow to the point that they cant cross switches. ?Also they never recover their full speed and run ultra slow when they restart

I am trying to understand what variables dispatcher is calculating to determine speed and to find a way to let the fast trains run as they do but use speeds for the slow trains that keep the speed at 100% when its asked to slow down.

Tony




On Apr 16, 2025, at 1:16?AM, Nags via groups.io <snowy999@...> wrote:

?
On Wed, Apr 16, 2025 at 06:50 AM, AD wrote:
What script is the warrants looking at?
A warrant is the script. A warrant/script for running the train is recorded and can then be played back (i.e. drives the train).
?
The script is created assuming all signals and blocks are clear. All actions including throttle settings are timed from when the train enters each block.? This is how it knows the speed, using the time and length of block. This also allows for dynamic speed profiling, when a train traverses a block too slow or too fast when compared to the script.
Aspect Speed to Value Mapping table (Warrant Preferences)
The automated train must know what to do when something changes.
For example, assuming the train is approaching a signal, the script indicates that at that point the train should be at 0.4 of its full throttle with an expected speed of 40mph.
'JMRI' needs to know what the aspect requires and that is defined in the preferences.
Looking up the table JMRI will calculate throttle/speed changes over the distance to the signal such that when the signal is reached it's at the required value. Say it's a Medium aspect with the speed value type
  • If value is 20% 'Script', then the signal speed is 20% of the defined maximum speed and JMRI will adjust its speed as necessary
  • Or if 30% 'Throttle', then the signal means 30% of maximum throttle and JMRI at some point will start to ramp down to that throttle setting
  • Or if 40 'Miles per hour', then the signal speed is 40 mph, JMRI may not need to do any adjustments
  • Or if 50 'Kilometers per hour', then the signal speed is 50 kph, JMRI at some point will start to ramp down to 50kph (31mph)
--
H.O. Australia (Layout in Progress)
Digikeijs DR5000 LocoNet
JMRI v5.10 DecoderPro/Warrants/CPE/SML/LogixNG
Java: OpenLogic jre-17.0.12.7 ? Windows 10


Re: Can't get PanelPro or DecoderPro to run under Linux Ubuntu #linux

 

On Wed, Apr 16, 2025 at 08:00 AM, Heiko Rosemann wrote:
According to my google responses, you can run

update-java-alternatives --list

followed by

sudo update-java-alternatives --set /path/to/java/version

(with /path/to/java/version replaced by one of the outputs from the first command)
I have ran the command as written and it appears that my Java alternative is Java 21.? I think that is ok.? So I guess I need to install the version that is not headless???
?
--
Tom


Re: Can't get PanelPro or DecoderPro to run under Linux Ubuntu #linux

 

On Wed, Apr 16, 2025 at 06:59 AM, Dave Sand wrote:
Do the following command to see what you currently have installed.
?
dpkg -l | grep openjdk
?
Here is my result.? It does appear I have installed the "headless" version of java 21.? I have no idea what that means, but I guess I should not have installed it :)
?
?
--
Tom


Re: Can't get PanelPro or DecoderPro to run under Linux Ubuntu #linux

 

Heiko,

You are correct. Once we know what is installed, update-java-alternatives is used to select the correct package.

Dave Sand

----- Original message -----
From: "Heiko Rosemann via groups.io" <heiko.rosemann@...>
To: [email protected]
Subject: Re: [jmriusers] Can't get PanelPro or DecoderPro to run under Linux Ubuntu #linux
Date: Wednesday, April 16, 2025 9:59 AM

Tom and Dave,

I don't know Mint/Ubuntu/Debian, but I suppose there is a way to tell
the system which java version to use by default?

According to my google responses, you can run

update-java-alternatives --list

followed by

sudo update-java-alternatives --set /path/to/java/version

(with /path/to/java/version replaced by one of the outputs from the
first command)

Or alternatively:

sudo update-alternatives --config java

You may have to re-login afterwards.

All according to


Make sure to select a non-headless version in that step :)

Heiko

(On my Slackware machine, I'd manually change JAVA_HOME and PATH, but if
the alternatives-commands work, they probably are easier to access)

On 4/16/25 15:59, Dave Sand via groups.io wrote:
Tom,

The openjdk command installs both the headless version along with the
additional components to support GUI based apps such as JMRI.

Do the following command to see what you currently have installed.

dpkg -l | grep openjdk

Note: ?-l is dash el.

Here is the result on my Linux test system.
ii *openjdk*-11-jre:arm64
11.0.26+4-1ubuntu1~22.04? ? ? ? ? ? ? ? arm64? ? ? ? OpenJDK Java
runtime, using Hotspot JIT
ii *openjdk*-11-jre-headless:arm64
11.0.26+4-1ubuntu1~22.04? ? ? ? ? ? ? ? arm64? ? ? ? OpenJDK Java
runtime, using Hotspot JIT (headless)
ii *openjdk*-17-jre:arm64 ? ? ? ? ? ? ? ? ? ? ? 17.0.14+7-1~22.04.1
? ? ? ? ? ? ? ? arm64? ? ? ? OpenJDK Java runtime, using Hotspot JIT
ii *openjdk*-17-jre-headless:arm64? ? ? ? ? ? ? 17.0.14+7-1~22.04.1
? ? ? ? ? ? ? ? arm64? ? ? ? OpenJDK Java runtime, using Hotspot JIT
(headless)

Dave Sand


----- Original message -----
From: "Tom Myrick via groups.io" <jmri@...
<mailto:[email protected]>>
To: [email protected] <mailto:[email protected]>
Subject: Re: [jmriusers] Can't get PanelPro or DecoderPro to run under
Linux Ubuntu #linux
Date: Tuesday, April 15, 2025 11:27 PM

On Tue, Apr 15, 2025 at 09:16 PM, Dave Sand wrote:

It appears that you installed the headless version of Java. ?The
help page can be confusing.
All you need is the following command using the command line:
sudo apt install openjdk-17-jre

Will I need to uninstall the headless version of Java (I believe I
installed Java 21) or will that command line fix Java?
--
Tom


--
eMails verschlüsseln mit PGP - privacy is your right!
Mein PGP-Key zur Verifizierung:







Attachments:
* OpenPGP_signature.asc


Re: Can't get PanelPro or DecoderPro to run under Linux Ubuntu #linux

 

Tom and Dave,

I don't know Mint/Ubuntu/Debian, but I suppose there is a way to tell the system which java version to use by default?

According to my google responses, you can run

update-java-alternatives --list

followed by

sudo update-java-alternatives --set /path/to/java/version

(with /path/to/java/version replaced by one of the outputs from the first command)

Or alternatively:

sudo update-alternatives --config java

You may have to re-login afterwards.

All according to

Make sure to select a non-headless version in that step :)

Heiko

(On my Slackware machine, I'd manually change JAVA_HOME and PATH, but if the alternatives-commands work, they probably are easier to access)

On 4/16/25 15:59, Dave Sand via groups.io wrote:
Tom,
The openjdk command installs both the headless version along with the additional components to support GUI based apps such as JMRI.
Do the following command to see what you currently have installed.
dpkg -l | grep openjdk
Note: ?-l is dash el.
Here is the result on my Linux test system.
ii *openjdk*-11-jre:arm64 11.0.26+4-1ubuntu1~22.04? ? ? ? ? ? ? ? arm64? ? ? ? OpenJDK Java runtime, using Hotspot JIT
ii *openjdk*-11-jre-headless:arm64 11.0.26+4-1ubuntu1~22.04? ? ? ? ? ? ? ? arm64? ? ? ? OpenJDK Java runtime, using Hotspot JIT (headless)
ii *openjdk*-17-jre:arm64 ? ? ? ? ? ? ? ? ? ? ? 17.0.14+7-1~22.04.1 ? ? ? ? ? ? ? ? arm64? ? ? ? OpenJDK Java runtime, using Hotspot JIT
ii *openjdk*-17-jre-headless:arm64? ? ? ? ? ? ? 17.0.14+7-1~22.04.1 ? ? ? ? ? ? ? ? arm64? ? ? ? OpenJDK Java runtime, using Hotspot JIT (headless)
Dave Sand
----- Original message -----
From: "Tom Myrick via groups.io" <jmri@... <mailto:[email protected]>>
To: [email protected] <mailto:[email protected]>
Subject: Re: [jmriusers] Can't get PanelPro or DecoderPro to run under Linux Ubuntu #linux
Date: Tuesday, April 15, 2025 11:27 PM
On Tue, Apr 15, 2025 at 09:16 PM, Dave Sand wrote:
It appears that you installed the headless version of Java. ?The
help page can be confusing.
All you need is the following command using the command line:
sudo apt install openjdk-17-jre
Will I need to uninstall the headless version of Java (I believe I installed Java 21) or will that command line fix Java?
--
Tom
--
eMails verschlüsseln mit PGP - privacy is your right!
Mein PGP-Key zur Verifizierung:


Re: Windows 11 Questions

 

Yes JMRI had issues with W11 when I installed v5.6 on a new laptop last year. The only solution I could find was to use Java21. It has worked perfectly for my use for about a year?now. Good luck

Sincerely,
Vincent Marino
Vincent Marino


On Wed, Apr 16, 2025, 9:53 AM Perry Stephen via <perrystephen100=[email protected]> wrote:
Hi:

Many of you responded to my first question?- thank you.? But Istill would?like to know if I will have any issues with the JMRI software?if I upgrade to Window 11.? Will I need to uninstall and re-install?JMRI?? Or will the software?work fine?? ('m currently running JMRI Version?5.4 on a Windows 10 PC).

Thanks,
Perry

On Sun, Apr 13, 2025 at 7:36?AM Perry Stephen <perrystephen100@...> wrote:
Hi:
I'm currently running JMRI Version?5.4 on a Windows 10 PC.? I keep getting?the upgrade?prompts and keep avoiding it. If I upgrade to Win 11, are there?any risks?? I'm using an NCE Power?Pro system, connected via the serial port through?a Trip-Lite Keyspan USB serial adapter (other adapters did not work).? I'm most concerned?that the adapter?driver will not transfer to Win 11, and then I'm screwed. (I cannot find a Win 11 driver online).?

Also, will everything?else with the JMRI?software?work once I upgrade to Win 11?? Or will I need to uninstall and reinstall?JMRI?

Lastly, what are the security risks if I just stay with Win?10?? If I don't browse the web, am?I safe?? Or is simply being connected to the internet?create a risk?

Thank you,
Perry


Re: Windows 11 Questions

 

From what I have seen on this list, JMRI should just run fine. The only
issues might be related to USB serial port drivers. (And no, *I* have no
personal experience with MS-Windows.)

At Wed, 16 Apr 2025 08:53:24 -0500 "Perry Stephen via groups.io" <perrystephen100@...> wrote:


Hi:

Many of you responded to my first question - thank you. But Istill
would like to know if I will have any issues with the JMRI software if I
upgrade to Window 11. Will I need to uninstall and re-install JMRI? Or
will the software work fine? ('m currently running JMRI Version 5.4 on a
Windows 10 PC).

Thanks,
Perry

On Sun, Apr 13, 2025 at 7:36???AM Perry Stephen <perrystephen100@...>
wrote:

Hi:
I'm currently running JMRI Version 5.4 on a Windows 10 PC. I keep
getting the upgrade prompts and keep avoiding it. If I upgrade to Win 11,
are there any risks? I'm using an NCE Power Pro system, connected via the
serial port through a Trip-Lite Keyspan USB serial adapter (other adapters
did not work). I'm most concerned that the adapter driver will not
transfer to Win 11, and then I'm screwed. (I cannot find a Win 11 driver
online).

Also, will everything else with the JMRI software work once I upgrade to
Win 11? Or will I need to uninstall and reinstall JMRI?

Lastly, what are the security risks if I just stay with Win 10? If I
don't browse the web, am I safe? Or is simply being connected to the
internet create a risk?

Thank you,
Perry





--
Robert Heller -- Cell: 413-658-7953 GV: 978-633-5364
Deepwoods Software -- Custom Software Services
-- Linux Administration Services
heller@... -- Webhosting Services


Re: Can't get PanelPro or DecoderPro to run under Linux Ubuntu #linux

 

Tom,

The openjdk command installs both the headless version along with the additional components to support GUI based apps such as JMRI.

Do the following command to see what you currently have installed.

dpkg -l | grep openjdk

Note: ?-l is dash el.

Here is the result on my Linux test system.
ii? openjdk-11-jre:arm64 ? ? ? ? ? ? ? ? ? ? ? 11.0.26+4-1ubuntu1~22.04? ? ? ? ? ? ? ? arm64? ? ? ? OpenJDK Java runtime, using Hotspot JIT
ii? openjdk-11-jre-headless:arm64? ? ? ? ? ? ? 11.0.26+4-1ubuntu1~22.04? ? ? ? ? ? ? ? arm64? ? ? ? OpenJDK Java runtime, using Hotspot JIT (headless)
ii? openjdk-17-jre:arm64 ? ? ? ? ? ? ? ? ? ? ? 17.0.14+7-1~22.04.1 ? ? ? ? ? ? ? ? ? ? arm64? ? ? ? OpenJDK Java runtime, using Hotspot JIT
ii? openjdk-17-jre-headless:arm64? ? ? ? ? ? ? 17.0.14+7-1~22.04.1 ? ? ? ? ? ? ? ? ? ? arm64? ? ? ? OpenJDK Java runtime, using Hotspot JIT (headless)

Dave Sand


----- Original message -----
From: "Tom Myrick via groups.io" <jmri=[email protected]>
Subject: Re: [jmriusers] Can't get PanelPro or DecoderPro to run under Linux Ubuntu #linux
Date: Tuesday, April 15, 2025 11:27 PM

On Tue, Apr 15, 2025 at 09:16 PM, Dave Sand wrote:
It appears that you installed the headless version of Java. ?The help page can be confusing.
?
All you need is the following command using the command line:
?
sudo apt install openjdk-17-jre
Will I need to uninstall the headless version of Java (I believe I installed Java 21) or will that command line fix Java?
--
Tom


Re: Windows 11 Questions

 

Hi:

Many of you responded to my first question?- thank you.? But Istill would?like to know if I will have any issues with the JMRI software?if I upgrade to Window 11.? Will I need to uninstall and re-install?JMRI?? Or will the software?work fine?? ('m currently running JMRI Version?5.4 on a Windows 10 PC).

Thanks,
Perry


On Sun, Apr 13, 2025 at 7:36?AM Perry Stephen <perrystephen100@...> wrote:
Hi:
I'm currently running JMRI Version?5.4 on a Windows 10 PC.? I keep getting?the upgrade?prompts and keep avoiding it. If I upgrade to Win 11, are there?any risks?? I'm using an NCE Power?Pro system, connected via the serial port through?a Trip-Lite Keyspan USB serial adapter (other adapters did not work).? I'm most concerned?that the adapter?driver will not transfer to Win 11, and then I'm screwed. (I cannot find a Win 11 driver online).?

Also, will everything?else with the JMRI?software?work once I upgrade to Win 11?? Or will I need to uninstall and reinstall?JMRI?

Lastly, what are the security risks if I just stay with Win?10?? If I don't browse the web, am?I safe?? Or is simply being connected to the internet?create a risk?

Thank you,
Perry


Re: Stopping sensors and speed profile. #dispatcher

 

Jean
It ramps down to the "StoppingSpeed" defined in the "Dispatcher Options", when the stopping sensor goes active it sets speed to zero. If the stopping sensor is already active on entry to the section the train stops immediately. For a pinpoint stop add a transit action for On Stop E-Stop.
Steve G.
?
?


Re: Stopping sensors and speed profile. #dispatcher

 

Steve,

Does the ramp occurs when entering the section or when reaching the stopping sensor?

JeanLouisDelestre@...


De: "Steve_G via groups.io" <RailRodder22@...>
?: [email protected]
贰苍惫辞测é: Mercredi 16 Avril 2025 12:33:32
Objet: Re: [jmriusers] Stopping sensors and speed profile.

Jean
If ramping is set to "speedprofile", yes.
Steve G.
?


--
---------------------------------------------
Jean-Louis Paris-France
---------------------------------------------
JRMI 5.9.5 on Windows
DCC EX? on Arduino Mega
Java version 17.1.12
?


Re: unknown sensors in table

 

Wouter- thanks for the tip
Bob- you have a good point! enough time wasted. Thanks


Re: Passenger Car Blocking Order #operationspro

 

Dennis,
?
Added the passenger blocking order for Manifests and switch lists to the next test release 5.11.6.
?
Dan


Re: Can't get PanelPro or DecoderPro to run under Linux Ubuntu #linux

 

Mint is actually based on Ubuntu, which in turn is based on Debian. Except
for a few outliers, just about all Linuxes are either Debian based or RedHat
based (or use RedHat's package system).

At Tue, 15 Apr 2025 21:02:27 -0700 "Tom Myrick via groups.io" <jmri@...> wrote:


Sorry for the confusion, but I am actually running Linux Mint, which has a GUI.? I created icons as per the instructions but when I click them nothing happens at all, which is why I ran the scripts in the command line.? I am quite new to Linux. I will take another look tomorrow when I am thinking more clearly. I am sure I have missed a step.
--
Tom






--
Robert Heller -- Cell: 413-658-7953 GV: 978-633-5364
Deepwoods Software -- Custom Software Services
-- Linux Administration Services
heller@... -- Webhosting Services


Re: unknown sensors in table

 

It sounds like everything is working the way it's supposed to:

*) The DS74’s are announcing what their doing
*) JMRI is seeing those announcements, and creating Sensors to record that state information

So the question becomes why do you need to get rid of those Sensors? Are they in the way somehow?

Bob


Bob Jacobsen
rgj1927@...


Re: unknown sensors in table

 

Bob,

Whatever you do, do not mention JMRI. Mention loconet, mention unexpected publishing - whatever. But say the magic word JMRI and they instantly lose interest 100%.

Wouter

On Wed, 16 Apr 2025 at 11:20, dnbroraback via <dnbroraback=[email protected]> wrote:
Thanks all for replies.
There are 40 added sensors coming from the 5 - DS74 's and I am able to watch their state change in the sensor table as I operate the turnouts from the turnout table.
Their ID numbers are exactly double their address numbers, interesting.
I am going to ask Digitrax what they think.
Thanks again. Bob Roraback