Keyboard Shortcuts
ctrl + shift + ? :
Show all keyboard shortcuts
ctrl + g :
Navigate to a group
ctrl + shift + f :
Find
ctrl + / :
Quick actions
esc to dismiss
Likes
Search
Can't get PanelPro or DecoderPro to run under Linux Ubuntu
#linux
Hello,
?
Since Windows 10 is being phased out, I decided to change my laptop to Linux Ubuntu (Cinnamon version).? I have found Linux is worlds away from Windows.? Anyway, I believe that I have installed JMRI correctly, as it appears all you have to do is extract the tar file and move the folder to wherever you want.? When I try to run, for example, PanelPro in the command line I get the following errors.? I have no idea what to do.? Any help would be appreciated.? Thanks.
?
?
--
Tom
|
Can you share more detail including what version of Ubuntu, version of JMRI, and if Java jre has been installed by Apt?
?
To install Java runtime:
?
The error references that there isn't a X window set up for the user but the command prompt looks like you are in X. Check to see if the user you are trying to launch JMRI is the same user that is currently logged into X/GUI. Also, are you using the default Ubuntu GNOME or something else?
?
? |
On 4/15/2025 10:01 PM, Tom Myrick via groups.io wrote:
When I try to run, for example, PanelPro in the command line I get the following errors.JMRI usually requires that the O/S provide a "graphical user interface". But, according to the image you provided, that is not the case. The message says that "No V11 DISPLAY variable was set". This means that the JMRI program (PanelPro) _needs_ the graphical user interface, but the common "hint" to connect to the graphical capability, the "DISPLAY" environmeny variable, is not set up properly. This can occur for two obvious reasons: 1. The Linux installation _does not have_ an appropriate GUI installed, or 2. The Linux installation has an appropriate graphical user interface installed, but, for some unknown-to-ne reason, the "DISPLAY" environment is not set up. You will have to get someone to help out with Linux, as I an horribly out-of-date with modern Ubuntu installs. I occasionally work with an Ubuntu 16 install, while Ubuntu 24 is the current version. |
Did you install Ubuntu server or desktop? Ubuntu server doesn’t come with a GUI. Either install desktop version or install a GUI of your preference. You don’t need server if you run JMRI.
--
Ken NYNH&H, Old Colony Division, Cape Cod Branch (1949-1959) Loconet * JMRI 5.11.5 * OSX,Win10,Ubuntu Blog: ?
Youtube:
|
Here is where to start looking to install JMRI on LInux
There are directions for Ubuntu including how to install desktop icons. You appear to be using Java 13, you may wish to update to 17 or even 21 -- Peter Ulvestad Linux Mint 22.1, JMRI 5.11.5, Java 21.0.6 JMRI Users Group Moderator ( /g/jmriusers ) JMRI Developers Group Moderator ( ) Tam Valley Group Moderator ( ) Sprog-DCC Group Moderator ( ) Edmonton Model Railroad Association ( ) |
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 |
Tom, 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 Dave Sand ----- Original message ----- From: "Tom Myrick via groups.io" <jmri=[email protected]> Subject: [jmriusers] #linux Can't get Panelpro or Decoderpro to run under Linux Ubuntu Date: Tuesday, April 15, 2025 9:01 PM Hello, ? Since Windows 10 is being phased out, I decided to change my laptop to Linux Ubuntu (Cinnamon version).? I have found Linux is worlds away from Windows.? Anyway, I believe that I have installed JMRI correctly, as it appears all you have to do is extract the tar file and move the folder to wherever you want.? When I try to run, for example, PanelPro in the command line I get the following errors.? I have no idea what to do.? Any help would be appreciated.? Thanks. ? ? -- Tom |
On Tue, Apr 15, 2025 at 09:16 PM, Dave Sand wrote:
Will I need to uninstall the headless version of Java (I believe I installed Java 21) or will that command line fix Java?
--
Tom |
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: -- Robert Heller -- Cell: 413-658-7953 GV: 978-633-5364 Deepwoods Software -- Custom Software Services -- Linux Administration Services heller@... -- Webhosting Services |
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:
Will I need to uninstall the headless version of Java (I believe I installed Java 21) or will that command line fix Java? -- Tom |
Tom and Dave,
toggle quoted message
Show quoted text
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, --
eMails verschlüsseln mit PGP - privacy is your right! Mein PGP-Key zur Verifizierung: |
Heiko,
toggle quoted message
Show quoted text
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, -- eMails verschlüsseln mit PGP - privacy is your right! Mein PGP-Key zur Verifizierung: Attachments: * OpenPGP_signature.asc |
On Wed, Apr 16, 2025 at 06:59 AM, Dave Sand wrote:
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 |
On Wed, Apr 16, 2025 at 08:00 AM, Heiko Rosemann wrote:
According to my google responses, you can run 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
|
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: -- Robert Heller -- Cell: 413-658-7953 GV: 978-633-5364 Deepwoods Software -- Custom Software Services -- Linux Administration Services heller@... -- Webhosting Services |
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:
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 |
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: -- Robert Heller -- Cell: 413-658-7953 GV: 978-633-5364 Deepwoods Software -- Custom Software Services -- Linux Administration Services heller@... -- Webhosting Services |
to navigate to use esc to dismiss