User Tools

Site Tools


rocrail-linux-user-nl

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
rocrail-linux-user-nl [2020/12/09 11:14] – created agre30rocrail-linux-user-nl [2022/02/28 19:10] (current) smitt48
Line 1: Line 1:
-====== Auto start in user context ======+====== Auto start Rocrail voor de gebruiker ======
 [[:english#rocrail|{{  :server.png}}]][[:english|{{  :rocrail-logo-35.png}}]] [[:english#rocrail|{{  :server.png}}]][[:english|{{  :rocrail-logo-35.png}}]]
-[[english Content ]] -> [[english#rocrail|Rocrail Server]]\\+[[dutchInhoudsopgave]] -> [[dutch#rocrail|Rocrail Server]]\\
  \\  \\
  
Line 7: Line 7:
  \\  \\
  
-| //The user **pi** is used in the examples. \\ This is the preferred way to start the Rocrail Server automatically after reboot instead of running it as daemon in root context.// |+| //In de voorbeelden wordt de gebruiker **pi** gebruikt. \\  
 +De hier beschreven werkwijze is de beste manier om Rocrail Server automatisch te starten na een herstart, in plaats van het programma als daemon in root context te draaien.// | 
 +\\
  
- \\ +=====Introductie===== 
- +Als de Rocrail-server op een speciale computer zoals de Raspberry Pi draaitzou het voor de gebruiker handig zijn als de server automatisch start na elke herstart.\\ 
-=====Introduction===== +Er zijn verschillende manieren om dit te realiserenmaar de crontab-oplossing is heel eenvoudig te implementeren.\\
-If the Rocrail Server runs on a dedicated computer like the Raspberry Pi, it would be helpful if the Server starts automatically after every reboot in user context.\\ +
-There are several ways to establish thisbut the crontab solution is very easy to implement.\\+
  
  \\  \\
 =====Start script===== =====Start script=====
-Create a start script**startrocrail.sh** in the home directory of user **pi** by opening an editor like **vi startrocrail.sh**:+Maak een script met de naam **startrocrail.sh** in de home directory van de gebruiker **pi** (/home/pi) door in een (ssh) terminal een editor te starten, bijvoorbeeld **nano startrocrail.sh** en voer de volgende code in:
 <code bash> <code bash>
 #!/bin/sh #!/bin/sh
-cd /home/pi/rocrail+cd /home/pi/Rocrail
 /home/pi/Rocrail/bin/rocrail -l /home/pi/Rocrail/bin /home/pi/Rocrail/bin/rocrail -l /home/pi/Rocrail/bin
 </code> </code>
-Make the script executable:+ 
 +\\ 
 +Sla dit bestand op en sluit de editor nano af. 
 + 
 +Maak het script uitvoerbaar met:
 <code bash> <code bash>
 chmod +x startrocrail.sh chmod +x startrocrail.sh
 </code> </code>
  
-====Shutdown option==== +====Optioneel: zet de Raspberry pi uit bij het afsluiten van Rocrail==== 
-| //Use this option first if everything runs perfect.// \\ //User **pi** is supposed to be a sudoer.// | +| //Gebruik deze optie alleen als het voorgaande script perfect verloopt.// \\ //De gebruiker **pi** wordt verondersteld root rechten te hebben.// | 
-To automatically shutdown the computer after the Rocrail Server did stopadd the following line to the **startrocrail.sh** script:+Om de Raspberry automatisch af te sluiten nadat de Rocrail server is gestoptvoeg de volgende regels toe aan het script **startrocrail.sh**: 
 <code bash> <code bash>
 if [ $? -eq 70 ] if [ $? -eq 70 ]
Line 37: Line 42:
 fi fi
 </code> </code>
-The echo statement is followed by the password of the user. In this case its "raspberry"which is the default password of the user **pi** under Raspbian.\\ +\\ 
-| Rocrail will return 70 in case of a client shutdown commandkill will return zero. |+Na de opdracht 'echo' komt het wachtwoord van de gebruiker **pi**. In dit geval is dat 'raspberry'dat is het standaard wachtwoord van de gebruiker **pi** op een Raspberry PiOS.\\ 
 + 
 +| Rocrail geeft de waarde 70 als het via het programma Rocview wordt afgeslotenDe opdracht 'kill' geeft de waarde 0. |
  \\  \\
  
 =====CronTab===== =====CronTab=====
-Add the following line at the end of the crontab list of user **pi** with the command **crontab -e**:+Voeg de volgende regel aan het eind van de crontab lijst van de gebruiker **pi** toe met de opdracht **crontab -e**: 
 <code bash> <code bash>
 @reboot /home/pi/startrocrail.sh @reboot /home/pi/startrocrail.sh
 </code> </code>
-Or directly on the command line:+ 
 +Of doe dit direct in een (ssh) terminal sessie met:
 <code bash> <code bash>
 (crontab -l ; echo "@reboot /home/pi/startrocrail.sh")| crontab - (crontab -l ; echo "@reboot /home/pi/startrocrail.sh")| crontab -
 </code> </code>
  
-Check the crontab:+Controleer crontab:
 <code bash> <code bash>
 crontab -l crontab -l
 </code> </code>
-Output:+\\ 
 +De volgende boodschap wordt getoond:
 <code bash> <code bash>
 # For more information see the manual pages of crontab(5) and cron(8) # For more information see the manual pages of crontab(5) and cron(8)
Line 64: Line 74:
  
  \\  \\
-=====Stop the Rocrail Server===== +=====Stop Rocrail Server===== 
-| //A normal shutdown of the computer will issue to all running processes a kill command which also will shutdown the Rocrail Server normally.// |+| //De opdracht shutdown op de RaspberryPi geeft de opdracht kill voor alle op dat moment actieve programma's en sluit tevens Rocrail server af.// | 
 ====Rocview==== ====Rocview====
-  * __**[[:rocgui-menu-en#shutdown_rocrail_and_exit|Shutdown Rocrail and exit]]**__+  * __**[[:rocgui-menu-nl#rocrail_en_rocview_beeindigen|Rocrail afsluiten en beëindigen]]**__ 
  
-====Rocweb====+====Rocweb (Engels)====
   * __**[[:rocweb:rocweb-en#system|System: Shutdown server]]**__   * __**[[:rocweb:rocweb-en#system|System: Shutdown server]]**__
  
 ====andRoc==== ====andRoc====
-  * System: Shutdown server.\\+  * Systeem: Shutdown server.\\
  
-====Monitor==== +====Monitor ==== 
-  * __**[[:servermonitor|Shutdown]]**__+  * __**[[:servermonitor-nl|Shutdown]]**__
  
 ====SSH Shell==== ====SSH Shell====
rocrail-linux-user-nl.1607508844.txt.gz · Last modified: 2020/12/09 11:14 by agre30