Benutzer-Werkzeuge

Webseiten-Werkzeuge


dapnetnodeinstall

Unterschiede

Hier werden die Unterschiede zwischen zwei Versionen angezeigt.

Link zu dieser Vergleichsansicht

Beide Seiten der vorigen Revision Vorhergehende Überarbeitung
Nächste Überarbeitung
Vorhergehende Überarbeitung
dapnetnodeinstall [2018/01/07 16:38]
dh3wr
dapnetnodeinstall [2018/10/23 09:22] (aktuell)
df2et [Installation DAPNET-Core]
Zeile 1: Zeile 1:
-====== ​Introduction ​======+====== ​Installation procedure for new DAPNET node ====== 
 +<color #​ed1c24>​ 
 +ATTENTION: Due to serious problems of the current version of DAPNET-CORE we do not accept any new cores. A new version overcoming this issues is in progress. If you want to run your own core, please wait for the new version being released!</​color>​ 
 + 
 +===== Introduction ​=====
 This manual describes the necessary steps to install a new DAPNET Core node on a linux running machine. Please inform us about any mistakes or misunderstandable descriptions. This manual describes the necessary steps to install a new DAPNET Core node on a linux running machine. Please inform us about any mistakes or misunderstandable descriptions.
 Overview Overview
Zeile 8: Zeile 12:
   * The DAPNET-Web as the Web frontend   * The DAPNET-Web as the Web frontend
  
-====== Preparations ​====== +===== Preparations ===== 
-We assume a fresh debian based linux system where you have root access. The user the DAPNET Core will run on is "dapnet" ​in this manual. Choose whatever fits to you system setup. Create this user. Google how to do this on your linux system. The dapnet Core does not need root rights to run.+We assume a fresh debian based linux system where you have root access. The user the DAPNET Core will run on is ''​dapnet'' ​in this manual. Choose whatever fits to you system setup. Create this user. Google how to do this on your linux system. The dapnet Core does not need root rights to run.
  
 The following software packages are needed The following software packages are needed
Zeile 17: Zeile 21:
   * Java 1.8   * Java 1.8
  
-You need to install java 1.8 following [[https://​tecadmin.net/​install-oracle-java-8-ubuntu-via-ppa/​|this link]]. After having installed java, install the rest with+You need to install java 1.8 following [[https://​tecadmin.net/​install-oracle-java-8-ubuntu-via-ppa/​|this link]]. ​This link is for Debian or Ubuntu. For RaspberryPi use 
 +<​code>​sudo apt-get install oracle-java8-jdk</​code>​ 
 +After having installed java, install the rest with
 <​code>​sudo apt-get install git maven</​code>​ <​code>​sudo apt-get install git maven</​code>​
 +Verify your java version is minimum 1.8 with
 +<​code>​java -version</​code>​
 +
 +If you have installed the default java 1.7 OpenJDK, remove it with
 +<​code>​sudo apt-get remove java-common</​code>​
 +
 +
 +===== Installation DAPNET-Core =====
 +Create a new user called ''​dapnet''​
 +<​code>​sudo adduser dapnet</​code>​
  
-====== Installation DAPNET-Core ====== 
 Make a directory /opt/dapnet Make a directory /opt/dapnet
  
 <​code>​sudo mkdir /​opt/​dapnet</​code>​ <​code>​sudo mkdir /​opt/​dapnet</​code>​
  
-Make dapnet the owner of this directory+Make ''​dapnet'' ​the owner of this directory
  
 <​code>​sudo chown dapnet /​opt/​dapnet</​code>​ <​code>​sudo chown dapnet /​opt/​dapnet</​code>​
  
-Change to user //dapnet//. If you don't have a user //dapnet// on your system, make one. If you don't know how, ask google. <​code>​su dapnet</​code>​+Change to user ''​dapnet''​. If you don't have a user ''​dapnet'' ​on your system, make one. If you don't know how, ask google. 
 +<​code>​sudo su dapnet</​code>​
  
 Change to <​code>​cd /​opt/​dapnet</​code>​ and download the newest version from github. Change to <​code>​cd /​opt/​dapnet</​code>​ and download the newest version from github.
Zeile 43: Zeile 59:
 mvn clean package</​code>​ mvn clean package</​code>​
  
-The compiled files are now in the directory target. In order not to loose your config make a directory named "local"+The compiled files are now in the directory ​''/​opt/​dapnet/​Core/​target''​. In order not to loose your config ​every time you recompile a new version ​make a directory named ''​local''​
  
 <​code>​mkdir /​opt/​dapnet/​Core/​local</​code>​ <​code>​mkdir /​opt/​dapnet/​Core/​local</​code>​
Zeile 71: Zeile 87:
 </​code>​ </​code>​
  
-Contact us or one of the existing Core sysops and get the password. We assume ​hier it is "​geheim"​. So put the real one in the line:+If you want the Core to bind to a specific address you can extend the TCP config 
 + 
 +<​code><​TCP bind_port="​7800"​ bind_addr="​127.0.0.1"​ /></​code>​ 
 + 
 +{{:​icons:​warning.png |}}**Contact us or one of the existing Core sysops ​to have your node added and get the password**.{{ :​icons:​warning.png|}} 
 + 
 +We assume ​here the password ​is "​geheim"​. So put the real one in the line:
  
 <​code>​auth_value="​geheim"/></​code>​ <​code>​auth_value="​geheim"/></​code>​
  
-At the bottom, put the callsign of the core in lowercase. The example here ist db0abc+At the bottom, put the callsign of the core in lowercase. The example here ist ''​db0abc''​. Enter the one that is registered in the DAPNET. Use lowercase letters.
  
 <​code><​pbcast.GMS name="​db0abc@DAPNET"</​code>​ <​code><​pbcast.GMS name="​db0abc@DAPNET"</​code>​
Zeile 81: Zeile 103:
 That's all for now. That's all for now.
  
-===== Alternative 1 to run the Node ===== +==== Alternative 1 to run the Node ==== 
-Change to <​code>​cd /​opt/​dapnet/​Core/​local</​code>​ and start at screen, so the program keeps running even if your SSH connection is closed+Change to <​code>​cd /​opt/​dapnet/​Core/​local</​code>​ and start a ''​screen''​, so the program keeps running even if your SSH connection is closed. Install ''​screen''​ if not already installed. 
 + 
 +<​code>​sudo apt-get install screen</​code>​ 
 + 
 +Run the ''​screen''​
  
-<​code>​sudo apt-get install screen</​code>​ (if not already installed) 
 <​code>​screen</​code>​ <​code>​screen</​code>​
  
Zeile 97: Zeile 122:
 Replace the jar filename with the right one you just compiled. It may change in the development process. Replace the jar filename with the right one you just compiled. It may change in the development process.
  
-===== Alternative 2 to run the Node =====+==== Alternative 2 to run the Node ====
 If you don't like the screen and better want a systemd service to start at boot time, have a look at If you don't like the screen and better want a systemd service to start at boot time, have a look at
  
Zeile 103: Zeile 128:
  
    
-===== Important information on the connection with other Cores =====+==== Important information on the connection with other Cores ====
 All cores have to be able to reach each other directly by HAMNET IPs (44.0.0.0/​8). If you do not have native HAMNET access, consider the [[https://​www.afu.rwth-aachen.de/​projekte/​funkruf-pager-pocsag/​funkrufmaster-2-0-dapnet/​manual-to-install-new-dapnet-core-node-english/​8-static-content/​191-hamnet-pptp-vpn-with-linux|PPTP manual]] and ask us for a static IP and user/​password combination. All cores have to be able to reach each other directly by HAMNET IPs (44.0.0.0/​8). If you do not have native HAMNET access, consider the [[https://​www.afu.rwth-aachen.de/​projekte/​funkruf-pager-pocsag/​funkrufmaster-2-0-dapnet/​manual-to-install-new-dapnet-core-node-english/​8-static-content/​191-hamnet-pptp-vpn-with-linux|PPTP manual]] and ask us for a static IP and user/​password combination.
  
-====== Installation of DAPNET-Web ​====== +===== Installation of DAPNET-Web ===== 
-The source code is already downloaded to <​code>/​opt/​dapnet/​Web</​code>​. Now install the apache2 webserverand the php module if not already present.+The source code is already downloaded to <​code>/​opt/​dapnet/​Web</​code>​. Now install the apache2 webserver and the php module if not already present.
  
-<​code>​apt-get install apache2 ​libapache2-mod-php5</​code>​+<​code>​apt-get install apache2</​code>​
  
-Edit <​code>/​etc/​apache2/​sites-availabe/​000-default.conf</​code>​ and change+Edit <​code>/​etc/​apache2/​sites-available/​000-default.conf</​code>​ and change
  
-<​code>​DocumentRoot ​/​opt/​dapnet/​Web/​dist</​code>​+<​code>​DocumentRoot dist</​code>​
  
 Insert below this line: Insert below this line:
Zeile 127: Zeile 152:
 <​code>​sudo service apache2 restart</​code>​ <​code>​sudo service apache2 restart</​code>​
  
-Change to <​code>​cd /​opt/​dapnet/​Web</​code>​ and follow the instructions on Github.+Change to <​code>​cd /​opt/​dapnet/​Web</​code>​ and follow the instructions on [[https://​github.com/​DecentralizedAmateurPagingNetwork/​Web|Github]].
  
-Now the web interface is accessable on http://​YOURURL/​dapnet ​.+Now the web interface is accessable on ''​http://​YOURURL''​ . 
 + 
 +==== Hint to run the REST-API on the same HTTP Port ==== 
 +Normally, the REST-API runs on port 8080. If you just have port 80 open for your website and don't want to add port 8080, you can use the Apache webserver as a proxy to process the API requests. 
 + 
 +Add to your apache config: 
 +<​file>​ 
 +        ProxyPass "/api" "​http://​URLOFYOURCORE:​8080 
 +        ProxyPassReverse "/​api"​ "​http://​URLOFYOURCORE:​8080"​ 
 +</​file>​ 
 + 
 +In the settings of the DAPNET-WEG, enter in ''/​src/​store/​defaultUrls.json''​ the API URL to 
 +<​code>​ 
 +    "​api":​ "​http://​YOURWEBSITEURL/​api",​ 
 +</​code>​ 
 + 
 +Restart the apache and build the website again: 
 +<​code>​ 
 +sudo systemctl restart apache2 
 +cd /​opt/​dapnet/​Web/​ 
 +npm run build 
 +</​code>​
  
-====== First Steps ======+===== First Steps =====
 Ask us for your personal login data and happy paging. Ask us for your personal login data and happy paging.
dapnetnodeinstall.1515339529.txt.gz · Zuletzt geändert: 2018/01/07 16:38 von dh3wr