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
Locked Chromebook w/LXDE Can't Access Serial Ports
OK, my brother was kind enough to give me a Toshiba Chromebook. I told him I wanted to run JMRI, so he installed LXDE Linux. I installed OpenJDK8, and downloaded JMRI 4.6. It has USB ports, so I tried to assign serial ports, per the Linux FAQ,(chmod 666 /dev/tty etc) but modifying the commands to reflect both the /dev/tty and /dev/bus/USB/001 that shows up. I use a Keyspan USA-19HS as an adapter for my Lenz LI101F.
When I start JMRI, I am trying to set up ports, but I get no ports found. Any advice to find the ports? |
Changing the permissions of USB ports with chmod is generally not successful with most Linux distributions. The problem is that ports are ephemeral and are destroyed (and recreated with default permissions) every time you unplug/plug the cable. You need to add yourself to the group you see next to the port when you do an "ls -l".
toggle quoted message
Show quoted text
Furthermore there are some filters in the JMRI startup script that may hide your port if it has a non-standard name. There is either a command-line override or a script variable for this, I haven't got the details to hand at present, someone else should be able to help with this. -- Dave in Australia On 27 Jun 2017, at 2:18 PM, gnarator@... [jmriusers] <jmriusers@...> wrote: |
Randall Wood
We are not finding that OpenJDK causes issues. The FAQ concerning how to setup Linux is wrong however. You will want to search through the archives of this group for Dave Heap's explanation of how to use devices on Linux. Search for "dialout"
Randall On Jun 27, 2017, at 08:06, 'Ken Cameron' kcameron@... [jmriusers] <jmriusers@...> wrote: [Non-text portions of this message have been removed] |
Here it is again:
toggle quoted message
Show quoted text
Open a Terminal window and put in this command EXACTLY (except for the double quotes): "while : ;do clear;ls -lt /dev|head;i=$((i+1));echo $i;sleep 1;done" Press ENTER and watch the screen as you slowly plug/unplug the USB device, watching what device appears/disappears and record the name. If nothing appears/disappears your device is not loading a driver. You will also need to enter the following command EXACTLY (except for the double quotes): "sudo adduser ${USER} dialout" (This assumes "dialout" is the group shown beside your device in the list above.) Do not: * Try to bypass group membership by running as root. That will create further problems. * Try to change permissions of the serial port you see. They will be lost every time you plug/unplug/logout/reboot. Then logout and back in again so the group membership takes effect. Then go to JMRI Preferences->Connections and the device name you saw earlier should be in the dropdown list once you select a serial connection. In your case set up connection as NCE Power Pro Serial as per: <> If you are still having problems, you need to check the /var/lock directory and remove any stale lock files for the device. This can particularly be a problem if you have ever run JMRI as root. -- Dave in Australia On 27 Jun 2017, at 10:10 PM, Randall Wood rhwood@... [jmriusers] <jmriusers@...> wrote: |
Thank you for the help. Perhaps that could be added to the Linux FAQ?
Anyway, when I tried the first command I noticed two lines coming and going, one called "serial" and the other ttyUSB0, so I tried the command with 'serial" instead of "dialout." That worked, so now I can access my layout with the Chromebook. WiThrottle doesn't seem to work very well, though, perhaps because the wireless is upstairs and the layout is in the basement? That would seem to be a topic for another post... |
to navigate to use esc to dismiss