[DNG] How to test the backend of simple-netaid

2018-08-06 Thread aitor_czr

Hi all,

I'm pushing more commits to the sources of simple-netaid. I did some 
changes in the CMakeLists.txt, in such a way you will be able to build 
only the backend.


CMake will ask you for your root password giving suid permissions to the 
server file. This binary server file is only for testing purposes.


https://git.devuan.org/aitor_czr/simple-netaid-gtk/tree/master

Cheers,

 Aitor.



___
Dng mailing list
Dng@lists.dyne.org
https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng


Re: [DNG] running script on eudev event

2018-08-06 Thread Antonio Trkdz.tab
Hi,

Thanks for your help.

> How are you running the echo command from the udev rule?

ATTRS{idVendor}=="", ATTRS{idProduct}=="", ACTION=="add",
RUN+="/bin/echo 'message' >> /full/path_to/log_file.log"

they do not have the DISPLAY variable initialized and do not have the
> appropriate session Xauthority cookies set.

I have tried this also with:
DISPLAY=":0.0"
HOME=/home/antoniotrkdz
XAUTHORITY=$HOME/.Xauthority
export DISPLAY XAUTHORITY HOME
in the script, I don't know if they are correct, however it didn't work.

A
___
Dng mailing list
Dng@lists.dyne.org
https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng


Re: [DNG] running script on eudev event

2018-08-06 Thread aitor_czr

Hi Anthony,

El 06/08/18 a las 11:45, Antony Stone escribió:

On Monday 06 August 2018 at 11:42:58, aitor_czr wrote:


El 06/08/18 a las 10:24, aitor_czr escribió:

|ACTION=="add", RUN+="/bin/sh -c 'echo "message" >> log_file|

||
||ACTION=="add", RUN+="/bin/sh -c 'echo "message" >> log_file |'"

The line was incomplete:)

I am very confused by the pipe symbols there.


Antony.


There was some info about how to build udev rules in the vdev project. I 
can't find it now in none of the git repos, so i uploaded it to my website:


http://gnuinos.org/udev_rules/

The compilation of udev rules is done by means of a newlisp script 
suite, starting in `compile-udev-rules.lsp`.

As KatolaZ said in another post, newlisp is available in ascii.

HTH,

  Aitor.





___
Dng mailing list
Dng@lists.dyne.org
https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng


Re: [DNG] [OT] donate to Slackware

2018-08-06 Thread Jaromil
On Wed, 01 Aug 2018, goli...@dyne.org wrote:

> I understand that.  I didn't say not to discuss the Slackware
> situation.  It's just that Devuan communications, except for the
> forum, have gone to less than a trickle. Would be nice to have some
> energy going into Beowulf etc.  Yes, I know many are on holiday in
> August but not that much has happened since the stable release.
> Hoping things might pickup a bit.

I believe a community dynamic is healthy when solidarity replaces
competition: in our case Slackware and Gentoo are not competitors, but
venerable projects that can share valuable experience and also
upstream tools with Devuan, while they have a larger user base and
common goals and ethics. If any of such projects raises an emergency
flag, we are called to exercise solidarity even beyond the
understandable latency of vacation periods. That's what I felt like
doing, while reading online sporadically once per week.

About beowulf the first step to help is start running it, only this
way we can find problems. Or in your case start thinking of a design
approach for it :^) I think you are running ahead with that already.
I run Beowulf since the ASCII stable release, other devs as well. The
only problem I have is with the ZFS modules compiled with DKMS,
haven't had time to investigate that, but suspect people more expert
than me on ZFS internals may have already proposed solutions on the
devuan-dev list.

All the above considered, I think you are right to call all of us to
stick to our mission and nurture our project. Sometimes I wonder how
solidarity is perceived by big-fish eat-it-all distros like Debian or
Ubuntu: what if they would take a less solipsistic approach, recognise
young efforts like Devuan as a distro that saved a good portion of
their user base and nurture it by means of infrastructure and
donations? The world of FOSS would be a better place. Rather than
complain about their competing behavior, I believe we are called to
show how to improve our communities. Our solidarity to Slackware is a
call to everyone, to care about each other and to be excellent to each
other.



ciao!


-- 
  Denis Roio a.k.a. Jaromil  http://Dyne.org think &do tank
  Ph.D, CTO & co-foundersoftware to empower communities
  ⚷ crypto κρυπτο крипто गुप्त् 加密 האנוסים المشفره
  GnuPG: 6113D89C A825C5CE DD02C872 73B35DA5 4ACB7D10

___
Dng mailing list
Dng@lists.dyne.org
https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng


Re: [DNG] running script on eudev event

2018-08-06 Thread Antony Stone
On Monday 06 August 2018 at 11:42:58, aitor_czr wrote:

> El 06/08/18 a las 10:24, aitor_czr escribió:
> > |ACTION=="add", RUN+="/bin/sh -c 'echo "message" >> log_file|
> ||
> ||ACTION=="add", RUN+="/bin/sh -c 'echo "message" >> log_file |'"
> 
> The line was incomplete :)

I am very confused by the pipe symbols there.


Antony.

-- 
What do you get when you cross a joke with a rhetorical question?

   Please reply to the list;
 please *don't* CC me.
___
Dng mailing list
Dng@lists.dyne.org
https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng


Re: [DNG] running script on eudev event

2018-08-06 Thread aitor_czr


El 06/08/18 a las 10:24, aitor_czr escribió:

|ACTION=="add", RUN+="/bin/sh -c 'echo "message" >> log_file|


||ACTION=="add", RUN+="/bin/sh -c 'echo "message" >> log_file |'"

The line was incomplete :)


|
___
Dng mailing list
Dng@lists.dyne.org
https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng


Re: [DNG] running script on eudev event

2018-08-06 Thread aitor_czr

Hi,

El 05/08/18 a las 22:03, Alessandro Selli escribió:

n 05/08/2018 at 20:44, Antony Stone wrote:


On Sunday 05 August 2018 at 20:24:30, Alessandro Selli wrote:


On 05/08/2018 at 16:29, Antonio Trkdz.tab wrote:

Dear All,

I am struggling to understand how to run a script automatically upon
plugging a USB keyboard.
I know this issue is not directly related to Devuan, but I will
certainly appreciate a little help.

I created the following rule as /etc/udev/rules.d/90-usb-keyboard.rules:
  ATTRS{idVendor}=="", ATTRS{idProduct}=="", ACTION=="add",
RUN+="/full/path_to/restore_space_as_modifier.sh"
and reloaded eudev (I am on ASCII).

The script essentially has to do this:

#!/bin/bash
/usr/bin/xmodmap -e "keycode 65=Super_L"
/usr/bin/xmodmap -e "keycode any=space"
/usr/bin/pkill xcape
/usr/bin/xcape -e "Super_L=space"

   I think the problem lies in the x* from the commands: they are X11
commands, i.e. they interact with a running Xorg.  But, as they are run
by udevd, i.e. by a system daemon, they do not have the DISPLAY variable
initialized and do not have the appropriate session Xauthority cookies
set.  Thus they fail.

That sounds plausible, but doesn't explain:


it is not working, nothing happens, not even a simple echo something to a
file, the only command I have got working is touching a file with
'RUN+="/usr/bin/touch path_to/filename"

   How are you running the echo command from the udev rule?


Maybe you should log the message, something like this?

|ACTION=="add", RUN+="/bin/sh -c 'echo "message" >> log_file

Cheers,

  Aitor.



|
___
Dng mailing list
Dng@lists.dyne.org
https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng