10

Does anyone know how to install key-mon on lubuntu 20.04. It is not in depot anymore, and when I download the .deb packet, it won't get installed because of dependencies I couldn't resolve. Thanks a lot ! solved

4 Answers 4

6

I could find two alternatives to keymon:

  • screenkey is packaged, maintained, but is not really useful for most screencast tasks.

  • kmcaster is not packaged, but the .jar file provided by the project should run on Ubuntu. A video compares it to key-mon:

    comparison

2
  • There is apparently a bug with french keybord in kmcaster. And I don't really screenkey appearance...But thanks anyway ;) Feb 15, 2021 at 22:43
  • Yes, everybody who has been forced to use a french keyboard will confirm that there is a bug with it : - ) ... Joking aside, i think that you should fill a ticket on Github with more details on the bug you're experiencing...
    – a.l.e
    Feb 16, 2021 at 5:38
4

You still can install keymon using packages from 18.04 LTS:

cd ~/Downloads
wget -c http://archive.ubuntu.com/ubuntu/pool/universe/p/pygtk/python-gtk2_2.24.0-5.1ubuntu2_amd64.deb
wget -c http://archive.ubuntu.com/ubuntu/pool/universe/k/key-mon/key-mon_1.17-1ubuntu1_all.deb

sudo apt-get install ./python-gtk2_2.24.0-5.1ubuntu2_amd64.deb ./key-mon_1.17-1ubuntu1_all.deb

Note: for Ubuntu 21.04 (hirsute) and 21.10 (impish) the list of dependencies is longer:

cd ~/Downloads
wget -c http://archive.ubuntu.com/ubuntu/pool/universe/p/python-xlib/python-xlib_0.23-2build1_all.deb
wget -c http://archive.ubuntu.com/ubuntu/pool/universe/p/pycairo/python-cairo_1.16.2-2ubuntu2_amd64.deb
wget -c http://archive.ubuntu.com/ubuntu/pool/universe/p/pygobject-2/python-gobject-2_2.28.6-14ubuntu1_amd64.deb
wget -c http://archive.ubuntu.com/ubuntu/pool/universe/p/pygtk/python-gtk2_2.24.0-5.1ubuntu2_amd64.deb
wget -c http://archive.ubuntu.com/ubuntu/pool/universe/k/key-mon/key-mon_1.17-1ubuntu1_all.deb

sudo apt-get install ./key-mon_1.17-1ubuntu1_all.deb ./python-cairo_1.16.2-2ubuntu2_amd64.deb ./python-gobject-2_2.28.6-14ubuntu1_amd64.deb ./python-gtk2_2.24.0-5.1ubuntu2_amd64.deb ./python-xlib_0.23-2build1_all.deb
6
  • Thank you very much ! Yet, I am still encountering an issue : Traceback (most recent call last): File "/home/julien/.local/bin/key-mon", line 2, in <module> import keymon.key_mon as km File "/home/julien/.local/lib/python3.8/site-packages/keymon/key_mon.py", line 38 print 'Error: Missing xlib, run sudo apt-get install python-xlib' ^ SyntaxError: Missing parentheses in call to 'print'. Did you mean print('Error: Missing xlib, run sudo apt-get install python-xlib')? So I have installed python-xlib, but I also have python3-xlib and so key-mon does not start ! May 7, 2020 at 7:57
  • 1
    It looks like you have two keymons for now. Please remove one from /home/julien/.local with its lib - rm /home/julien/.local/bin/key-mon, rm -rf /home/julien/.local/lib/python3.8/site-packages/keymon . And then packaged version will work.
    – N0rbert
    May 7, 2020 at 8:18
  • You might want to warn people that installing this will overwrite the default python binding to python 2.7 :( Aug 14, 2020 at 10:40
  • @MikeLawrence, what does it mean exactly ? My system will then use python 2.7 instead of 3.8 ? Feb 15, 2021 at 22:33
  • @Videophysique it will install 2.7 if it's not already installed then link python to 2.7, forcing you to have to either run python3 when you want to fire up 3 (not a bad idea as a general principle really) or reset the link yourself. I haven't bothered with the latter, and it's possible that such re-linking will break key-mon if it's not explicitly calling python2 Feb 17, 2021 at 14:18
4

You can install key-mon as follows:

pip install git+https://github.com/scottkirkwood/key-mon

You can then run it from terminal:

key-mon
0

You may try using the following commands (solution is here):

$sudo add-apt-repository  ppa:nrbrtx/python2-stuff
$sudo apt-get update
$sudo apt-get install key-mon

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .