-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcrypto.sh
79 lines (77 loc) · 5.45 KB
/
crypto.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
#!/bin/bash
clear
GREEN='\033[0;32m'
NC='\033[0m' # No Color
RED='\033[0;31m'
echo -e "${GREEN} ${NC}██████${GREEN}╗${NC}██████${GREEN}╗ ${NC}██${GREEN}╗ ${NC}██${GREEN}╗${NC}██████${GREEN}╗ ${NC}████████${GREEN}╗ ${NC}██████${GREEN}╗ 8888 "
echo -e "${GREEN} ${NC}██${GREEN}╔════╝${NC}██${GREEN}╔══${NC}██${GREEN}╗╚${NC}██${GREEN}╗ ${NC}██${GREEN}╔╝${NC}██${GREEN}╔══${NC}██${GREEN}╗╚══${NC}██${GREEN}╔══╝${NC}██${GREEN}╔═══${NC}██${GREEN}╗ 88 88 "
echo -e "${GREEN} ${NC}██${GREEN}║ ${NC}██████${GREEN}╔╝ ╚${NC}████${GREEN}╔╝ ${NC}██████${GREEN}╔╝ ${NC}██${GREEN}║ ${NC}██${GREEN}║ ${NC}██${GREEN}║ 88 88 TOOLS"
echo -e "${GREEN} ${NC}██${GREEN}║ ${NC}██${GREEN}╔══${NC}██${GREEN}╗ ╚${NC}██${GREEN}╔╝ ${NC}██${GREEN}╔═══╝ ${NC}██${GREEN}║ ${NC}██${GREEN}║ ${NC}██${GREEN}║ 88 88 "
echo -e "${GREEN} ╚${NC}██████${GREEN}╗${NC}██${GREEN}║ ${NC}██${GREEN}║ ${NC}██${GREEN}║ ${NC}██${GREEN}║ ${NC}██${GREEN}║ ╚${NC}██████${GREEN}╔╝ 88888888 "
echo -e "${GREEN} ╚═════╝╚═╝ ╚═╝ ╚═╝ ╚═╝ ╚═╝ ╚═════╝ 88 "
echo -e " "
echo -e "${NC} > Created by 4lxprime#2237"
echo -e "${NC} > https://linuxconfig.org/ethereum-mining-on-ubuntu-18-04-and-debian"
echo -e " "
echo -e "${NC}╔══════════════════════════════════════════════════════════════════════════════════════════════╗"
echo -e "${NC}║${GREEN} 1 : INSTALL ETHMINER AND START IT ${NC}║${GREEN} 2 : START ETHMINER ${NC}║${GREEN} 3 : INSTALL ETHMINER ${NC}║"
echo -e "${NC}╚══════════════════════════════════════════════════════════════════════════════════════════════╝"
echo -e " "
read -p "$> " CMD
case $CMD in
"1")
echo -e " "
echo -e "$GREEN STARTING INSTALLATION OF ETHMINER ...${NC}"
read -p "Enter the emplacement of the miner : " filevar
sudo add-apt-repository ppa:ethereum/ethereum
sudo apt update
sudo apt install ethereum
deb http://ppa.launchpad.net/ethereum/ethereum/ubuntu bionic main
deb-src http://ppa.launchpad.net/ethereum/ethereum/ubuntu bionic main
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 2A518C819BE37D2C2031944D1C52189C923F6CA9
sudo apt update
sudo apt install ethereum
cd $filevar
mkdir ethminer
wget -O ethminer/ethminer.tar.gz https://github.com/ethereum-mining/ethminer/releases/download/v0.18.0/ethminer-0.18.0-cuda-9-linux-x86_64.tar.gz
tar xzf ethminer/ethminer.tar.gz -C ethminer/
clear
echo -e "$GREEN COMPLETED INSTALLATION !${NC}"
echo -e "$GREEN STARTING ETHMINER ...${NC}"
cd ethminer/bin/
read -p "enter your ethpool wallet adress : " tokenvar
./ethminer -G -P stratum1+tcp://$tokenvar@us1.ethpool.org:3333
;;
"2")
echo -e " "
echo -e "$GREEN STARTING ETHMINER ...${NC}"
read -p "Enter the emplacement of the miner : " filevar
cd $filevar
cd ethminer/bin/
read -p "enter your ethpool wallet adress : " tokenvar
./ethminer -G -P stratum1+tcp://$tokenvar@us1.ethpool.org:3333
;;
"3")
echo -e " "
echo -e "$GREEN STARTING INSTALLATION OF ETHMINER ...${NC}"
read -p "Enter the emplacement of the miner : " filevar
sudo add-apt-repository ppa:ethereum/ethereum
sudo apt update
sudo apt install ethereum
deb http://ppa.launchpad.net/ethereum/ethereum/ubuntu bionic main
deb-src http://ppa.launchpad.net/ethereum/ethereum/ubuntu bionic main
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 2A518C819BE37D2C2031944D1C52189C923F6CA9
sudo apt update
sudo apt install ethereum
cd $filevar
mkdir ethminer
wget -O ethminer/ethminer.tar.gz https://github.com/ethereum-mining/ethminer/releases/download/v0.18.0/ethminer-0.18.0-cuda-9-linux-x86_64.tar.gz
tar xzf ethminer/ethminer.tar.gz -C ethminer/
clear
echo -e "$GREEN COMPLETED INSTALLATION !${NC}"
;;
*)
echo -e "$RED ERROR ! $CMD ARE NOT VALID${NC}"
;;
esac
# By 4lxprime