-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathubuntu-linux.txt
51 lines (44 loc) · 2.48 KB
/
ubuntu-linux.txt
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
All the information is from: https://www.youtube.com/watch?v=o90L6ksNW6g and https://www.youtube.com/watch?v=A5V2jdLi5mI
1- in terminal type "sudo apt install software-properties-common"
2- in terminal type "sudo add-apt-repository -y ppa:ethereum/ethereum"
3- in terminal type "sudo apt update"
4- in terminal type "sudo apt install ethereum"
5- in terminal type "geth version"
6- in terminal type "sudo apt install nodejs"
7- in terminal type "sudo apt install npm"
8- in terminal type "sudo apt install curl"
9- in terminal type "sudo apt install -y build-essential"
10- in terminal type "node -v"
11- in terminal type "npm - v"
12- in terminal type "npm uninstall -g truffle"
13- in terminal type "sudo npm install -g truffle"
14- in terminal type "truffle version"
15- in terminal type "wget -qO - https://packagecloud.io/AtomEditor/atom/gpgkey | sudo apt-key add -"
16- in terminal type "sudo sh -c 'echo "deb [arch=amd64] https://packagecloud.io/AtomEditor/atom/any/ any main" > /etc/apt/sources.list.d/atom.list'"
17- in terminal type "sudo apt update"
18- in terminal type "sudo apt install atom"
19- in terminal type "which atom"
20- in terminal type "which apm"
21- in terminal type "apm install language-ethereum"
22- in terminal type "mkdir -p privateNode"
23- in terminal type "cd privateNode"
24- in terminal type "puppeth"
25- choose a name for network
26- write "2" => 2. Configure new genesis
27- write "1" => 1. Create new genesis from scratch
28- write "1" => 1. Ethash - proof-of-work
29- press Enter => Which accounts should be pre-funded? 0x
30- in terminal type "yes" => Should the precompile-addresses (0x1 .. 0xff) be pre-funded with 1 wei?
31- Specify your chain/network ID if you want an ex
35- ctrl + d
36- in terminal type "geth --datadir . init network_name.json"
37- in terminal type "geth --datadir . account new"
38- write password for account
39- repeat password for account
40- in terminal type "geth --datadir . account list"
41- using SFPS in private folder creat a file named "startnode.sh"
42- copy and save the text below: (* all the text must be in "one" line)
geth --networkid 2022 --mine --miner.threads 1 --datadir "." --nodiscover --maxpeers=2 --allow-insecure-unlock --http --http.port "8545" --port "30303" --http.corsdomain "*" --nat "any" --http.api eth,web3,personal,net --unlock 0 --password ./password.sec
43- using SFPS in private folder creat a file named "password.sec"
44- in "password.sec" write your account password and save the file
45- in terminal type "./startnode.sh"