11** PLEASE NOTE:** MASTER branch now is for stable pre-release updates. We have developed a RELEASE branch for latest OFFICIAL Releases. Please use the following clone command to retrieve the latest release version
22
33```
4- git clone -b release -- single-branch https://github.com/DigitalNoteXDN /DigitalNote-2 DigitalNote
4+ git clone -- single-branch https://github.com/IamLupo /DigitalNote-2.git DigitalNote
55```
66
77DigitalNote [ XDN] 2014-2018 (CryptoNote Base), 2018-2020 (Current) integration/staging tree
@@ -71,27 +71,86 @@ sudo -i
7171```
7272### CREATE SWAP FILE FOR DAEMON BUILD (if system has less than 2GB of RAM)
7373```
74- cd ~; sudo fallocate -l 3G /swapfile; ls -lh /swapfile; sudo chmod 600 /swapfile; ls -lh /swapfile; sudo mkswap /swapfile; sudo swapon /swapfile; sudo swapon --show; sudo cp /etc/fstab /etc/fstab.bak; echo '/swapfile none swap sw 0 0' | sudo tee -a /etc/fstab
74+ cd ~
75+ sudo fallocate -l 3G /swapfile
76+ ls -lh /swapfile
77+ sudo chmod 600 /swapfile
78+ ls -lh /swapfile
79+ sudo mkswap /swapfile
80+ sudo swapon /swapfile
81+ sudo swapon --show
82+ sudo cp /etc/fstab /etc/fstab.bak
83+ echo '/swapfile none swap sw 0 0' | sudo tee -a /etc/fstab
7584```
7685
7786### Dependencies install
7887```
79- cd ~; sudo apt-get install -y ntp git build-essential libssl-dev libdb-dev libdb++-dev libboost-all-dev libqrencode-dev libcurl4-openssl-dev curl libzip-dev; apt-get update -y; apt-get install -y git make automake build-essential libboost-all-dev; apt-get install -y yasm binutils libcurl4-openssl-dev openssl libssl-dev; sudo apt-get install -y libgmp-dev; sudo apt-get install -y libtool;
88+ cd ~
89+ sudo apt-get install -y ntp
90+ sudo apt-get install -y git
91+ sudo apt-get install -y build-essential
92+ sudo apt-get install -y libssl-dev
93+ sudo apt-get install -y libdb-dev
94+ sudo apt-get install -y libdb++-dev
95+ sudo apt-get install -y libboost-all-dev
96+ sudo apt-get install -y libqrencode-dev
97+ sudo apt-get install -y libcurl4-openssl-dev
98+ sudo apt-get install -y curl
99+ sudo apt-get install -y libzip-dev
100+
101+ sudo apt-get update -y
102+
103+ sudo apt-get install -y git
104+ sudo apt-get install -y make
105+ sudo apt-get install -y automake
106+ sudo apt-get install -y yasm
107+ sudo apt-get install -y binutils
108+ sudo apt-get install -y libcurl4-openssl-dev
109+ sudo apt-get install -y openssl
110+ sudo apt-get install -y libgmp-dev
111+ sudo apt-get install -y libtool
112+ sudo apt-get install -y qt5-default
113+ sudo apt-get install -y qttools5-dev-tools
114+ sudo apt-get install -y miniupnpc
115+ sudo apt-get install -y qt5-qmake
116+ sudo apt-get install -y libevent-dev
80117```
81118
82119### Dependencies build and link
83120```
84- cd ~; wget http://download.oracle.com/berkeley-db/db-6.2.32.NC.tar.gz; tar zxf db-6.2.32.NC.tar.gz; cd db-6.2.32.NC/build_unix; ../dist/configure --enable-cxx --disable-shared; make; sudo make install; sudo ln -s /usr/local/BerkeleyDB.6.2/lib/libdb-6.2.so /usr/lib/libdb-6.2.so; sudo ln -s /usr/local/BerkeleyDB.6.2/lib/libdb_cxx-6.2.so /usr/lib/libdb_cxx-6.2.so; export BDB_INCLUDE_PATH="/usr/local/BerkeleyDB.6.2/include"; export BDB_LIB_PATH="/usr/local/BerkeleyDB.6.2/lib"
121+ cd ~;
122+ wget http://download.oracle.com/berkeley-db/db-6.2.32.NC.tar.gz
123+ tar zxf db-6.2.32.NC.tar.gz
124+ cd db-6.2.32.NC/build_unix
125+ ../dist/configure --enable-cxx --disable-shared
126+ make
127+ sudo make install
128+ sudo ln -s /usr/local/BerkeleyDB.6.2/lib/libdb-6.2.so /usr/lib/libdb-6.2.so
129+ sudo ln -s /usr/local/BerkeleyDB.6.2/lib/libdb_cxx-6.2.so /usr/lib/libdb_cxx-6.2.so
130+ export BDB_INCLUDE_PATH="/usr/local/BerkeleyDB.6.2/include"
131+ export BDB_LIB_PATH="/usr/local/BerkeleyDB.6.2/lib"
85132```
86133
87134### GitHub pull (Source Download)
88135```
89- cd ~; git clone https://github.com/DigitalNoteXDN/DigitalNote-2 DigitalNote
136+ git clone --single-branch https://github.com/IamLupo/DigitalNote-2.git DigitalNote
137+ cd DigitalNote
90138```
91139
92140### Build DigitalNote daemon
141+
142+ With UPNP:
93143```
94- cd ~; cd ~/DigitalNote/src; chmod a+x obj; chmod a+x leveldb/build_detect_platform; chmod a+x secp256k1; chmod a+x leveldb; chmod a+x ~/DigitalNote/src; chmod a+x ~/DigitalNote; make -f makefile.unix USE_UPNP=-; cd ~; cp -r ~/DigitalNote/src/DigitalNoted /usr/local/bin/DigitalNoted;
144+ qmake -qt=qt5 DigitalNote.daemon.pro USE_FORCE_STD_17=1
145+ make -j 4
146+ sudo cp -r DigitalNoted /usr/local/bin/DigitalNoted
147+ ```
148+
149+ ** Recommended Without** UPNP:
150+ ```
151+ qmake -qt=qt5 DigitalNote.daemon.pro USE_FORCE_STD_17=1 USE_UPNP=-
152+ make -j 4
153+ sudo cp -r DigitalNoted /usr/local/bin/DigitalNoted
95154```
96155
97156### (Optional) Build DigitalNote-QT (GUI wallet) on Linux
@@ -100,26 +159,31 @@ cd ~; cd ~/DigitalNote/src; chmod a+x obj; chmod a+x leveldb/build_detect_platfo
100159
101160If you recompiling some other time you don't have to repeat previous steps, but need to define those variables. Skip this command if this is your first build and previous steps were performed in current terminal session.
102161```
103- export BDB_INCLUDE_PATH="/usr/local/BerkeleyDB.6.2/include"; export BDB_LIB_PATH="/usr/local/BerkeleyDB.6.2/lib"
162+ export BDB_INCLUDE_PATH="/usr/local/BerkeleyDB.6.2/include"
163+ export BDB_LIB_PATH="/usr/local/BerkeleyDB.6.2/lib"
104164```
105165
106166With UPNP:
107-
108167```
109- cd ~; cd ~/DigitalNote; qmake -qt=qt5; make
168+ qmake -qt=qt5 DigitalNote.app.pro USE_FORCE_STD_17=1 USE_UPNP=- USE_DBUS=1 USE_QRCODE=1
169+ make -j 4
110170```
111171
112172** Recommended Without** UPNP:
113-
114173```
115- cd ~; cd ~/DigitalNote; qmake -qt=qt5 USE_UPNP=-; make
174+ qmake -qt=qt5 DigitalNote.app.pro USE_FORCE_STD_17=1 USE_UPNP=- USE_DBUS=1 USE_QRCODE=1
175+ make -j 4
116176```
117177
118178
119-
120179### Create config file for daemon
121180```
122- cd ~; sudo ufw allow 18092/tcp; sudo ufw allow 18094/tcp; sudo ufw allow 22/tcp; sudo mkdir ~/.XDN; cat << "CONFIG" >> ~/.XDN/DigitalNote.conf
181+ sudo ufw allow 18092/tcp
182+ sudo ufw allow 18094/tcp
183+ sudo ufw allow 22/tcp
184+ sudo mkdir ~/.XDN
185+
186+ cat << "CONFIG" >> ~/.XDN/DigitalNote.conf
123187listen=1
124188server=1
125189daemon=1
@@ -131,25 +195,17 @@ port=18092
131195rpcconnect=127.0.0.1
132196rpcallowip=127.0.0.1
133197CONFIG
134- chmod 700 ~/.XDN/DigitalNote.conf; chmod 700 ~/.XDN; ls -la ~/.XDN
135- ```
136198
137- ### Run DigitalNote daemon
138- ```
139- cd ~; DigitalNoted; DigitalNoted getinfo
199+ chmod 700 ~/.XDN/ DigitalNote.conf
200+ chmod 700 ~/.XDN
201+ ls -la ~/.XDN
140202```
141203
142- ### Troubleshooting
143- ### for basic troubleshooting run the following commands when compiling:
144- ### this is for minupnpc errors compiling
145-
146- ```
147- make clean -f makefile.unix USE_UPNP=-
148- make -f makefile.unix USE_UPNP=-
149- ```
150- ### Updating daemon in bin directory
204+ ### Run DigitalNote daemon
151205```
152- cd ~; cp -r ~/DigitalNote/src/DigitalNoted /usr/local/bin
206+ cd ~
207+ DigitalNoted
208+ DigitalNoted getinfo
153209```
154210
155211License
0 commit comments