Hier werden die Unterschiede zwischen zwei Versionen angezeigt.
Beide Seiten der vorigen Revision Vorhergehende Überarbeitung Nächste Überarbeitung | Vorhergehende Überarbeitung Nächste Überarbeitung Beide Seiten der Revision | ||
dapnetnodeinstall [2018/01/08 11:15] dh3wr |
dapnetnodeinstall [2018/02/26 22:12] dh3wr |
||
---|---|---|---|
Zeile 11: | Zeile 11: | ||
===== 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 19: | Zeile 19: | ||
* 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 ===== | ===== Installation DAPNET-Core ===== | ||
+ | Create a new user called ''dapnet'' | ||
+ | <code>sudo adduser dapnet</code> | ||
+ | |||
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 45: | Zeile 57: | ||
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 113: | Zeile 125: | ||
<code>apt-get install apache2 libapache2-mod-php5</code> | <code>apt-get install apache2 libapache2-mod-php5</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 /opt/dapnet/Web/dist</code> |