File: arduino.README.Debian

package info (click to toggle)
arduino 1%3A1.0.1%2Bdfsg-7
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 22,476 kB
  • sloc: java: 56,088; cpp: 10,050; ansic: 9,904; makefile: 1,721; xml: 468; perl: 198; sh: 153; python: 62
file content (34 lines) | stat: -rw-r--r-- 1,273 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
Permissions required for access to USB/Serial ports:
----------------------------------------------------

User must be in the dialout group in order to write to USB/Serial ports.

Fedora uses zenity to ask if a user wants to be added, but it is a big download.

I wrote our own java code, in debian/permission-checker, which will ask if the
user would like to be added, then runs a script with pkexec to add the user
to the dialout group.

--Scott Howard <showard@debian.org>, Dec 12, 2011





Note for non-reparenting window manager users
---------------------------------------------

If you are using a non-reparenting window manager, such as ratpoison, awesome
or dwm, some Java graphical applications using the AWT toolkit will only
display empty grey windows, as described in bug #508650.

There are two solutions to work around this issue:
1. mask your window manager as one of the non-reparenting ones supported by AWT,
  using the wmname <http://tools.suckless.org/wmname> tool from the dwm-tools
  package:
  $ wmname LG3D
2. set the environment variable _JAVA_AWT_WM_NONREPARENTING:
  $ export _JAVA_AWT_WM_NONREPARENTING=true

You can automate these tasks by writing them to your ~/.xsessionrc:
$ echo export _JAVA_AWT_WM_NONREPARENTING=true >> ~/.xsessionrc