forked from PirateNetwork/Skull-Island
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinstall_and_setup.txt
216 lines (182 loc) · 9.04 KB
/
install_and_setup.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
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
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
Steps to build the wallet on Ubuntu 21.04
=========================================
After installing the operating system, execute as root (#) on a
terminal:
# apt-get update
# apt-get install build-essentials
# apt-get install libgl1-mesa-dri joe git
If you've installed the O/S in VirtualBox:
<Mount virtualbox additions CD: Devices->Insert Guest Additions CD>
# cd /media/dev/VBox_GAs_6.1.26
# ./VBoxLinuxAdditions.run
# apt-mark hold linux-generic linux-image-generic
# Reboot
Gradle
------
Installs gradle>=7.1.1
# add-apt-repository ppa:cwchien/gradle
# apt-get update
# apt-get install gradle
Note: By default Gradle 4 ships with ubuntu. It you use this old version it will fail
later during the Cordova build with: Unrecognized option: --illegal-access=permit
Error: Could not create the Java Virtual Machine.
: Use the repository mentioned above to install gradle >= 7
Android Studio
--------------
Browse to https://developer.android.com/studio
Select Download Android Studio
The download is approx. 930mb
$ tar -xvzf android-studio-2020.3.1.25-linux.tar.gz
$ mv android-studio ~
$ cd ~/android-studio/bin
$ ./studio.sh
Welcome screen appears. Select Next to continue
Kotlin: Select 'Update'. After update, select 'Restart IDE'
Takes a while for the IDE to start up again
Welcome screen appears. Select 'Standard install'
Android SDK Platform-Tools 31.0.3
SDK manager:
SDK Platforms: Select 'Show Package Detail'
Android 10
Android SDK Platform 29
Sources for Android 29
Android 5.1
Android SDK Platform 22
Sources for Android 22
Intel x86 Atom_64 System Image
SDK Tools
Android SDK Build-Tools
29.0.3
22.0.1
NDK (Side by side)
21.0.6113669
Google Licenses
$ ./Android/Sdk/tools/bin/sdkmanager --licenses
Accept any licenses that might be pending
# joe /etc/bash.bashrc
export ANDROID_SDK_ROOT=/home/dev/Android/Sdk
export JAVA_HOME=/home/dev/jdk8u312
export PATH=$PATH:/home/dev/jdk8u312/bin:/home/dev/Android/Sdk/platform-tools
(Don't set the 'ANDROID_HOME' environmental variable)
You have to log out and back in for the settings to take effect. Otherwise
you can load them in your current shell with: source /etc/bash.bash.rc
The lines above assumed your user account is called 'dev'. Replace it with
your actual user account name. It also assumes that you've installed Java JDK
and Android Studio in your home directory. Change as required for where
you've extracted the 2 packages.
Java
----
Android Studio ships java version 11.0.10, found in android-studio/jre/bin
This project requires Java 8
Liberica JDK
Browse to https://bell-sw.com/pages/downloads
Select Java 8 LTS
Download the Liberica Standard JDK 8u312+7 x86 64 bit for Linux : tar.gz
Extract:
tar -xvzf bellsoft-jdk8u312+7-linux-amd64.tar.gz
mv jdk8u312 ~
Skull-Island
------------
Deps:
$ sudo apt-get install npm
$ sudo npm install -g cordova
$ npx browserslist@latest --update-db
$ npm update
added 391 packages, removed 219 packages, changed 390 packages, and audited 1909 packages in 7m
Repository:
$ git clone http://github.com/PirateNetwork/Skull-Island
$ cd Skull-Island
$ git checkout master
$ cd SaplingMobile
$ rm package-lock.json yarn.lock
$ npm install
This installs 531mb of Node JavaScript dependencies
Cordova:
$ cordova platform add android@9
$ cordova prepare android
If you do not want to use Firebase:
$ cordova plugin remove cordova-plugin-firebasex
$ joe webpack.config.js
Line 48: 'cordova-plugin-firebasex' should be removed and the "," of the line just above it.
Compile:
$ cordova build android
The build might fail if you've failed to accept all the Android SDK licenses. Run this command to
accept the licenses from the command line:
$ ./Android/Sdk/tools/bin/sdkmanager --licenses
Select 'Y' to all prompts
The build might warn about outdated caniuse-lite. Update it by executing:
$ npm update --save caniuse-lite browserlist
Install:
To install the application, attach your phone to the computer with a USB cable.
Ensure under Settings->System->Developer Options that USB Debugging is active for your phone.
If Developer Options is not visible, you can usually navigate to Settings->System->About Phone
and click 7 or 8 times rapidly on the 'Build number' field.
Install the app by executing:
$ adb install -r ./platforms/android/app/build/outputs/apk/debug/app-debug.apk
The icon of the Pirate Lite Wallet will appear under your applications. launch it like any other
application.
Setup:
1) Set wallet password
You have to enter a password that will unlock your wallet in the future. You'll have to type
this password every time you open the wallet, send some ARRR or want to export the spending
key or seed phrase. Choose something that will not be too difficult to type on the keypad,
but difficult for an attacker to guess.
2.1) New wallet
When you choose 'New wallet' a new 24 word random seed phrase (mneumonic) will be generated.
All your Pirate addresses are derived from this single seed phrase. If you ever need to restore
your wallet you'll need this seed phrase. All your Pirate addresses can be restored from this
single seed phrase. If somebody steals your seed phrase, they will be able to access all your
funds and spend it. It is therefore very important that you record this seed phrase securely,
preferably on non-electronic media. Remember, PCs and smart phones will often backup photos
and documents to the internet without your knowledge. Once the data leaves your device an
attacker may intercept it.
Click on 'New Wallet'
Click on 'New Seed Phrase'
The generated seed is displayed in the window. Write it down and store where no unauthorised
person can access it.
Click on 'Create Wallet'
Sync: The wallet needs to synchronise with the blockchain. This takes approx. 30 minutes. The
initial large number of blocks are only done once. From there only the blocks since last sync
needs to be retrieved. A block is generated about every minute. Each fetch from the server
retrieves about 10,000 blocks at a time.
2.2) Restoring a wallet
Click on 'Recover wallet'
Erase the pre-generated seed phrase. Type your stored seed phrase and the recovery height.
If you've got a QR code of your seed phrase (mneumonic) you can scan it by clicking on
Scan QR.
If the wallet accepts the seed phrase, the 'Recover Wallet' button will appear.
Click 'Recover Wallet' to resume.
3) Layout
The Wallet button:
The wallet page displays your main information: Your balance in the wallet. The balance
will only be accurate after fully synced with the blockchain. The main area shows your
transactions history.
The Receive button
Your Pirate address on which you receive funds are displayed here. Somebody needs to send
ARRR to your Pirate address, or if you purchase pirate coins on TradeOgre or KuCoin, you can withdraw
the coins and need to supply the exchange with this pirate address. Remember to send a couple of
milliARRR (1/1000th) to your address and make sure you receive it before sending large funds, in case
something went wrong. Once a transaction is initiated it cannot be reversed.
The Send button
Once synced to the blockchain, you'll be able to access the send button. Here you compile a new
transaction by entering the recipient's Pirate address, the amount and a memo.
Enter your wallet address to authorise the transaction and then submit it to the blockchain.
It can take up to 5 minutes for the transaction to conclude.
Explore:
The block explore function is performed on the Pirate servers. Transaction detail can be explored
there.
Menu (Top left corner)
Spending key
Export the extended spending key of your pirate address. The data can be imported in a full node
wallet, like the Treasure Chest. This is the data of an individual adres, not the full seed phrase
from which all your address are derived.
Once the extended spending key is imported in another wallet, that wallet will have full access
to the funds received on that address.
Seed Phrase
Export the 24 word seed phrase (mneumonic) of your wallet. This seed phrase must be kept private
to prevent unauthorised parties from spending your funds. You'll need this seed phrase if you
want to restore your wallet.
Rescan
Rescans the full blockchain for funds send to your your Pirate address. This is a huge amount of
data to scan through. It can take approx 4 hours to complete and cannot be stopped once it was
initiated. You will not be able to spend any ARRR while the scan is in progress.