Created
February 1, 2021 11:29
-
-
Save Kreyren/6af81ca6f52c7862564c27fb0c983e6c to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
root@d6ef928b56a6:/# echo "deb https://deb.oxen.io $(lsb_release -sc) main" | tee /etc/apt/sources.list.d/oxen.list | |
deb https://deb.oxen.io sid main | |
root@d6ef928b56a6:/# apt-get update | |
Hit:1 http://deb.debian.org/debian unstable InRelease | |
Get:2 https://deb.oxen.io sid InRelease [4695 B] | |
Get:3 https://deb.oxen.io sid/main amd64 Packages [19.2 kB] | |
Fetched 23.9 kB in 1s (25.8 kB/s) | |
Reading package lists... Done | |
root@d6ef928b56a6:/# apt-get install openrc -y | |
Reading package lists... Done | |
Building dependency tree | |
Reading state information... Done | |
The following additional packages will be installed: | |
insserv libeinfo1 librc1 | |
Suggested packages: | |
bootchart2 sysvinit-core policycoreutils | |
The following NEW packages will be installed: | |
insserv libeinfo1 librc1 openrc | |
0 upgraded, 4 newly installed, 0 to remove and 30 not upgraded. | |
Need to get 315 kB of archives. | |
After this operation, 2401 kB of additional disk space will be used. | |
Get:1 http://deb.debian.org/debian unstable/main amd64 insserv amd64 1.21.0-1 [68.9 kB] | |
Get:2 http://deb.debian.org/debian unstable/main amd64 libeinfo1 amd64 0.42-2 [25.6 kB] | |
Get:3 http://deb.debian.org/debian unstable/main amd64 librc1 amd64 0.42-2 [43.4 kB] | |
Get:4 http://deb.debian.org/debian unstable/main amd64 openrc amd64 0.42-2 [177 kB] | |
Fetched 315 kB in 1s (581 kB/s) | |
debconf: delaying package configuration, since apt-utils is not installed | |
Selecting previously unselected package insserv. | |
(Reading database ... 10232 files and directories currently installed.) | |
Preparing to unpack .../insserv_1.21.0-1_amd64.deb ... | |
Unpacking insserv (1.21.0-1) ... | |
Selecting previously unselected package libeinfo1:amd64. | |
Preparing to unpack .../libeinfo1_0.42-2_amd64.deb ... | |
Unpacking libeinfo1:amd64 (0.42-2) ... | |
Selecting previously unselected package librc1:amd64. | |
Preparing to unpack .../librc1_0.42-2_amd64.deb ... | |
Unpacking librc1:amd64 (0.42-2) ... | |
Selecting previously unselected package openrc. | |
Preparing to unpack .../openrc_0.42-2_amd64.deb ... | |
Unpacking openrc (0.42-2) ... | |
Setting up libeinfo1:amd64 (0.42-2) ... | |
Setting up librc1:amd64 (0.42-2) ... | |
Setting up insserv (1.21.0-1) ... | |
Setting up openrc (0.42-2) ... | |
Add existing services ... | |
* service hwclock.sh added to runlevel sysinit | |
* service savecache added to runlevel off | |
* service cgroups added to runlevel sysinit | |
* Caching service dependencies ... | |
Service `hwclock.sh' needs non existent service `mountdevsubfs' [ ok ] | |
********************************************************************** | |
*** WARNING: if you are replacing sysv-rc by OpenRC, then you must *** | |
*** reboot immediately using the following command: *** | |
for file in /etc/rc0.d/K*; do s=`basename $(readlink "$file")` ; /etc/init.d/$s stop; done | |
********************************************************************** | |
Processing triggers for libc-bin (2.31-9) ... | |
root@d6ef928b56a6:/# apt-get install ./oxend.deb ./liboxen.deb | |
Reading package lists... Done | |
Building dependency tree | |
Reading state information... Done | |
Note, selecting 'oxend' instead of './oxend.deb' | |
Note, selecting 'liboxen8.1.5' instead of './liboxen.deb' | |
The following additional packages will be installed: | |
libboost-program-options1.74.0 libboost-serialization1.74.0 libboost-thread1.74.0 libcurl3-nss libevent-2.1-7 libhidapi-libusb0 | |
libminiupnpc17 libnorm1 libnspr4 libnss3 liboxenmq1.2.3 libpgm-5.3-0 libsodium23 libunbound8 libusb-1.0-0 libzmq5 | |
Suggested packages: | |
minissdpd oxen-blockchain-tools oxen-wallet-cli | |
The following NEW packages will be installed: | |
libboost-program-options1.74.0 libboost-serialization1.74.0 libboost-thread1.74.0 libcurl3-nss libevent-2.1-7 libhidapi-libusb0 | |
libminiupnpc17 libnorm1 libnspr4 libnss3 liboxen8.1.5 liboxenmq1.2.3 libpgm-5.3-0 libsodium23 libunbound8 libusb-1.0-0 libzmq5 oxend | |
0 upgraded, 18 newly installed, 0 to remove and 30 not upgraded. | |
Need to get 8081 kB/8545 kB of archives. | |
After this operation, 35.1 MB of additional disk space will be used. | |
Do you want to continue? [Y/n] | |
Get:1 /oxend.deb oxend amd64 8.1.5-1 [464 kB] | |
Get:2 http://deb.debian.org/debian unstable/main amd64 libboost-program-options1.74.0 amd64 1.74.0-8 [356 kB] | |
Get:3 http://deb.debian.org/debian unstable/main amd64 libboost-serialization1.74.0 amd64 1.74.0-8 [340 kB] | |
Get:4 http://deb.debian.org/debian unstable/main amd64 libboost-thread1.74.0 amd64 1.74.0-8 [279 kB] | |
Get:5 http://deb.debian.org/debian unstable/main amd64 libnspr4 amd64 2:4.29-1 [112 kB] | |
Get:6 http://deb.debian.org/debian unstable/main amd64 libnss3 amd64 2:3.60-1 [1303 kB] | |
Get:7 https://deb.oxen.io sid/main amd64 liboxenmq1.2.3 amd64 1.2.3-2 [168 kB] | |
Get:8 http://deb.debian.org/debian unstable/main amd64 libcurl3-nss amd64 7.74.0-1 [345 kB] | |
Get:9 http://deb.debian.org/debian unstable/main amd64 libevent-2.1-7 amd64 2.1.12-stable-1 [188 kB] | |
Get:10 http://deb.debian.org/debian unstable/main amd64 libusb-1.0-0 amd64 2:1.0.24-2 [60.1 kB] | |
Get:11 http://deb.debian.org/debian unstable/main amd64 libhidapi-libusb0 amd64 0.10.1+dfsg-1 [14.8 kB] | |
Get:12 http://deb.debian.org/debian unstable/main amd64 libminiupnpc17 amd64 2.2.1-1 [34.7 kB] | |
Get:13 http://deb.debian.org/debian unstable/main amd64 libnorm1 amd64 1.5.9+dfsg-1 [221 kB] | |
Get:14 https://deb.oxen.io sid/main amd64 liboxen8.1.5 amd64 8.1.5-1 [3557 kB] | |
Get:15 http://deb.debian.org/debian unstable/main amd64 libsodium23 amd64 1.0.18-1 [161 kB] | |
Get:16 http://deb.debian.org/debian unstable/main amd64 libpgm-5.3-0 amd64 5.3.128~dfsg-2 [161 kB] | |
Get:17 http://deb.debian.org/debian unstable/main amd64 libzmq5 amd64 4.3.3-6 [274 kB] | |
Get:18 http://deb.debian.org/debian unstable/main amd64 libunbound8 amd64 1.13.0-1 [506 kB] | |
Fetched 8081 kB in 3s (2442 kB/s) | |
debconf: delaying package configuration, since apt-utils is not installed | |
Selecting previously unselected package libboost-program-options1.74.0:amd64. | |
(Reading database ... 10384 files and directories currently installed.) | |
Preparing to unpack .../00-libboost-program-options1.74.0_1.74.0-8_amd64.deb ... | |
Unpacking libboost-program-options1.74.0:amd64 (1.74.0-8) ... | |
Selecting previously unselected package libboost-serialization1.74.0:amd64. | |
Preparing to unpack .../01-libboost-serialization1.74.0_1.74.0-8_amd64.deb ... | |
Unpacking libboost-serialization1.74.0:amd64 (1.74.0-8) ... | |
Selecting previously unselected package libboost-thread1.74.0:amd64. | |
Preparing to unpack .../02-libboost-thread1.74.0_1.74.0-8_amd64.deb ... | |
Unpacking libboost-thread1.74.0:amd64 (1.74.0-8) ... | |
Selecting previously unselected package libnspr4:amd64. | |
Preparing to unpack .../03-libnspr4_2%3a4.29-1_amd64.deb ... | |
Unpacking libnspr4:amd64 (2:4.29-1) ... | |
Selecting previously unselected package libnss3:amd64. | |
Preparing to unpack .../04-libnss3_2%3a3.60-1_amd64.deb ... | |
Unpacking libnss3:amd64 (2:3.60-1) ... | |
Selecting previously unselected package libcurl3-nss:amd64. | |
Preparing to unpack .../05-libcurl3-nss_7.74.0-1_amd64.deb ... | |
Unpacking libcurl3-nss:amd64 (7.74.0-1) ... | |
Selecting previously unselected package libevent-2.1-7:amd64. | |
Preparing to unpack .../06-libevent-2.1-7_2.1.12-stable-1_amd64.deb ... | |
Unpacking libevent-2.1-7:amd64 (2.1.12-stable-1) ... | |
Selecting previously unselected package libusb-1.0-0:amd64. | |
Preparing to unpack .../07-libusb-1.0-0_2%3a1.0.24-2_amd64.deb ... | |
Unpacking libusb-1.0-0:amd64 (2:1.0.24-2) ... | |
Selecting previously unselected package libhidapi-libusb0:amd64. | |
Preparing to unpack .../08-libhidapi-libusb0_0.10.1+dfsg-1_amd64.deb ... | |
Unpacking libhidapi-libusb0:amd64 (0.10.1+dfsg-1) ... | |
Selecting previously unselected package libminiupnpc17:amd64. | |
Preparing to unpack .../09-libminiupnpc17_2.2.1-1_amd64.deb ... | |
Unpacking libminiupnpc17:amd64 (2.2.1-1) ... | |
Selecting previously unselected package libnorm1:amd64. | |
Preparing to unpack .../10-libnorm1_1.5.9+dfsg-1_amd64.deb ... | |
Unpacking libnorm1:amd64 (1.5.9+dfsg-1) ... | |
Selecting previously unselected package libsodium23:amd64. | |
Preparing to unpack .../11-libsodium23_1.0.18-1_amd64.deb ... | |
Unpacking libsodium23:amd64 (1.0.18-1) ... | |
Selecting previously unselected package libpgm-5.3-0:amd64. | |
Preparing to unpack .../12-libpgm-5.3-0_5.3.128~dfsg-2_amd64.deb ... | |
Unpacking libpgm-5.3-0:amd64 (5.3.128~dfsg-2) ... | |
Selecting previously unselected package libzmq5:amd64. | |
Preparing to unpack .../13-libzmq5_4.3.3-6_amd64.deb ... | |
Unpacking libzmq5:amd64 (4.3.3-6) ... | |
Selecting previously unselected package liboxenmq1.2.3. | |
Preparing to unpack .../14-liboxenmq1.2.3_1.2.3-2_amd64.deb ... | |
Unpacking liboxenmq1.2.3 (1.2.3-2) ... | |
Selecting previously unselected package libunbound8:amd64. | |
Preparing to unpack .../15-libunbound8_1.13.0-1_amd64.deb ... | |
Unpacking libunbound8:amd64 (1.13.0-1) ... | |
Selecting previously unselected package liboxen8.1.5. | |
Preparing to unpack .../16-liboxen8.1.5_8.1.5-1_amd64.deb ... | |
Unpacking liboxen8.1.5 (8.1.5-1) ... | |
Selecting previously unselected package oxend. | |
Preparing to unpack .../17-oxend.deb ... | |
Unpacking oxend (8.1.5-1) ... | |
Setting up libsodium23:amd64 (1.0.18-1) ... | |
Setting up libboost-program-options1.74.0:amd64 (1.74.0-8) ... | |
Setting up libpgm-5.3-0:amd64 (5.3.128~dfsg-2) ... | |
Setting up libnorm1:amd64 (1.5.9+dfsg-1) ... | |
Setting up libminiupnpc17:amd64 (2.2.1-1) ... | |
Setting up libnspr4:amd64 (2:4.29-1) ... | |
Setting up libevent-2.1-7:amd64 (2.1.12-stable-1) ... | |
Setting up libboost-serialization1.74.0:amd64 (1.74.0-8) ... | |
Setting up libusb-1.0-0:amd64 (2:1.0.24-2) ... | |
Setting up libboost-thread1.74.0:amd64 (1.74.0-8) ... | |
Setting up libzmq5:amd64 (4.3.3-6) ... | |
Setting up libnss3:amd64 (2:3.60-1) ... | |
Setting up libunbound8:amd64 (1.13.0-1) ... | |
Setting up libhidapi-libusb0:amd64 (0.10.1+dfsg-1) ... | |
Setting up libcurl3-nss:amd64 (7.74.0-1) ... | |
Setting up liboxenmq1.2.3 (1.2.3-2) ... | |
Setting up liboxen8.1.5 (8.1.5-1) ... | |
Setting up oxend (8.1.5-1) ... | |
insserv: warning: script 'cgroups' missing LSB tags | |
insserv: Default-Start undefined, assuming empty start runlevel(s) for script `cgroups' | |
insserv: Default-Stop undefined, assuming empty stop runlevel(s) for script `cgroups' | |
invoke-rc.d: could not determine current runlevel | |
invoke-rc.d: policy-rc.d denied execution of start. | |
Processing triggers for libc-bin (2.31-9) ... | |
root@d6ef928b56a6:/# cat /etc/init.d/oxen-node | |
#!/bin/sh | |
# shellcheck shell=sh # Written to comply with IEEE Std 1003.1-2017 | |
# shellcheck disable=SC2034 # Krey: OpenRC is using variables that are not expected to be set | |
# Generated by sysd2v v0.3 -- http://www.trek.eu.org/devel/sysd2v | |
# kFreeBSD do not accept scripts as interpreters, using #!/bin/sh and sourcing. | |
if [ true != "$INIT_D_SCRIPT_SOURCED" ] ; then | |
set "$0" "$@"; INIT_D_SCRIPT_SOURCED=true . /lib/init/init-d-script | |
fi | |
### BEGIN INIT INFO | |
# Provides: oxen-node | |
# Required-Start: $remote_fs | |
# Required-Stop: $remote_fs | |
# Should-Start: $network | |
# Should-Stop: $network | |
# X-Start-Before: loki-storage | |
# X-Stop-After: loki-storage | |
# Default-Start: 2 3 4 5 | |
# Default-Stop: 0 1 6 | |
# Description: Oxen network node | |
### END INIT INFO | |
set -a | |
TERM=xterm | |
set +a | |
DESC="oxen-node" | |
DAEMON="/usr/bin/oxend" | |
DAEMON_ARGS="--non-interactive --config-file /etc/oxen/oxen.conf" | |
PIDFILE="/var/run/oxen-node.pid" | |
START_ARGS="--user _loki --chuid _loki --chdir /var/lib/oxen --background --make-pidfile --notify-await" # --notify-timeout infinity | |
STOP_ARGS="--user _loki" | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment