You are not logged in.

#1 2011-12-14 18:45:05

dabbi2000
Member
From: Reykjavik, Iceland
Registered: 2011-09-28
Posts: 119
Website

[SOLVED] key-mon won't run, what's missing?

all I want to do is to make a screencast with mouse and keyb events shown on screen

seems key-mon from AUR is the perfect tool, installation went fine but it won't start, this is what it returns in debug mode

mod_mapper.py [289]: DEBUG Loading kbd file: /usr/lib/python2.7/site-packages/keymon/us.kbd
Traceback (most recent call last):
  File "/usr/bin/key-mon", line 3, in <module>
    km.main()
  File "/usr/lib/python2.7/site-packages/keymon/key_mon.py", line 1007, in main
    keymon = KeyMon(opts)
  File "/usr/lib/python2.7/site-packages/keymon/key_mon.py", line 119, in __init__
    self.devices = xlib.XEvents()
  File "/usr/lib/python2.7/site-packages/keymon/xlib.py", line 79, in __init__
    self.record_display = display.Display()
  File "/usr/lib/python2.7/site-packages/Xlib/display.py", line 83, in __init__
    self.display = _BaseDisplay(display)
  File "/usr/lib/python2.7/site-packages/Xlib/display.py", line 65, in __init__
    apply(protocol.display.Display.__init__, (self, ) + args, keys)
  File "/usr/lib/python2.7/site-packages/Xlib/protocol/display.py", line 52, in __init__
    name, host, displayno)
  File "/usr/lib/python2.7/site-packages/Xlib/support/connect.py", line 94, in get_auth
    return mod.get_auth(sock, dname, host, dno)
  File "/usr/lib/python2.7/site-packages/Xlib/support/unix_connect.py", line 115, in new_get_auth
    au = xauth.Xauthority()
  File "/usr/lib/python2.7/site-packages/Xlib/xauth.py", line 44, in __init__
    raise error.XauthError('~/.Xauthority: %s' % err)
Xlib.error.XauthError: ~/.Xauthority: [Errno 2] No such file or directory: '/home/david/.Xauthority'

I have no idea what could be wrong here??

Last edited by dabbi2000 (2011-12-17 14:27:03)

Offline

#2 2011-12-15 14:22:06

x33a
Forum Fellow
Registered: 2009-08-15
Posts: 4,587

Re: [SOLVED] key-mon won't run, what's missing?

It seems there is no .Xauthority file in your home directory. Which Login Manager are you using?

Offline

#3 2011-12-15 19:34:51

dabbi2000
Member
From: Reykjavik, Iceland
Registered: 2011-09-28
Posts: 119
Website

Re: [SOLVED] key-mon won't run, what's missing?

well I cannot find anything about .Xauthority, could it be obsolute?

No LM manager, inittab is

x:5:respawn:/usr/bin/xdm -nodaemon

Offline

#4 2011-12-16 09:38:06

x33a
Forum Fellow
Registered: 2009-08-15
Posts: 4,587

Re: [SOLVED] key-mon won't run, what's missing?

dabbi2000 wrote:

well I cannot find anything about .Xauthority, could it be obsolute?

No, .Xauthority is not obsolete, and is in fact an important file of the system.

No LM manager, inittab is

x:5:respawn:/usr/bin/xdm -nodaemon

Actually you are using a login manager, which is xdm in your case.

Well, xdm should be creating an .Xauthority file, but it isn't. And i have no idea, why it isn't.

Now you can investigate why xdm isn't doing so, or maybe try slim or something similar and see if they do create the file.

Offline

#5 2011-12-16 10:15:10

dabbi2000
Member
From: Reykjavik, Iceland
Registered: 2011-09-28
Posts: 119
Website

Re: [SOLVED] key-mon won't run, what's missing?

I did a

find / -name .Xauthority

and found nothing at all...  The XDM manual says
"When xdm is unable to write to the usual user authorization file ($HOME/.Xauthority), it creates a unique file name in this directory and points the environment variable XAUTHORITY at the created file. It uses /tmp by default."

export has no variables by name XAUTHORITY

so I'm totally clueless!

Offline

#6 2011-12-16 14:58:22

x33a
Forum Fellow
Registered: 2009-08-15
Posts: 4,587

Re: [SOLVED] key-mon won't run, what's missing?

I have never used xdm, so can't really say.

I read somewhere that a

touch ~/.Xauthority

fixes the problem for them.

Otherwise, use xauth (search google) to create a proper .Xauthority file, or switch to another display manager.

I suggest slim.

https://wiki.archlinux.org/index.php/Display_Manager

Offline

#7 2011-12-17 07:38:18

dabbi2000
Member
From: Reykjavik, Iceland
Registered: 2011-09-28
Posts: 119
Website

Re: [SOLVED] key-mon won't run, what's missing?

Thx for your help, I found my way to a page about this
https://www-304.ibm.com/support/docview … g3T1000472

and created a valid .Xauthority file by

xauth generate :0 . trusted

Offline

#8 2011-12-17 12:04:57

x33a
Forum Fellow
Registered: 2009-08-15
Posts: 4,587

Re: [SOLVED] key-mon won't run, what's missing?

So, did your problem get fixed? If it did, then please edit your thread title and add [Solved].

PS: I did see that ibm link while searching for your problem, but since it was for aix, i thought it might not work for linux tongue

Offline

Board footer

Powered by FluxBB