arduino soros port hiba (/var/lock rendszer Arch Linux alatt)

Ha ilyesmit ír az STDOUT-ra Arch Linux alatt az arduino program

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

akkor a /var/lock könyvtárral, pontosabban a /run/lock könyvtárral lehet a probléma: nem megfelelőek a jogosultságok, hogy a felhasználó lock fájlt hozzon létre. Ehhez a régi /var/lock rendszert kell feléleszteni. Én ezekkel a lépésekkel értem el ezt:

Az alap fájl átmásolása az etc könyvtárba:

sudo cp /usr/lib/tmpfiles.d/legacy.conf /etc/tmpfiles.d

Az első d-vel kezdődő sort kell kijavítani, ahogy az itt látható:

# This file is part of systemd.

#

# systemd is free software; you can redistribute it and/or modify it

# under the terms of the GNU Lesser General Public License as published by

# the Free Software Foundation; either version 2.1 of the License, or

# (at your option) any later version.

# See tmpfiles.d(5) for details

# These files are considered legacy and are unnecessary on legacy-free

# systems.

d /run/lock 0775 root lock -

# /run/lock/subsys is used for serializing SysV service execution, and

# hence without use on SysV-less systems.

d /run/lock/subsys 0755 root root -

# /run/lock/lockdev is used to serialize access to tty devices via

# LCK..xxx style lock files, For more information see:

# http://lists.freedesktop.org/archives/systemd-devel/2011-March/001823.html

# On modern systems a BSD file lock is a better choice if

# serialization is needed on those devices.

d /run/lock/lockdev 0775 root lock -

# /forcefsck, /fastboot and /forcequotecheck are deprecated in favor of the

# kernel command line options 'fsck.mode=force', 'fsck.mode=skip' and

# 'quotacheck.mode=force'

r /forcefsck

r /fastboot

r /forcequotacheck

Majd a felhasználót, akinek a /var/run könyvtárba kell az írási jog, a "lock" csoporthoz hozzáadni.

Ezután elméletileg csak egy-két szervízt kellene újraindítani a systemctl-el, de én a Windows módszert használtam: újraindítottam az egész gépet...

Oldalak