开云体育

Locked Installation of JMRI on Ubuntu 22.04 #ubuntu


 

I am following the Guide for installation of JMRI on UBUNTU 22.04. It has all gone successfully, until the last step. I can run PanelPro and Decoder Pro from the command line but I would like to have desktop icons.
I have followed the procedure to create the active Icons for both Panel Pro and Decoder Pro. However, neither of them work. I get the error message "This desktop file has errors, or points to a program without permissions. It cannot be executed." All the files, the desktop text files and the "Exec" files are all executable.

I created the desktop files in LibreOffice Writer and saved the files as .txt files.? I then removed the .txt at the end of the name. Is there more I need to do to these text files?

Thank you.

Jeremy


 

Jeremy,

The Linux install was recently upgraded. ?See?

I recommend you use the Linux text editor instead of LibreOffice Writer.

Dave Sand


----- Original message -----
From: "jeremy.thompson2 via groups.io" <jeremy.thompson2=[email protected]>
Subject: [jmriusers] Installation of JMRI on Ubuntu 22.04
Date: Monday, May 01, 2023 12:08 PM

I am following the Guide for installation of JMRI on UBUNTU 22.04. It has all gone successfully, until the last step. I can run PanelPro and Decoder Pro from the command line but I would like to have desktop icons.
I have followed the procedure to create the active Icons for both Panel Pro and Decoder Pro. However, neither of them work. I get the error message "This desktop file has errors, or points to a program without permissions. It cannot be executed." All the files, the desktop text files and the "Exec" files are all executable.

I created the desktop files in LibreOffice Writer and saved the files as .txt files.? I then removed the .txt at the end of the name. Is there more I need to do to these text files?

Thank you.

Jeremy



 

I strongly agree with Dave about NOT using LibreOffice Writer to edit *text*
(configuration, data, etc.) files. LibreOffice Writer is a *word processor*
and is not really meant to be used as a plain text editor. It is all about
editing *typeset* documentations. Linux has a whole selection of proper text
editors, from nano (super simple) to emacs (super complex), specificly
designed to edit plain text files (ASCII).

At Mon, 01 May 2023 12:52:05 -0500 "Dave Sand" <ds@...> wrote:


Jeremy,

The Linux install was recently upgraded. See

I recommend you use the Linux text editor instead of LibreOffice Writer.

Dave Sand


----- Original message -----
From: "jeremy.thompson2 via groups.io" <jeremy.thompson2@...>
To: [email protected]
Subject: [jmriusers] Installation of JMRI on Ubuntu 22.04
Date: Monday, May 01, 2023 12:08 PM

I am following the Guide for installation of JMRI on UBUNTU 22.04. It has all gone successfully, until the last step. I can run PanelPro and Decoder Pro from the command line but I would like to have desktop icons.
I have followed the procedure to create the active Icons for both Panel Pro and Decoder Pro. However, neither of them work. I get the error message "This desktop file has errors, or points to a program without permissions. It cannot be executed." All the files, the desktop text files and the "Exec" files are all executable.

I created the desktop files in LibreOffice Writer and saved the files as .txt files. I then removed the .txt at the end of the name. Is there more I need to do to these text files?

Thank you.

Jeremy








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


Tim Kelley
 

Good afternoon Jeremy,
This worked for me........
Create the following directory structure
~/.local/share/applications
Create 2 text files in that applications directory
Call one of them DecoderPro.desktop and the other one PanelPro.desktop
The following is the contents of my DecoderPro.desktop file. The PanelPro.desktop file is very similar.
[Desktop Entry]
Name=DecoderPro
Comment=Launch DecoderPro
Terminal=false
Icon=/home/timk/JMRI/resources/decoderpro.gif
Type=Application
Exec=/home/timk/JMRI/DecoderPro
Replace /home/timk with whatever your home directory is
All of my JMRI is installed in /home/timk/JMRI so you may need to change that.
You may need to logout and log back in again before you will see the icons. they will appear on the far left hand side of the screen
These files may be dependent on what display manager you are using. I think I'm using gnome but I'm not really totally sure.
Hope this works for you.
Tim


Tim Kelley
 

Hello again Jeremy,
Sorry...........I seem to remember that there may be 1 more step.
Click on all of the SQUARES that are at the very bottom left hand corner of your screen.
You might see your icons in there. If so drag them to the far left of the screen.
Let me know if this works.........Or not!
Tim


 

开云体育

Thank you guys for helping me with this problem!

Tim, they didn't appear in the square of icons.

I agree with Dave and Robert about not using LibreOffice Writer, even with saving it as a .txt file. There must still be some non printing characters retained.

I downloaded "nano-editor" and after realising that it was so simple it needed running from the Command line, I created the two files. They are initially saved at "Home" (or in your working directory) and I then moved them to Desktop.

Once they are on the Desktop, they had to be enabled by setting "Enable Launching".

Is there a way of moving them to the Favourites bar? Drag and drop didn't work.

Once again, many thanks.

Regards,


Jeremy




On 01/05/2023 19:01, Robert Heller wrote:

I strongly agree with Dave about NOT using LibreOffice Writer to edit *text* (configuration, data, etc.) files. LibreOffice Writer is a *word processor* and is not really meant to be used as a plain text editor. It is all about editing *typeset* documentations. Linux has a whole selection of proper text editors, from nano (super simple) to emacs (super complex), specificly designed to edit plain text files (ASCII). At Mon, 01 May 2023 12:52:05 -0500 "Dave Sand" <ds@...> wrote:
Jeremy, The Linux install was recently upgraded. See I recommend you use the Linux text editor instead of LibreOffice Writer. Dave Sand ----- Original message ----- From: "jeremy.thompson2 via groups.io" <jeremy.thompson2@...> To: [email protected] Subject: [jmriusers] Installation of JMRI on Ubuntu 22.04 Date: Monday, May 01, 2023 12:08 PM I am following the Guide for installation of JMRI on UBUNTU 22.04. It has all gone successfully, until the last step. I can run PanelPro and Decoder Pro from the command line but I would like to have desktop icons. I have followed the procedure to create the active Icons for both Panel Pro and Decoder Pro. However, neither of them work. I get the error message "This desktop file has errors, or points to a program without permissions. It cannot be executed." All the files, the desktop text files and the "Exec" files are all executable. I created the desktop files in LibreOffice Writer and saved the files as .txt files. I then removed the .txt at the end of the name. Is there more I need to do to these text files? Thank you. Jeremy


 

Jeremy,

If you do an application search for "text" you will get the default GUI text editor.

I need to update the Linux install page.

  1. Copy the ".desktop" file to ~/.local/share/applications. ?If you want to use the file manager, enable "Show Hidden Files".
  2. Click on the 3x3 grid icon in the lower left.
  3. The JMRI icon that you added will probably be in the second page of applications.
  4. Right click on the icon and select "Add to Favorites".


Dave Sand



----- Original message -----
From: "Jeremy Thompson via groups.io" <jeremy.thompson2=[email protected]>
Subject: Re: [jmriusers] Installation of JMRI on Ubuntu 22.04
Date: Tuesday, May 02, 2023 4:53 AM

Thank you guys for helping me with this problem!

Tim, they didn't appear in the square of icons.

I agree with Dave and Robert about not using LibreOffice Writer, even with saving it as a .txt file. There must still be some non printing characters retained.

I downloaded "nano-editor" and after realising that it was so simple it needed running from the Command line, I created the two files. They are initially saved at "Home" (or in your working directory) and I then moved them to Desktop.

Once they are on the Desktop, they had to be enabled by setting "Enable Launching".

Is there a way of moving them to the Favourites bar? Drag and drop didn't work.

Once again, many thanks.

Regards,


Jeremy




On 01/05/2023 19:01, Robert Heller wrote:
I strongly agree with Dave about NOT using LibreOffice Writer to edit *text* (configuration, data, etc.) files. LibreOffice Writer is a *word processor* and is not really meant to be used as a plain text editor. It is all about editing *typeset* documentations. Linux has a whole selection of proper text editors, from nano (super simple) to emacs (super complex), specificly designed to edit plain text files (ASCII). At Mon, 01 May 2023 12:52:05 -0500 "Dave Sand" <ds@...> wrote:
Jeremy, The Linux install was recently upgraded. See I recommend you use the Linux text editor instead of LibreOffice Writer. Dave Sand ----- Original message ----- From: "jeremy.thompson2 via groups.io" <jeremy.thompson2@...> To: [email protected] Subject: [jmriusers] Installation of JMRI on Ubuntu 22.04 Date: Monday, May 01, 2023 12:08 PM I am following the Guide for installation of JMRI on UBUNTU 22.04. It has all gone successfully, until the last step. I can run PanelPro and Decoder Pro from the command line but I would like to have desktop icons. I have followed the procedure to create the active Icons for both Panel Pro and Decoder Pro. However, neither of them work. I get the error message "This desktop file has errors, or points to a program without permissions. It cannot be executed." All the files, the desktop text files and the "Exec" files are all executable. I created the desktop files in LibreOffice Writer and saved the files as .txt files. I then removed the .txt at the end of the name. Is there more I need to do to these text files? Thank you. Jeremy



 

开云体育

Hi Dave,

Funnily, when I edited the files after? I had saved them with .txt, it opened the GUI text editor. So, I thought it was all good.? However, I should have created the files in that text editor to start with!? Lesson learned.

Thanks for explaining how to get the icons onto the favourites. Perfect! Now, all I have to do is understand JMRI!!

Kind regards,


Jeremy




On 02/05/2023 14:36, Dave Sand wrote:

Jeremy,

If you do an application search for "text" you will get the default GUI text editor.

I need to update the Linux install page.

  1. Copy the ".desktop" file to ~/.local/share/applications. ?If you want to use the file manager, enable "Show Hidden Files".
  2. Click on the 3x3 grid icon in the lower left.
  3. The JMRI icon that you added will probably be in the second page of applications.
  4. Right click on the icon and select "Add to Favorites".


Dave Sand



----- Original message -----
From: "Jeremy Thompson via groups.io" <jeremy.thompson2=[email protected]>
Subject: Re: [jmriusers] Installation of JMRI on Ubuntu 22.04
Date: Tuesday, May 02, 2023 4:53 AM

Thank you guys for helping me with this problem!

Tim, they didn't appear in the square of icons.

I agree with Dave and Robert about not using LibreOffice Writer, even with saving it as a .txt file. There must still be some non printing characters retained.

I downloaded "nano-editor" and after realising that it was so simple it needed running from the Command line, I created the two files. They are initially saved at "Home" (or in your working directory) and I then moved them to Desktop.

Once they are on the Desktop, they had to be enabled by setting "Enable Launching".

Is there a way of moving them to the Favourites bar? Drag and drop didn't work.

Once again, many thanks.

Regards,


Jeremy




On 01/05/2023 19:01, Robert Heller wrote:
I strongly agree with Dave about NOT using LibreOffice Writer to edit *text* (configuration, data, etc.) files. LibreOffice Writer is a *word processor* and is not really meant to be used as a plain text editor. It is all about editing *typeset* documentations. Linux has a whole selection of proper text editors, from nano (super simple) to emacs (super complex), specificly designed to edit plain text files (ASCII). At Mon, 01 May 2023 12:52:05 -0500 "Dave Sand" <ds@...> wrote:
Jeremy, The Linux install was recently upgraded. See I recommend you use the Linux text editor instead of LibreOffice Writer. Dave Sand ----- Original message ----- From: "jeremy.thompson2 via groups.io" <jeremy.thompson2@...> To: [email protected] Subject: [jmriusers] Installation of JMRI on Ubuntu 22.04 Date: Monday, May 01, 2023 12:08 PM I am following the Guide for installation of JMRI on UBUNTU 22.04. It has all gone successfully, until the last step. I can run PanelPro and Decoder Pro from the command line but I would like to have desktop icons. I have followed the procedure to create the active Icons for both Panel Pro and Decoder Pro. However, neither of them work. I get the error message "This desktop file has errors, or points to a program without permissions. It cannot be executed." All the files, the desktop text files and the "Exec" files are all executable. I created the desktop files in LibreOffice Writer and saved the files as .txt files. I then removed the .txt at the end of the name. Is there more I need to do to these text files? Thank you. Jeremy




Tim Kelley
 

Good morning Jeremy,
Understanding JMRI..............
There are some very good videos on learning JMRI at youtube.com
I would start with the videos by Larry Pucket AKA the DCC guy, His videos are very well done.
I would start with DecoderPro.....
DecoderPro is used to "program" the decoders in your Locomotives. As you may know decoders are tiny little computer boards
in your locomotive. There are these things called CV's which are like variables in your decoder that you can read and write (program) to make
configuration changes in your decoders.
Good luck.
Tim


 

On the PanelPro side, look at?

Dave Sand


----- Original message -----
From: Tim Kelley <tim.kelley@...>
Subject: Re: [jmriusers] Installation of JMRI on Ubuntu 22.04 #ubuntu
Date: Tuesday, May 02, 2023 10:03 AM

Good morning Jeremy,
Understanding JMRI..............
There are some very good videos on learning JMRI at youtube.com
I would start with the videos by Larry Pucket AKA the DCC guy, His videos are very well done.
I would start with DecoderPro.....
DecoderPro is used to "program" the decoders in your Locomotives. As you may know decoders are tiny little computer boards
in your locomotive. There are these things called CV's which are like variables in your decoder that you can read and write (program) to make
configuration changes in your decoders.
Good luck.
Tim