mirror of
https://git.wownero.com/qvqc/wowbox.git
synced 2024-08-15 03:15:24 +00:00
wowbox init
This commit is contained in:
parent
797c4e7384
commit
ea52c58125
14 changed files with 97 additions and 6 deletions
8
build.sh
Normal file → Executable file
8
build.sh
Normal file → Executable file
|
@ -4,6 +4,9 @@ buildHash=$(git rev-parse --short HEAD)
|
||||||
##update submodules
|
##update submodules
|
||||||
git submodule update --init --recursive --remote
|
git submodule update --init --recursive --remote
|
||||||
|
|
||||||
|
##copy splash
|
||||||
|
cp splash.png external/void-mklive/data/splash.png
|
||||||
|
|
||||||
##build wowbox with sudo
|
##build wowbox with sudo
|
||||||
cd external/void-mklive
|
cd external/void-mklive
|
||||||
make
|
make
|
||||||
|
@ -12,4 +15,7 @@ sudo ./mklive.sh \
|
||||||
-I ../../include \
|
-I ../../include \
|
||||||
-o ../../wowbox-x86_64-$buildHash.iso \
|
-o ../../wowbox-x86_64-$buildHash.iso \
|
||||||
-p "grub-i386-efi grub-x86_64-efi dialog cryptsetup lvm2 \
|
-p "grub-i386-efi grub-x86_64-efi dialog cryptsetup lvm2 \
|
||||||
mdadm tor i2pd pwgen openntpd monero gnupg2 dillo curl"
|
mdadm tor i2pd pwgen openntpd gnupg2 dillo curl \
|
||||||
|
openssl-devel boost-devel libldns-devel libunwind-devel \
|
||||||
|
readline-devel unbound-devel miniupnpc-devel expat-devel \
|
||||||
|
cppzmq czmq-devel libsodium-devel nano alsa-utils mplayer"
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
[wowbox]
|
[wowbox-p2p]
|
||||||
type = http
|
type = http
|
||||||
host = 127.0.0.1
|
host = 127.0.0.1
|
||||||
port = 34568
|
port = 34565
|
||||||
keys = wowbox.dat
|
keys = wowbox.dat
|
16
include/etc/issue
Normal file
16
include/etc/issue
Normal file
|
@ -0,0 +1,16 @@
|
||||||
|
###############################################################################
|
||||||
|
|
||||||
|
Welcome to LazyFuckOS!
|
||||||
|
|
||||||
|
Tor/i2p setup complete. Wownero is now syncing...
|
||||||
|
|
||||||
|
Two users are available to log in:
|
||||||
|
|
||||||
|
- root:lazyfuck
|
||||||
|
- anon:lazyfuck
|
||||||
|
|
||||||
|
To view wownero output type: `wowlog`
|
||||||
|
|
||||||
|
To listen to Radio Wownero type: `radiowow`
|
||||||
|
|
||||||
|
###############################################################################
|
|
@ -11,3 +11,5 @@ restricted-rpc=1
|
||||||
rpc-bind-ip=0.0.0.0
|
rpc-bind-ip=0.0.0.0
|
||||||
rpc-bind-port=34568
|
rpc-bind-port=34568
|
||||||
testnet=1
|
testnet=1
|
||||||
|
tx-proxy=tor,127.0.0.1:9050,23
|
||||||
|
tx-proxy=i2p,127.0.0.1:4447,23
|
||||||
|
|
2
include/etc/rc.local
Executable file
2
include/etc/rc.local
Executable file
|
@ -0,0 +1,2 @@
|
||||||
|
|
||||||
|
/usr/bin/wowboxSetup.sh &
|
|
@ -1,3 +1,3 @@
|
||||||
HiddenServiceDir /var/lib/tor/wowbox/
|
HiddenServiceDir /var/lib/tor/wowbox/
|
||||||
HiddenServicePort 34568 127.0.0.1:34568
|
HiddenServicePort 34568 127.0.0.1:34568
|
||||||
User tor
|
HiddenServicePort 34566 127.0.0.1:34566
|
||||||
|
|
25
include/etc/wownerod.conf
Normal file
25
include/etc/wownerod.conf
Normal file
|
@ -0,0 +1,25 @@
|
||||||
|
prune-blockchain=1
|
||||||
|
sync-pruned-blocks=1
|
||||||
|
check-updates=disabled
|
||||||
|
data-dir=/var/lib/wownero
|
||||||
|
log-file=/var/log/wownero/wownero.log
|
||||||
|
log-level=0
|
||||||
|
no-igd=1
|
||||||
|
no-zmq=1
|
||||||
|
restricted-rpc=1
|
||||||
|
p2p-bind-ip=0.0.0.0
|
||||||
|
p2p-bind-port=34567
|
||||||
|
public-node=1
|
||||||
|
confirm-external-bind=1
|
||||||
|
rpc-bind-ip=0.0.0.0
|
||||||
|
rpc-bind-port=34568
|
||||||
|
rpc-ssl=autodetect
|
||||||
|
disable-rpc-ban=1
|
||||||
|
db-sync-mode=safe
|
||||||
|
out-peers=64
|
||||||
|
in-peers=64
|
||||||
|
limit-rate-up=1048576
|
||||||
|
limit-rate-down=1048576
|
||||||
|
tx-proxy=tor,127.0.0.1:9050,23
|
||||||
|
tx-proxy=i2p,127.0.0.1:4447,23
|
||||||
|
|
3
include/usr/bin/radiowow
Executable file
3
include/usr/bin/radiowow
Executable file
|
@ -0,0 +1,3 @@
|
||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
mplayer https://radio.wownero.com/wow.ogg
|
34
include/usr/bin/wowboxSetup.sh
Executable file
34
include/usr/bin/wowboxSetup.sh
Executable file
|
@ -0,0 +1,34 @@
|
||||||
|
#!/bin/bash
|
||||||
|
amixer -c 0 set Master playback 100% unmute > /dev/null 2>&1
|
||||||
|
(echo 'lazyfuck'; echo 'lazyfuck') | passwd root > /dev/null 2>&1
|
||||||
|
(echo 'lazyfuck'; echo 'lazyfuck') | passwd anon > /dev/null 2>&1
|
||||||
|
|
||||||
|
sleep 25
|
||||||
|
|
||||||
|
rawi2p=$(ls -1 /var/lib/i2pd/destinations/ | head -n1)
|
||||||
|
i2p=${rawi2p%.*}.b32.i2p
|
||||||
|
echo "anonymous-inbound="$i2p":34565,127.0.0.1:34565,64" >> /etc/wownerod.conf
|
||||||
|
|
||||||
|
onion=$(cat /var/lib/tor/wowbox/hostname)
|
||||||
|
echo "anonymous-inbound="$onion":34566,127.0.0.1:34566,64" >> /etc/wownerod.conf
|
||||||
|
|
||||||
|
failService=$(curl https://monero.fail/?crypto=wownero 2>&1 | grep -Eo "(http|https)://[a-zA-Z0-9./?=_%:-]*" | grep "34568" | sort -u | sed -E 's/^\s*.*:\/\///g' | sed -e 's/^/add-peer=/')
|
||||||
|
echo $failService|tr " " "\n" >> /etc/wownerod.conf
|
||||||
|
|
||||||
|
|
||||||
|
useradd wownero -U -b /var/lib/wownero
|
||||||
|
mkdir /var/log/wownero
|
||||||
|
chown wownero:wownero /var/lib/wownero
|
||||||
|
chown wownero:wownero /var/log/wownero
|
||||||
|
|
||||||
|
mkdir -p /etc/sv/wownerod
|
||||||
|
echo "#!/bin/sh" >> /etc/sv/wownerod/run
|
||||||
|
echo "exec chpst -u wownero:wownero /usr/bin/wownerod --non-interactive --config-file /etc/wownerod.conf > /dev/null 2>&1" >> /etc/sv/wownerod/run
|
||||||
|
chmod +x /etc/sv/wownerod/run
|
||||||
|
ln -s /etc/sv/wownerod /var/service/.
|
||||||
|
|
||||||
|
|
||||||
|
echo "### YOUR PUBLIC ONION###"
|
||||||
|
echo $onion
|
||||||
|
echo "### YOUR PUBLIC I2P###"
|
||||||
|
echo $i2p
|
3
include/usr/bin/wowlog
Executable file
3
include/usr/bin/wowlog
Executable file
|
@ -0,0 +1,3 @@
|
||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
tail -f /var/log/wownero/wownero.log
|
BIN
include/usr/bin/wownero-wallet-cli
Executable file
BIN
include/usr/bin/wownero-wallet-cli
Executable file
Binary file not shown.
BIN
include/usr/bin/wownero-wallet-rpc
Executable file
BIN
include/usr/bin/wownero-wallet-rpc
Executable file
Binary file not shown.
BIN
include/usr/bin/wownerod
Executable file
BIN
include/usr/bin/wownerod
Executable file
Binary file not shown.
BIN
splash.png
Normal file
BIN
splash.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 824 KiB |
Loading…
Reference in a new issue