Author Topic: Re: Linux and JMRI software.(SOLVED)  (Read 1182 times)

Offline trustytrev

  • Sr. Member
  • ****
  • Posts: 472
Re: Linux and JMRI software.(SOLVED)
« on: October 08, 2011, 05:27:08 PM »
Hello,
      I have installed JMRI software into my home folder on a spare laptop.It is from outside the repositories so I recognize I have crossed a red line. :)
I would just like to inquire if anyone else has used this software successfully on a  PCLinuxOS setup.I didn't want to use another distro like others have as I prefer PCLinuxOS.
I am curious to know if the old fashioned serial ports are still supported with current kernels.The reason being that programs in JMRI keep highlighting "No ports found"  
Thanks.
trustytrev. :)
« Last Edit: October 14, 2011, 03:27:55 AM by trustytrev »
If there's a harder way to do something I'll probably find it.

Offline YouCanToo

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 5333
  • Location: Lebanon, OR., USA
    • Spreading the word.......
Re: Linux and JMRI software.
« Reply #1 on: October 08, 2011, 05:46:39 PM »
Hello,
      I have installed JMRI software into my home folder on a spare laptop.It is from outside the repositories so I recognize I have crossed a red line. :)

Since JRMI is written in JAVA you really haven't crossed any red line by using it.

Quote

I would just like to inquire if anyone else has used this software successfully on a  PCLinuxOS setup.I didn't want to use another distro like others have as I prefer PCLinuxOS.
I am curious to know if the old fashioned serial ports are still supported with current kernels.


Everything that I see suggests that they are still supported. Even if they were not supported JMRI is compatible with USB-to-Serial adapters

Quote
The reason being that programs in JMRI keep highlighting "No ports found" 
Thanks.
trustytrev. :)

Did you do this
Give user-level application access to serial ports
chmod 666 /dev/ttyS0
chmod 666 /dev/ttyS1

from what I see they are by default set to 660




Be sure to visit the NEW Knowledge Base


Linux is user-friendly- it's just picky who its friends are!

Offline trustytrev

  • Sr. Member
  • ****
  • Posts: 472
Re: Linux and JMRI software.
« Reply #2 on: October 09, 2011, 05:34:41 AM »
Hello,
     
Quote
Since JRMI is written in JAVA you really haven't crossed any red line by using it.
That is reassuring to know.
Quote
Did you do this
Give user-level application access to serial ports
chmod 666 /dev/ttyS0
chmod 666 /dev/ttyS1

from what I see they are by default set to 660
No not yet but I will give it a try.
That would need use as root does it not?
Thanks.
trustytrev. :)
If there's a harder way to do something I'll probably find it.

Offline trustytrev

  • Sr. Member
  • ****
  • Posts: 472
Re: Linux and JMRI software.
« Reply #3 on: October 09, 2011, 07:26:01 AM »
Hello,
       
Quote
Did you do this
Give user-level application access to serial ports
chmod 666 /dev/ttyS0
chmod 666 /dev/ttyS1

from what I see they are by default set to 660
Looking at /dev in Krusader-root mode it shows as /dev/ttyUSB0 and shows as rw-
How do I get to display  user-level application access with numbers?
Thanks.
trustytrev. :)
If there's a harder way to do something I'll probably find it.

Offline YouCanToo

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 5333
  • Location: Lebanon, OR., USA
    • Spreading the word.......
Re: Linux and JMRI software.
« Reply #4 on: October 09, 2011, 02:42:26 PM »
Hello,
     
Quote
Since JRMI is written in JAVA you really haven't crossed any red line by using it.
That is reassuring to know.
Quote
Did you do this
Give user-level application access to serial ports
chmod 666 /dev/ttyS0
chmod 666 /dev/ttyS1

from what I see they are by default set to 660
No not yet but I will give it a try.
That would need use as root does it not?

yes
Thanks.
trustytrev. :)





Be sure to visit the NEW Knowledge Base


Linux is user-friendly- it's just picky who its friends are!

Offline YouCanToo

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 5333
  • Location: Lebanon, OR., USA
    • Spreading the word.......
Re: Linux and JMRI software.
« Reply #5 on: October 09, 2011, 02:47:36 PM »
Hello,
       
Quote
Did you do this
Give user-level application access to serial ports
chmod 666 /dev/ttyS0
chmod 666 /dev/ttyS1

from what I see they are by default set to 660
Looking at /dev in Krusader-root mode it shows as /dev/ttyUSB0 and shows as rw-
How do I get to display  user-level application access with numbers?
Thanks.
trustytrev. :)

the /dev/usb0  is for your usb not the serial port.  you want /dev/ttys0 or ttys1  those are your serial ports.
I am sorry I don't understand your question here "How do I get to display  user-level application access with numbers?"




Be sure to visit the NEW Knowledge Base


Linux is user-friendly- it's just picky who its friends are!

Offline trustytrev

  • Sr. Member
  • ****
  • Posts: 472
Re: Linux and JMRI software.
« Reply #6 on: October 10, 2011, 01:45:43 AM »
Hello,
     
Quote
the /dev/usb0  is for your usb not the serial port.
The /dev/usbo is the Merg usb module I am using.
Quote
you want /dev/ttys0 or ttys1  those are your serial ports.
I wondered why they don't show when I check hardware in PCC and DecoderPro or PanelPro announce "No ports found"
Quote
I am sorry I don't understand your question here "How do I get to display  user-level application access with numbers?"
I was referring to how to display the current file permissions as numbers rather than rwx ie:7 or r=4  w=2 and x=1
to check the file permission settings before I change them.
Thanks.
trustytrev. :)
If there's a harder way to do something I'll probably find it.

Offline trustytrev

  • Sr. Member
  • ****
  • Posts: 472
Re: Linux and JMRI software.
« Reply #7 on: October 10, 2011, 04:35:43 AM »
Hello,
      I found out about file permissions. :)
I have done:
chmod 666 /dev/ttyS0
chmod 666 /dev/ttyS1
and chmod 666 /dev/ttyUSB0

I believe that covers all the ports in question.
But I am still getting "No ports found" when I start the JMRI software up.
trustytrev. :)
If there's a harder way to do something I'll probably find it.

Offline trustytrev

  • Sr. Member
  • ****
  • Posts: 472
Re: Linux and JMRI software.
« Reply #8 on: October 11, 2011, 09:02:10 PM »
Hello,
      I have had a response from the JMRI user forum.Can anyone advise please, if it is possible to make appropriate changes, and how to go about it.?

Re: [jmriusers] Re: Linux and JMRI

>
>
> check_group_uucp(): error testing lock file creation Error
> details:Permission deniedcheck_lock_status: No permission to create lock
> file.
> please see: How can I use Lock Files with rxtx? in INSTALL
>

This is your problem. You need to have the right permissions to create the
lock file.

This is where things get to be a pain. It's an easy fix, usually. Add
yourself to the group that can write lock files, and you're all set.

The tricky bits being: what is the name of the group that can write lock
files?

Depends on your distribution. I know nothing of PCLinuxOS, so I can't speak
from direct experience. On Fedora, it's group 'uucp'. I think it's
something different on Ubuntu. It can usually be found by checking the
lock directory for the controlling group. Of course, where the lock
directory is varies from distro to distro as well.

Once you get this squared away and have added yourself to the right group,
log out and log back in again for the new group permissions to take effect.
Then re-run DecoderPro.



If there's a harder way to do something I'll probably find it.

Offline djohnston

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 6227
  • I don't do Windows
Re: Linux and JMRI software.
« Reply #9 on: October 11, 2011, 11:38:22 PM »
Open PCLinuxOS Control Center. Click System in the left panel and Manage users on system in the right panel. Highlight your username, then click the Edit button. Click the Groups tab in the popup window. Scroll down the list and put a checkmark next to uucp. Save all changes.

Bare metal                           VBox
AMD Athlon 7750 Dual-Core    Single core
4GiB RAM                              1GiB RAM
nVidia GeForce FX 5200          64MB video
LXDE 32bit                            KDE 64bit

Registered Linux User #416378

Offline trustytrev

  • Sr. Member
  • ****
  • Posts: 472
Re: Linux and JMRI software.
« Reply #10 on: October 13, 2011, 08:38:26 AM »
Hello,
      I did as suggested in the last post.It has progressed the issue with running jmri software but it still has problems.I will refer back to the jmri users forum and see what they say about the out put from the console.I am presuming the problems remaining are with the jmri software.As can be seen it has changed output since following the advice in the last post.
[trevor@localhost ~]$ jmri/JMRI/DecoderPro
     0 apps.Apps                             INFO  - ****** JMRI log ******* [main]
    34 apps.Apps                             INFO  - This log is stored in file: messages.log [main]
  1287 DecoderPro.DecoderPro                 INFO  - DecoderPro version 2.12 starts under Java 1.6.0_26 at Wed Oct 12 02:17:11 GMT 2011 [main]
WARNING:  RXTX Version mismatch
        Jar version = RXTX-2.2pre1
        native lib Version = RXTX-2.2pre2
  3214 gridconnect.GcSerialDriverAdapter     ERROR - Serial port (no ports found!) not found [main]
  3222 configurexml.ErrorHandler             ERROR - (no ports found!) not found while opening connection [main]
 17837 progsupport.ProgServiceModePane       INFO  - No programmer available, so modes not set [main]
 22221 util.HelpUtil                         ERROR - unable to show help page package.apps.AppConfigBaseErrorPage due to javax.help.BadIDException: Not valid ID: package.apps.AppConfigBaseErrorPage [main]
 23236 powerpanel.PowerPane                  WARN  - No power manager instance found, panel not active [main]
 23238 throttle.PowerManagerButton           INFO  - No power manager instance found, panel not active [main]
 23272 withrottle.TrackPowerController       INFO  - No power manager instance. [main]
 23275 withrottle.ConsistController          INFO  - No consist manager instance. [main]
 35180 progsupport.ProgServiceModePane       INFO  - No programmer available, so modes not set [main]
 79355 anagers.DefaultUserMessagePreferences INFO  - Storing preferences as part of shutdown [AWT-EventQueue-0]
 79357 anagers.DefaultUserMessagePreferences INFO  - Not allowing save of changes as the user has accessed the preferences and not performed a save [AWT-EventQueue-0]
 79359 managers.DefaultShutDownManager       INFO  - Normal termination complete [AWT-EventQueue-0]

One step forward and two steps back.
Thanks.
trustytrev. :)
If there's a harder way to do something I'll probably find it.

Offline trustytrev

  • Sr. Member
  • ****
  • Posts: 472
Re: Linux and JMRI software.(SOLVED)
« Reply #11 on: October 14, 2011, 03:27:11 AM »
Hello,
      I have had success thanks to assistance here, the JMRI user grouphttp://groups.yahoo.com/group/jmriusers/and the MERG forumhttp://www.merg.org.uk/forum/viewtopic.php?f=69&t=1412My journey can be followed at the various forums.
I guess I can say JMRI software will work on PCLinuxOS.Linux does it again. :)
Thanks to all.
trustytrev. :)
If there's a harder way to do something I'll probably find it.