Skip to content

Commit

Permalink
Use earn-app lite and add bitping
Browse files Browse the repository at this point in the history
Official version 1.0 (previous beta 0.5)

- Migrated earnapp to earnapp-lite
- Added Bitping
  • Loading branch information
OlivierGaland committed Jun 25, 2022
1 parent ceff14e commit 2bc9e51
Show file tree
Hide file tree
Showing 5 changed files with 48 additions and 12 deletions.
5 changes: 5 additions & 0 deletions .env
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,11 @@
# Computer name (for display in app dashboard)
DEVICE_NAME=<name>

# Your Earnapp device id : ! must start with sdk-node-<md5sum>
# <md5sum> can be done this way : echo "your random string" | md5sum (get the 32 char result)
# A few time after starting it successfully : register your node on earnapp dashboard : https://earnapp.com/r/<your device id>
EARNAPP_DEVICE_ID=sdk-node-<md5sum>

# Your Honeygain account email
# Your Honeygain account password
HONEYGAIN_EMAIL=<email>
Expand Down
13 changes: 8 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,14 @@ Those tools are using your computer to route traffic, I'm personnally using it r
Installation (you can open www/index.html file to have a more interactive install section) :

- Install linux OS on your host machine (a low consuming and cheap linux compatible box if you want a dedicated computer) or you can use an already set linux server running 24/7 as this software is very low ressources consuming.
- Download CashFactory latest release : wget https://github.com/OlivierGaland/CashFactory/archive/refs/tags/v0.5.tar.gz , then uncompress : tar -xvf v0.5.tar.gz
- Edit created directory name to CashFactory and cd inside : mv CashFactory-0.5 CashFactory ; cd CashFactory
- Download CashFactory latest release in $HOME directory : cd $HOME, then : wget https://github.com/OlivierGaland/CashFactory/archive/refs/tags/v1.0.tar.gz , then uncompress : tar -xvf v1.0.tar.gz
- Edit created directory name to CashFactory and cd inside : mv CashFactory-1.0 CashFactory ; cd CashFactory
- Run install script (Need to run it as sudo -supervisor-) : sudo ./setup.sh
- Create an account for the app(s) you want to use (6 app supported : see Registering section below)
- Create an account for the app(s) you want to use (7 app supported : see Registering section below)
- Update .env file with the account details (put your account informations in defined environment variables)
- (Optional) If you don't want to use all app : comment or delete the corresponding section in docker-compose.yml
- Special procedure for Earnapp : you will need to add your device in the dashboard, to get the id use Portainer to open "exec console" on the Earnapp container (or through ssh enter: docker exec -it cashfactory_Earnapp_1 sh) and type : earnapp showid, to add the device you need to enter this link in your browser https://earnapp.com/r/your-id replacing "your-id" with the id you found earlier with show-id.
- Special procedure for Bitping : you will need to enter manually credential to initialize (TODO : easiest way ?), in $HOME/CashFactory type : sudo docker run -it -v $HOME/CashFactory/data/bitping/:/root/.bitping bitping/bitping-node:latest , then enter your credential , once this is done CTL-C to end container

Registering section and supported cash earning apps :

Expand All @@ -26,8 +27,9 @@ This won't cost you anything and motivate me to maintain this software by adding
- Supported [Register Peer2profit](https://p2pr.me/164081436561ccd71d961f2)
- Supported [Register IPRoyal Pawns](https://iproyal.com/pawns?r=455236)
- Supported [Register Packetstream](https://packetstream.io/?psr=32GQ)
- Supported [Traffmonetizer](https://traffmonetizer.com/?aff=52057)
- Not yet supported [Register Spider Income](https://income.spider.dev/r/galan21l65) : linux version under dev (prerequisite for CashFactory implementation)
- Supported [Register Traffmonetizer](https://traffmonetizer.com/?aff=52057)
- Supported [Register Bitping](https://app.bitping.com?r=XLr65_of) : This tool only pay in crypto (BitcoinSV)
- Not yet supported [Register Spider Income](https://income.spider.dev/r/galan21l65) : linux version under dev (prerequisite for CashFactory implementation). Warning : I get no income on this one since a few monthes

Start/stop procedure :

Expand All @@ -50,6 +52,7 @@ Compatibility :
- Currently tested and running on a NUC computer with Ubuntu 20.04 server / docker 20.10.12 / docker-compose 1.25.0 ; hardware is N3150 celeron processor (4% load average), 8Gb memory (450 Mb used) and 120Gb disk (10 Gb used)
- Should be working on any x86/amd64 computer running Linux+docker with a very basic setup (low end CPU / 1Gb memory / 20Gb disk / 10Mb ethernet adapter)
- Other architecture not yet confirmed to be working (Windows / Mac)
- Confirmed working on ubuntu 20.04 server, 22.04 server
- Confirmed actually not working on Raspberry
- Confirmed working on Synology NAS using VM (ubuntu 20.04 installed)
- You may experience issues with earnapp if using debian : earnapp container exiting with error 255 (prefer using ubuntu 20.04)
Expand Down
29 changes: 25 additions & 4 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,21 +39,28 @@ services:
#End of Portainer + Webserver section

#Start of Earnapp section (remove this if Earnapp not wanted)
# variables to define in .env file :
# EARNAPP_DEVICE_ID : Your node id : sdk-node-<md5sum>
# <md5sum> is a 32 char string containing a-z and 0-9 range :
# ex : Easy way to generate one : echo "random string" | md5sum
# This will print 9f33ffbb8a9dcedb28ea909775a6b0d3 -
# In that case use : sdk-node-9f33ffbb8a9dcedb28ea909775a6b0d3
Earnapp:
depends_on:
- Portainer
- Webserver
image: fazalfarhan01/earnapp
image: fazalfarhan01/earnapp:lite
volumes:
- /sys/fs/cgroup:/sys/fs/cgroup:ro
- earnapp-data:/etc/earnapp
privileged: true
restart: always
environment:
- EARNAPP_UUID=$EARNAPP_DEVICE_ID
networks:
default:
ipv4_address: 172.106.0.20
#End of Earnapp section


#Start of HoneyGain section (remove this if HoneyGain not wanted)
# variables to define in .env file :
# HONEYGAIN_EMAIL : Your Honeygain account email
Expand Down Expand Up @@ -132,6 +139,20 @@ services:
default:
ipv4_address: 172.106.0.61
#End of Packetstream section

#Start of Bitping section (remove this if Bitping not wanted)
Bitping:
depends_on:
- Portainer
- Webserver
image: bitping/bitping-node:latest
restart: always
volumes:
- ./data/bitping:/root/.bitping
networks:
default:
ipv4_address: 172.106.0.70
#End of Bitping section

#Start of TraffMonetizer section (remove this if TraffMonetizer not wanted)
# variables to define in .env file :
Expand All @@ -146,7 +167,7 @@ services:
networks:
default:
ipv4_address: 172.106.0.80
#End of Packetstream section
#End of Packetstream section

volumes:
portainer_data:
Expand Down
4 changes: 4 additions & 0 deletions setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,7 @@ apt-get update
apt-get -y install docker-ce docker-ce-cli containerd.io
systemctl enable docker.service
apt-get -y install docker-compose

mkdir -p data/bitping #create data directory for bitping credentials


9 changes: 6 additions & 3 deletions www/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,9 @@
<button type="button" onclick="window.open('https://dashboard.peer2profit.app/dashboard')">Peer2profit</button></td></tr>
<tr><td><button type="button" onclick="window.open('https://pawns.iproyal.com/')">IPRoyal Pawns</button>
<button type="button" onclick="window.open('https://packetstream.io/dashboard')">Packetstream</button></td></tr>
<tr><td><button type="button" onclick="window.open('https://income.spider.dev/dashboard')">Spider Income</button>
<tr><td><button type="button" onclick="window.open('https://app.bitping.com/earnings')">Bitping</button>
<button type="button" onclick="window.open('https://app.traffmonetizer.com/dashboard')">Traffmonetizer</button></td></tr>
<tr><td><button type="button" onclick="window.open('https://income.spider.dev/dashboard')">Spider Income</button></button></td></tr>
</table>
</div>
<div id="Register" class="tabcontent">
Expand Down Expand Up @@ -71,7 +72,8 @@
<tr><td>IPRoyal Pawns</td><td>Yes</td><td>2</td><td>1</td><td>$0.2</td><td><button type="button" onclick="window.open('https://iproyal.com/pawns?r=455236')">Register</button></td></tr>
<tr><td>Packetstream</td><td>Yes</td><td>2</td><td>2</td><td>$0.1</td><td><button type="button" onclick="window.open('https://packetstream.io/?psr=32GQ')">Register</button></td></tr>
<tr><td>Traffmonetizer</td><td>Yes</td><td>1</td><td>1</td><td>$0.1</td><td><button type="button" onclick="window.open('https://traffmonetizer.com/?aff=52057')">Register</button></td></tr>
<tr><td>Spider Income</td><td>Not yet</td><td>1</td><td>1</td><td>$1</td><td><button type="button" onclick="window.open('https://income.spider.dev/r/galan21l65')">Register</button></td></tr>
<tr><td>Bitping</td><td>Yes</td><td>1</td><td>1</td><td>NA</td><td><button type="button" onclick="window.open('https://app.bitping.com?r=XLr65_of')">Register</button></td></tr>
<tr><td>Spider Income</td><td>Not yet</td><td>0</td><td>1</td><td>$1</td><td><button type="button" onclick="window.open('https://income.spider.dev/r/galan21l65')">Register</button></td></tr>
</table>
<table class="table_text">
<tr><td>
Expand All @@ -95,6 +97,7 @@ <h1>Installation procedure :</h1><br><br>
6) Update .env file with the account details<br><br>
7) (Optional) If you don't want to use all app : comment or delete the corresponding section in docker-compose.yml<br><br>
8) Special procedure for Earnapp : you will need to add your device id in the dashboard, to get the id use Portainer to open "exec console" on the Earnapp container and type : earnapp showid<br><br>
9) Special procedure for Bitping : launch container manually in interactive mode to enter your credential, then exit : sudo docker run -it -v $HOME/CashFactory/data/bitping/:/root/.bitping bitping/bitping-node:latest<br><br>
<br><h1>Start/stop procedure :</h1><br><br>
1) Start stack : sudo docker-compose up -d (in CashFactory directory)<br><br>
2) Stop stack : sudo docker-compose down (in CashFactory directory)<br><br>
Expand Down Expand Up @@ -134,7 +137,7 @@ <h3>I'm happy with the software and want to give you a reward, how can I do that
<table class="table_text">
<tr><td>
<h1>CashFactory</h1><br><br>
Release : beta 0.5 (04/05/2022)<br><br>
Release : 1.0 (25/06/2022)<br><br>
Author : Olivier Galand (contact : [email protected])<br><br>
Project page and support : https://github.com/OlivierGaland/CashFactory<br><br>
This product is free for use and may be copied and distributed freely in its original form.<br>
Expand Down

0 comments on commit 2bc9e51

Please sign in to comment.