Open MUETTO opened 1 year ago
I was able to make it run as a daemon following this guide: https://www.vivaolinux.com.br/dica/rclocal-no-Arch-Linux
It's in portuguese. Try to translate it using google or something else. In summary what it does is activate local.rc script and you can put logkeys startup comand there.
[root@archlinux ]# uname -a
Linux archlinux 6.9.4-zen1-1-zen #1 ZEN SMP PREEMPT_DYNAMIC Wed, 12 Jun 2024 20:16:55 +0000 x86_64 GNU/Linux
[root@archlinux ]# logkeys --start
/usr/include/c++/13.2.1/bits/basic_string.h:1246: std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::reference std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::operator[](size_type) [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>; reference = char&; size_type = long unsigned int]: Assertion '__pos <= size()' failed.
Aborted (core dumped)
[root@archlinux ]# systemctl status logkeys.service
Unit logkeys.service could not be found.
I already follow this steps
I was able to make it run as a daemon following this guide: https://www.vivaolinux.com.br/dica/rclocal-no-Arch-Linux
[lb@vm ~]$ uname -a Linux vm 6.1.8-arch1-1 #1 SMP PREEMPT_DYNAMIC Tue, 24 Jan 2023 21:07:04 +0000 x86_64 GNU/Linux [lb@vm ~]$
[lb@vm ~]$ llk /usr/include/c++/12.2.1/bits/basic_string.h:1221: std::cxx11::basic_string<_CharT, _Traits, _Alloc>::reference std::cxx11::basic_string<_CharT, _Traits, _Alloc>::operator [with _CharT = char; _Traits = std::char_traits; _Alloc = std::allocator; reference = char&; size_type = long unsigned int]: Assertion '__pos <= size()' failed.
/etc/logkeys-start.sh: line 2: 9492 Aborted (core dumped) logkeys --start
[lb@vm ~]$
[lb@vm ~]$ systemctl status logkeys.service × logkeys.service - Keylogger daemon Loaded: loaded (/usr/lib/systemd/system/logkeys.service; disabled; preset: disabled) Active: failed (Result: core-dump) since Fri 2023-02-03 23:02:20 CET; 20s ago Process: 9605 ExecStart=/usr/bin/logkeys --start $LOGKEYS_PARAMS (code=dumped, signal=ABRT) CPU: 7ms
Feb 03 23:02:20 vm systemd[1]: Starting Keylogger daemon... Feb 03 23:02:20 vm logkeys[9605]: /usr/include/c++/12.2.1/bits/basic_string.h:1221: std::cxx11::basic_string<_CharT, _Traits, _Alloc>::reference std::cxx11::basic_string<_CharT, _Traits, _Alloc>::operator [with _CharT > Feb 03 23:02:20 vm systemd[1]: logkeys.service: Control process exited, code=dumped, status=6/ABRT Feb 03 23:02:20 vm systemd[1]: logkeys.service: Failed with result 'core-dump'. Feb 03 23:02:20 vm systemd[1]: Failed to start Keylogger daemon.
[lb@vm ~]$ journalctl -xeu logkeys.service Feb 03 23:02:20 vm systemd[1]: Starting Keylogger daemon... Subject: A start job for unit logkeys.service has begun execution Defined-By: systemd Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel
A start job for unit logkeys.service has begun execution.
The job identifier is 1759. Feb 03 23:02:20 vm logkeys[9605]: /usr/include/c++/12.2.1/bits/basic_string.h:1221: std::cxx11::basic_string<_CharT, _Traits, _Alloc>::reference std::cxx11::basic_string<_CharT, _Traits, _Alloc>::operator [with _CharT > Feb 03 23:02:20 vm systemd[1]: logkeys.service: Control process exited, code=dumped, status=6/ABRT Subject: Unit process exited Defined-By: systemd Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel
An ExecStart= process belonging to unit logkeys.service has exited.
The process' exit code is 'dumped' and its exit status is 6. Feb 03 23:02:20 vm systemd[1]: logkeys.service: Failed with result 'core-dump'. Subject: Unit failed Defined-By: systemd Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel
The unit logkeys.service has entered the 'failed' state with result 'core-dump'. Feb 03 23:02:20 vm systemd[1]: Failed to start Keylogger daemon. Subject: A start job for unit logkeys.service has failed Defined-By: systemd Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel
A start job for unit logkeys.service has finished with a failure.
The job identifier is 1759 and the job result is failed. lines 1-31/31 (END)