diff --git a/build.sh b/build.sh old mode 100644 new mode 100755 index fc91067..76df8b7 --- a/build.sh +++ b/build.sh @@ -4,6 +4,9 @@ buildHash=$(git rev-parse --short HEAD) ##update submodules git submodule update --init --recursive --remote +##copy splash +cp splash.png external/void-mklive/data/splash.png + ##build wowbox with sudo cd external/void-mklive make @@ -12,4 +15,7 @@ sudo ./mklive.sh \ -I ../../include \ -o ../../wowbox-x86_64-$buildHash.iso \ -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" diff --git a/include/etc/i2pd/tunnels.conf b/include/etc/i2pd/tunnels.conf index cb3ff2e..78e1e8f 100644 --- a/include/etc/i2pd/tunnels.conf +++ b/include/etc/i2pd/tunnels.conf @@ -1,5 +1,5 @@ -[wowbox] +[wowbox-p2p] type = http host = 127.0.0.1 -port = 34568 -keys = wowbox.dat \ No newline at end of file +port = 34565 +keys = wowbox.dat diff --git a/include/etc/issue b/include/etc/issue new file mode 100644 index 0000000..7f8043e --- /dev/null +++ b/include/etc/issue @@ -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` + +############################################################################### diff --git a/include/etc/monerod.conf b/include/etc/monerod.conf index 2f1aefb..4da4065 100644 --- a/include/etc/monerod.conf +++ b/include/etc/monerod.conf @@ -10,4 +10,6 @@ public-node=1 restricted-rpc=1 rpc-bind-ip=0.0.0.0 rpc-bind-port=34568 -testnet=1 \ No newline at end of file +testnet=1 +tx-proxy=tor,127.0.0.1:9050,23 +tx-proxy=i2p,127.0.0.1:4447,23 diff --git a/include/etc/rc.local b/include/etc/rc.local new file mode 100755 index 0000000..f56de9e --- /dev/null +++ b/include/etc/rc.local @@ -0,0 +1,2 @@ + +/usr/bin/wowboxSetup.sh & diff --git a/include/etc/tor/torrc b/include/etc/tor/torrc index a7b5dac..39cdbcd 100644 --- a/include/etc/tor/torrc +++ b/include/etc/tor/torrc @@ -1,3 +1,3 @@ HiddenServiceDir /var/lib/tor/wowbox/ HiddenServicePort 34568 127.0.0.1:34568 -User tor +HiddenServicePort 34566 127.0.0.1:34566 diff --git a/include/etc/wownerod.conf b/include/etc/wownerod.conf new file mode 100644 index 0000000..8610df3 --- /dev/null +++ b/include/etc/wownerod.conf @@ -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 + diff --git a/include/usr/bin/radiowow b/include/usr/bin/radiowow new file mode 100755 index 0000000..6afd649 --- /dev/null +++ b/include/usr/bin/radiowow @@ -0,0 +1,3 @@ +#!/bin/bash + +mplayer https://radio.wownero.com/wow.ogg diff --git a/include/usr/bin/wowboxSetup.sh b/include/usr/bin/wowboxSetup.sh new file mode 100755 index 0000000..4738d6f --- /dev/null +++ b/include/usr/bin/wowboxSetup.sh @@ -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 diff --git a/include/usr/bin/wowlog b/include/usr/bin/wowlog new file mode 100755 index 0000000..2207db4 --- /dev/null +++ b/include/usr/bin/wowlog @@ -0,0 +1,3 @@ +#!/bin/bash + +tail -f /var/log/wownero/wownero.log diff --git a/include/usr/bin/wownero-wallet-cli b/include/usr/bin/wownero-wallet-cli new file mode 100755 index 0000000..0cb0752 Binary files /dev/null and b/include/usr/bin/wownero-wallet-cli differ diff --git a/include/usr/bin/wownero-wallet-rpc b/include/usr/bin/wownero-wallet-rpc new file mode 100755 index 0000000..7382b40 Binary files /dev/null and b/include/usr/bin/wownero-wallet-rpc differ diff --git a/include/usr/bin/wownerod b/include/usr/bin/wownerod new file mode 100755 index 0000000..a03c7de Binary files /dev/null and b/include/usr/bin/wownerod differ diff --git a/splash.png b/splash.png new file mode 100644 index 0000000..79befc0 Binary files /dev/null and b/splash.png differ