-p was triggered with option /opt/app/joy
generating SSH public/private keypair ...
Generating public/private rsa key pair.
Your identification has been saved in upload-key
Your public key has been saved in upload-key.pub
The key fingerprint is:
SHA256:D+3n1teLwnegfHCbWBJkE+dGq85q337LzpMMe3oRZ6E root@admin
The key's randomart image is:
+---[RSA 2048]----+
| ..o |
| ++ .. |
| o .+. .|
| . .oE .o|
| S ... .o|
| +oo = . |
| =oO.B +|
| ..Oo=Oo|
| ...o=BB+|
+----[SHA256]-----+
found Linux (Linux), installing joy ...
stopping service (this might take some time)
DEPRECATION: Python 2.7 reached the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 is no longer maintained. pip 21.0 will drop support for Python 2.7 in January 2021. More details about Python 2 support in pip can be found at https://pip.pypa.io/en/latest/development/release-process/#python-2-support pip 21.0 will remove support for this functionality.
Processing ./sleuth_pkg
Building wheels for collected packages: sleuth
Building wheel for sleuth (setup.py) ... done
Created wheel for sleuth: filename=sleuth-1.0-py2-none-any.whl size=196525 sha256=4203ccc8d07a23c4725af41f8f1d77dc8217ca22ef8678dfb972a8c55fe839ec
Stored in directory: /tmp/pip-ephem-wheel-cache-lzZxSv/wheels/69/67/f0/06bb6913f9203898f5e9d0138a809ccdb453da8c4a8e99cde2
Successfully built sleuth
Installing collected packages: sleuth
Attempting uninstall: sleuth
Found existing installation: sleuth 1.0
Uninstalling sleuth-1.0:
Successfully uninstalled sleuth-1.0
Successfully installed sleuth-1.0
directory /usr/lib/systemd/system already exists
directory /etc/systemd/system/joy.service.d already exists
Created symlink /etc/systemd/system/multi-user.target.wants/joy.service → /lib/systemd/system/joy.service.
directory /etc/logrotate.d already exists
-rwxr-xr-x 1 root root 6237 Sep 30 11:45 /opt/app/joy/bin/joy
ls: cannot access '/opt/app/joy/lib/./libs/libjoy.a': No such file or directory
-rw-r--r-- 1 root root 27411 Sep 30 11:45 /opt/app/joy/include/joy/joy_api.h
-rwxr-xr-x 1 root root 7373 Sep 30 11:45 /opt/app/joy/bin/sleuth
-rw-r--r-- 1 root root 174 Sep 30 11:45 /opt/app/joy/etc/joy/internal.net
-rw-r--r-- 1 root root 6170 Sep 30 11:45 /opt/app/joy/etc/joy/options.cfg
-rw-r--r-- 1 root root 81708 Sep 30 11:45 /opt/app/joy/etc/joy/tls_fingerprint.json
-rw------- 1 root root 1823 Sep 30 11:45 /opt/app/joy/etc/joy/upload-key
-rw-r--r-- 1 root root 31474 Sep 30 11:45 /opt/app/joy/share/man/man1/joy.1
-rw-r--r-- 1 root root 335 Sep 30 11:45 /usr/lib/systemd/system/joy.service
-rw-r--r-- 1 root root 51 Sep 30 11:45 /etc/systemd/system/joy.service.d/20-accounting.conf
● joy.service - Advanced network flow data capture
Loaded: loaded (/lib/systemd/system/joy.service; enabled; vendor preset: enabled)
Drop-In: /etc/systemd/system/joy.service.d
└─20-accounting.conf
Active: activating (auto-restart) (Result: exit-code) since Thu 2021-09-30 11:45:18 UTC; 26ms ago
Docs: man:joy(1)
Process: 26641 ExecStart=/usr/local/bin/joy -x ${CONFIGFILE} (code=exited, status=203/EXEC)
Main PID: 26641 (code=exited, status=203/EXEC)
CPU: 572us
-rw-r--r-- 1 root root 236 Sep 30 11:45 /etc/logrotate.d/joy
done
A new SSH key was generated, and its private key was installed in
the /opt/app/joy/etc/joy directory. To use this key to authenticate scp
connections to a server that copy the JSON files, you will need to
provide the public key upload-key.pub to the server administrator,
as it needs to be installed in the ./ssh/known_hosts file.
admin@admin:/opt/source/joy$ /opt/app/joy/bin/
joy sleuth uninstall-joy
admin@admin:/opt/source/joy$ /opt/app/joy/bin/joy
/opt/app/joy/bin/joy: error: `/opt/app/joy/bin/.libs/joy' does not exist
This script is just a wrapper for joy.
See the libtool documentation for more information.
sudo make install
creating /opt/source/joy/sleuth_pkg/dist
Creating tar archive
removing 'build/bdist.linux-x86_64/dumb' (and everything under it)
tar -xf "sleuth_pkg/dist/sleuth-1.0.linux-x86_64.tar.gz" -C
tar: option requires an argument -- 'C'
Try 'tar --help' or 'tar --usage' for more information.
make[3]: [Makefile:853: install-data-hook] Error 64
make[3]: Leaving directory '/opt/source/joy'
make[2]: [Makefile:749: install-data-am] Error 2
make[2]: Leaving directory '/opt/source/joy'
make[1]: [Makefile:701: install-am] Error 2
make[1]: Leaving directory '/opt/source/joy'
make: [Makefile:410: install-recursive] Error 1
Used two menthods to install ,but ...
sudo ./install_joy/install-sh -p /opt/app/joy
sudo ./install_joy/install-sh -p /opt/app/joy
JOY INSTALL-SH
-p was triggered with option /opt/app/joy generating SSH public/private keypair ... Generating public/private rsa key pair. Your identification has been saved in upload-key Your public key has been saved in upload-key.pub The key fingerprint is: SHA256:D+3n1teLwnegfHCbWBJkE+dGq85q337LzpMMe3oRZ6E root@admin The key's randomart image is: +---[RSA 2048]----+ | ..o | | ++ .. | | o .+. .| | . .oE .o| | S ... .o| | +oo = . | | =oO.B +| | ..Oo=Oo| | ...o=BB+| +----[SHA256]-----+ found Linux (Linux), installing joy ... stopping service (this might take some time) DEPRECATION: Python 2.7 reached the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 is no longer maintained. pip 21.0 will drop support for Python 2.7 in January 2021. More details about Python 2 support in pip can be found at https://pip.pypa.io/en/latest/development/release-process/#python-2-support pip 21.0 will remove support for this functionality. Processing ./sleuth_pkg Building wheels for collected packages: sleuth Building wheel for sleuth (setup.py) ... done Created wheel for sleuth: filename=sleuth-1.0-py2-none-any.whl size=196525 sha256=4203ccc8d07a23c4725af41f8f1d77dc8217ca22ef8678dfb972a8c55fe839ec Stored in directory: /tmp/pip-ephem-wheel-cache-lzZxSv/wheels/69/67/f0/06bb6913f9203898f5e9d0138a809ccdb453da8c4a8e99cde2 Successfully built sleuth Installing collected packages: sleuth Attempting uninstall: sleuth Found existing installation: sleuth 1.0 Uninstalling sleuth-1.0: Successfully uninstalled sleuth-1.0 Successfully installed sleuth-1.0 directory /usr/lib/systemd/system already exists directory /etc/systemd/system/joy.service.d already exists Created symlink /etc/systemd/system/multi-user.target.wants/joy.service → /lib/systemd/system/joy.service. directory /etc/logrotate.d already exists -rwxr-xr-x 1 root root 6237 Sep 30 11:45 /opt/app/joy/bin/joy ls: cannot access '/opt/app/joy/lib/./libs/libjoy.a': No such file or directory -rw-r--r-- 1 root root 27411 Sep 30 11:45 /opt/app/joy/include/joy/joy_api.h -rwxr-xr-x 1 root root 7373 Sep 30 11:45 /opt/app/joy/bin/sleuth -rw-r--r-- 1 root root 174 Sep 30 11:45 /opt/app/joy/etc/joy/internal.net -rw-r--r-- 1 root root 6170 Sep 30 11:45 /opt/app/joy/etc/joy/options.cfg -rw-r--r-- 1 root root 81708 Sep 30 11:45 /opt/app/joy/etc/joy/tls_fingerprint.json -rw------- 1 root root 1823 Sep 30 11:45 /opt/app/joy/etc/joy/upload-key -rw-r--r-- 1 root root 31474 Sep 30 11:45 /opt/app/joy/share/man/man1/joy.1 -rw-r--r-- 1 root root 335 Sep 30 11:45 /usr/lib/systemd/system/joy.service -rw-r--r-- 1 root root 51 Sep 30 11:45 /etc/systemd/system/joy.service.d/20-accounting.conf ● joy.service - Advanced network flow data capture Loaded: loaded (/lib/systemd/system/joy.service; enabled; vendor preset: enabled) Drop-In: /etc/systemd/system/joy.service.d └─20-accounting.conf Active: activating (auto-restart) (Result: exit-code) since Thu 2021-09-30 11:45:18 UTC; 26ms ago Docs: man:joy(1) Process: 26641 ExecStart=/usr/local/bin/joy -x ${CONFIGFILE} (code=exited, status=203/EXEC) Main PID: 26641 (code=exited, status=203/EXEC) CPU: 572us -rw-r--r-- 1 root root 236 Sep 30 11:45 /etc/logrotate.d/joy done
A new SSH key was generated, and its private key was installed in the /opt/app/joy/etc/joy directory. To use this key to authenticate scp connections to a server that copy the JSON files, you will need to provide the public key upload-key.pub to the server administrator, as it needs to be installed in the ./ssh/known_hosts file. admin@admin:/opt/source/joy$ /opt/app/joy/bin/ joy sleuth uninstall-joy
admin@admin:/opt/source/joy$ /opt/app/joy/bin/joy /opt/app/joy/bin/joy: error: `/opt/app/joy/bin/.libs/joy' does not exist This script is just a wrapper for joy. See the libtool documentation for more information.
sudo make install creating /opt/source/joy/sleuth_pkg/dist Creating tar archive removing 'build/bdist.linux-x86_64/dumb' (and everything under it) tar -xf "sleuth_pkg/dist/sleuth-1.0.linux-x86_64.tar.gz" -C tar: option requires an argument -- 'C' Try 'tar --help' or 'tar --usage' for more information. make[3]: [Makefile:853: install-data-hook] Error 64 make[3]: Leaving directory '/opt/source/joy' make[2]: [Makefile:749: install-data-am] Error 2 make[2]: Leaving directory '/opt/source/joy' make[1]: [Makefile:701: install-am] Error 2 make[1]: Leaving directory '/opt/source/joy' make: [Makefile:410: install-recursive] Error 1