You are not logged in.
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
It seems there is no .Xauthority file in your home directory. Which Login Manager are you using?
Offline
well I cannot find anything about .Xauthority, could it be obsolute?
No LM manager, inittab is
x:5:respawn:/usr/bin/xdm -nodaemonOffline
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
I did a
find / -name .Xauthorityand 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
I have never used xdm, so can't really say.
I read somewhere that a
touch ~/.Xauthorityfixes the problem for them.
Otherwise, use xauth (search google) to create a proper .Xauthority file, or switch to another display manager.
I suggest slim.
Offline
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 . trustedOffline
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 ![]()
Offline