|
Author |
Topic: menu always greyed out in linux (Read 2451 times) |
|
jake
|
menu always greyed out in linux
« on: Mar 18th, 2005, 3:40am » |
|
hello processors, i'm running p5 v0068 on linux (ubuntu). the serial port menu is always greyed. i've searched through the archives of this board and found a few references to this, but nothing said in those threads helped me. i don't get any errors on startup - i've also tried running p5 as root and that doesn't help. oh, i'm also using sun's java 1.5 - is that possibly an issue? i remember reading that someone had problems at some point between rxtx and java 1.4. thanks! jake
|
|
|
|
fry
|
Re: menu always greyed out in linux
« Reply #1 on: Mar 18th, 2005, 6:16pm » |
|
i'd give it a shot with 1.4 and see how it goes. rxtx can be a bit fragile so i wouldn't be surprised a bit if 1.5 were giving you trouble (especially since it's not giving you errors, just not enumerating the ports properly).
|
|
|
|
jake
|
Re: menu always greyed out in linux
« Reply #2 on: Mar 20th, 2005, 4:30am » |
|
thanks for your response, ben. i've tried changing the processing shellscript to launch with "java/bin/java PdeBase", which should use the version of java that comes with processing (v1.4.2). that has the same result as running with 1.5 (no errors, greyed out menu). i've also tried downloading a copy of jdk1.4.2 from sun and using that to launch processing, which yielded a "java.lang.UnsatisfiedLinkError" exception while loading "gnu.io.RXTXCommDriver" i could step back again to 1.3 etc. - is that worth trying?
|
|
|
|
jake
|
Re: menu always greyed out in linux
« Reply #3 on: Mar 24th, 2005, 8:06am » |
|
meanwhile, i've tried a few java versions back to 1.3.1 with no success. has anyone managed to get a serial menu under linux, and was there anything special you needed to do? thanks, jake
|
|
|
|
alankilian
|
Re: menu always greyed out in linux
« Reply #4 on: Apr 2nd, 2005, 12:55am » |
|
on Mar 24th, 2005, 8:06am, jake wrote: has anyone managed to get a serial menu under linux, and was there anything special you needed to do |
| HEY!!! I got it to work. I did an ls -l /dev/ttyS0 and saw that the group was set to uucp. Then I edited /etc/groups, I found the uucp group, and I added my login ID to the uucp line. I logged out, and logged back in again. The "groups" command now showed I was in group uucp, and when I started processing, the serial port menu item was not greyed-out. Now, I'll have to try actually reading and writing to the port. Let us know if this works for you.
|
|
|
|
fry
|
Re: menu always greyed out in linux
« Reply #5 on: Apr 2nd, 2005, 2:27am » |
|
is this the same as what's in the readme, or do i need to update that? serial.. this release uses rxtx-2.1_6 (just like macosx). you may get error message spew to the console when starting the application saying "Permission denied" and "No permission to create lock file" and to read "INSTALL". this is because you need to add yourself to either the uucp or lock group so that processing can write to /var/lock so it doesn't get in a fight with other applications talking on the serial port. supposedly, adding yourself to one of these groups will work (didn't for me, but i'm a little clueless) or running processing as root will get rid of the errors (not a great solution).
|
|
|
|
alankilian
|
Re: menu always greyed out in linux
« Reply #6 on: Apr 3rd, 2005, 5:36pm » |
|
on Apr 2nd, 2005, 2:27am, fry wrote:... you need to add yourself to either the uucp or lock group |
| I think if you change it to read "you need to add yourself to BOTH the lock and UUCP groups and you must log out and log back in. Starting another instance of processing after making the changes is not enough."
|
|
|
|
jake
|
Re: menu always greyed out in linux
« Reply #7 on: Apr 5th, 2005, 6:02pm » |
|
hrm. still no dice. i'm in both the uucp and lock groups. i don't get any errors starting p5. alan, can you tell me what linux distro you're using and what version of java? thanks, jake
|
|
|
|
alankilian
|
Re: menu always greyed out in linux
« Reply #8 on: Apr 5th, 2005, 8:02pm » |
|
on Apr 5th, 2005, 6:02pm, jake wrote:alan, can you tell me what linux distro you're using and what version of java |
| Jake, I'm using the Fedora Core-3 Linux distribution. I'm not sure how to tell which JRE I'm running. Code: % /home/kilian/hobbies/processing-0068/java/bin/java -version java version "1.4.2" Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2-b28) Java HotSpot(TM) Client VM (build 1.4.2-b28, mixed mode) or % /usr/java/jre1.5.0_01/bin/java -version java version "1.5.0_01" Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_01-b08) Java HotSpot(TM) Client VM (build 1.5.0_01-b08, mixed mode) |
| Did you FOR SURE completely log out and log back in before restarting processing Run the groups command to see that you are really in those two groups. Code: % groups kilian uucp lock |
| Then try looking at the owner, group and modes of /dev/ttyS0 Code: % ls -l /dev/ttyS0 crw-rw---- 1 root uucp 4, 64 Mar 18 17:09 /dev/ttyS0 |
| You can see that group uucp has read and write permission to the serial port. Your system might only have root read/write permissions on the device. If so, change the mode as the superuser. Code: Let us know how it goes. We'll get you there.
|
|
|
|
fry
|
Re: menu always greyed out in linux
« Reply #9 on: Apr 5th, 2005, 10:49pm » |
|
k, so here's the updated entry for the readme.. but based on what we learn here, i'll update it if there's anything else you guys think might be useful. serial.. this release uses rxtx-2.1_6 (just like macosx). if you're having trouble getting things to run, i.e. the port menu stays grayed out or you get error message spew to the console when starting the application saying "Permission denied" and "No permission to create lock file" and to read "INSTALL". this is because you probably need to add yourself to both the uucp or lock groups so that processing can write to /var/lock so it doesn't get in a fight with other applications talking on the serial port. alan kilian contributes this description: 1. I did an ls -l /dev/ttyS0 and saw that the group was set to uucp. 2. Then I edited /etc/groups, I found the uucp group, and I added my login ID to the uucp line. 3. I logged out, and logged back in again. 4. The "groups" command now showed I was in group uucp, and when I started processing, the serial port menu item was not greyed-out. it's important that you're in both groups, and that you completely log out and log back in again. running processing as root will often get rid of the errors, but that's obviously not a good solution for a million reasons (among them: alpha code that runs as root and handles files? yeah great...)
|
|
|
|
|