<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-GB">
	<id>https://wiki.muonpi.org/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Dtreffenstaedt</id>
	<title>MuonPi-Wiki - User contributions [en-gb]</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.muonpi.org/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Dtreffenstaedt"/>
	<link rel="alternate" type="text/html" href="https://wiki.muonpi.org/index.php?title=Special:Contributions/Dtreffenstaedt"/>
	<updated>2026-04-21T03:12:09Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.34.1</generator>
	<entry>
		<id>https://wiki.muonpi.org/index.php?title=Setup_Mail_Client&amp;diff=742</id>
		<title>Setup Mail Client</title>
		<link rel="alternate" type="text/html" href="https://wiki.muonpi.org/index.php?title=Setup_Mail_Client&amp;diff=742"/>
		<updated>2021-08-29T20:12:25Z</updated>

		<summary type="html">&lt;p&gt;Dtreffenstaedt: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;If you want to setup your mail client to use the Mail address issued by MuonPi.org, use the below settings for setup.&lt;br /&gt;
&lt;br /&gt;
Do not use your full E-Mail address as username.&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|+ Settings&lt;br /&gt;
| || '''IMAP''' || '''SMTP'''&lt;br /&gt;
|-&lt;br /&gt;
| Address || mail.muonpi.org || mail.muonpi.org&lt;br /&gt;
|-&lt;br /&gt;
| Security || TLS || STARTTLS&lt;br /&gt;
|-&lt;br /&gt;
| Authentication Method || Normal password || Normal password&lt;br /&gt;
|-&lt;br /&gt;
| Port || 993 || 587&lt;br /&gt;
|-&lt;br /&gt;
| Username || &amp;lt;username&amp;gt; || &amp;lt;username&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
| Password || &amp;lt;password&amp;gt; || &amp;lt;password&amp;gt;&lt;br /&gt;
|}&lt;/div&gt;</summary>
		<author><name>Dtreffenstaedt</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.muonpi.org/index.php?title=Raspberry_Pi_Setup&amp;diff=741</id>
		<title>Raspberry Pi Setup</title>
		<link rel="alternate" type="text/html" href="https://wiki.muonpi.org/index.php?title=Raspberry_Pi_Setup&amp;diff=741"/>
		<updated>2021-08-21T13:37:37Z</updated>

		<summary type="html">&lt;p&gt;Dtreffenstaedt: /* Guided Setup */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;(Requirements: Raspberry Pi Versions 0, 2, 3, 4 (with 40-pin GPIO connector) )&lt;br /&gt;
&lt;br /&gt;
This article will introduce to you, how to set up a Raspberry Pi from scratch with all software needed to run the detector hardware.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
DISCLAIMER: If not stated otherwise, this tutorial is developed on Raspian 10 Buster.&lt;br /&gt;
&lt;br /&gt;
__TOC__&lt;br /&gt;
= Guided Setup =&lt;br /&gt;
This is the recommended way of setting up the muondetector software.&lt;br /&gt;
&lt;br /&gt;
# Download the latest muondetector [https://archive.muonpi.org/image/latest/ image]. &amp;lt;br&amp;gt; If you want to use the detector headless or without graphical user interface, select the -lite version, otherwise select the -gui version.&amp;lt;br&amp;gt; If you prefer to build your own version of the image, check out the [https://github.com/MuonPi/muondetector-image repository].&lt;br /&gt;
# Install the image onto an SD-Card: &amp;lt;br&amp;gt; [https://www.raspberrypi.org/documentation/computers/getting-started.html#installing-images-on-linux Linux]&amp;lt;br&amp;gt;[https://www.raspberrypi.org/documentation/computers/getting-started.html#installing-images-on-mac-os MacOS]&amp;lt;br&amp;gt;[https://www.raspberrypi.org/documentation/computers/getting-started.html#installing-images-on-windows Windows]&lt;br /&gt;
# (Optional) Setup [https://www.raspberrypi.org/documentation/computers/configuration.html#setting-up-a-headless-raspberry-pi headless] network. SSH is already enabled per default in the provided images.&lt;br /&gt;
# Boot your RaspberryPi&lt;br /&gt;
# Open a login console&lt;br /&gt;
## Per SSH, or&lt;br /&gt;
## Open a terminal on the RaspberryPi&lt;br /&gt;
# Follow the Prompts in the terminal&lt;br /&gt;
# Update your system&lt;br /&gt;
 sudo apt update &amp;amp;&amp;amp; sudo apt upgrade&lt;br /&gt;
[[File:Screenshot 2021-07-29 22-32-37.png|frameless|center]]&lt;br /&gt;
&lt;br /&gt;
= Manual Setup =&lt;br /&gt;
=== Basic ===&lt;br /&gt;
* Create a fresh install of RaspberryPi OS according to the [https://www.raspberrypi.org/documentation/installation/installing-images/ tutorial]&lt;br /&gt;
* Update your system:&lt;br /&gt;
 sudo apt update &amp;amp;&amp;amp; sudo apt upgrade&lt;br /&gt;
* Change the default password of the user &amp;lt;code&amp;gt;pi&amp;lt;/code&amp;gt;:&lt;br /&gt;
 passwd&lt;br /&gt;
* (Optional) For an headless install (without monitor and mouse/keyboard), we recommend following this [https://www.raspberrypi.org/documentation/configuration/wireless/headless.md guide].&lt;br /&gt;
=== Interfaces ===&lt;br /&gt;
 sudo raspi-config&lt;br /&gt;
* '''Enable the serial interface''' (UART) and '''disable the login shell''' via the UART:&lt;br /&gt;
 3 Interface Options -&amp;gt; P6 Serial Port -&amp;gt; No (login shell over serial) -&amp;gt; Yes (serial port)&lt;br /&gt;
* Enable I2C Interface:&lt;br /&gt;
 3 Interface Options -&amp;gt; P5 I2C -&amp;gt; Yes (enable)&lt;br /&gt;
* (Optional) '''Enable SSH''':&lt;br /&gt;
 3 Interface Options -&amp;gt; P2 SSH -&amp;gt; Yes (enable)&lt;br /&gt;
&lt;br /&gt;
=== Network ===&lt;br /&gt;
By default, the RPi is configured to automatically obtain an IP address when a connection is available and DHCP in your local network is active (this should be the case for most local/home networks).&lt;br /&gt;
If you prefer a fixed IP address in a local network: edit the file /etc/dhcpcd.conf. Use the template and uncomment the &amp;quot;Example Static IP Configuration&amp;quot; section with your desired IP address.&lt;br /&gt;
If network access should be established via WiFi, either configure it via the network configuration wizard in the graphical desktop environment (usually network icon in the system bar), or manually following these steps (either method is fine):&lt;br /&gt;
* Make sure that the wpa_supplicant package is installed:&lt;br /&gt;
 sudo apt install wpasupplicant&lt;br /&gt;
* edit the file /etc/wpa_supplicant/wpa_supplicant.conf:&lt;br /&gt;
 sudo nano /etc/wpa_supplicant/wpa_supplicant.conf&lt;br /&gt;
the configuration should look like this (non-relevant lines not shown):&lt;br /&gt;
 update_config=1&lt;br /&gt;
 country=DE&amp;lt;/br&amp;gt;&lt;br /&gt;
 network={&lt;br /&gt;
        ssid=&amp;quot;&amp;lt;your network ssid&amp;gt;&amp;quot;&lt;br /&gt;
        psk=&amp;quot;&amp;lt;your wifi password&amp;gt;&amp;quot;&lt;br /&gt;
        key_mgmt=WPA-PSK&lt;br /&gt;
 }&lt;br /&gt;
Enter your WiFi's SSID and password in the indicated fields.&lt;br /&gt;
Finally, restart the system that the changes take effect.&lt;br /&gt;
&lt;br /&gt;
=== MuonPi software installation ===&lt;br /&gt;
(Requirements: a MuonPi board plugged onto the GPIO connector of the RPi)&lt;br /&gt;
* First, add the MuonPi apt repository to your system:&lt;br /&gt;
 sudo sh -c &amp;quot;curl https://archive.muonpi.org/muondetector.public.key | gpg --dearmor &amp;gt; /etc/apt/trusted.gpg.d/muondetector.gpg&amp;quot;&lt;br /&gt;
&lt;br /&gt;
 sudo sh -c &amp;quot;echo deb &amp;lt;nowiki&amp;gt;https://archive.muonpi.org/raspbian buster main&amp;lt;/nowiki&amp;gt; &amp;gt; /etc/apt/sources.list.d/muondetector.list&amp;quot;&lt;br /&gt;
* Update the repositories:&lt;br /&gt;
 sudo apt update&lt;br /&gt;
* Install the muondetector-daemon package and it's dependencies:&lt;br /&gt;
 sudo apt install muondetector-daemon&lt;br /&gt;
* Optional: install the Graphical User Interface (GUI) program to monitor and control the MuonPi locally.&lt;br /&gt;
 sudo apt install muondetector-gui&lt;br /&gt;
{{Note|Note that if you want to use the gui on the raspberrypi, it is recommended to use the Raspberrypi OS with Desktop preinstalled.|reminder}}&lt;br /&gt;
&lt;br /&gt;
* The GUI can connect to the MuonPi over network as well, so it can be installed on other computers in the local network. Currently, binary packages for Raspbian, Ubuntu and Windows are available. The Linux-based versions can be installed from the package repositories (execute steps 1,2 and 4 from this list). The Windows program can be downloaded directly from https://archive.muonpi.org and installed by simply unpacking the zip-archive.&lt;br /&gt;
&lt;br /&gt;
=== Login with your user credentials (only once) ===&lt;br /&gt;
&lt;br /&gt;
Before taking the MuonPi detector into operation, you have to set your credentials for publishing data messages to the server via [http://mqtt.org/ MQTT] protocol on first start. This can be managed in two ways, one secure and one where your credentials appear as plain text in the config file:&lt;br /&gt;
==== The Recommended Method ====&lt;br /&gt;
In a bash shell on the MuonPi, run the command &amp;lt;code&amp;gt;muondetector-login&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
'''Note that for the software version 2.0.0 the command to run is &amp;lt;code&amp;gt;sudo runuser -u muonuser -- muondetector-login&amp;lt;/code&amp;gt; instead.'''&lt;br /&gt;
&lt;br /&gt;
When asked for sudo access, enter the password of your raspberry pi user.&lt;br /&gt;
When asked for your user name and password, enter the credentials supplied to you by a MounPi.org official. The credentials are stored (not in clear text) for all further telemetry connections.&lt;br /&gt;
&lt;br /&gt;
==== Alternative Method ====&lt;br /&gt;
Uncomment the &amp;lt;code&amp;gt;mqtt_user&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;mqtt_password&amp;lt;/code&amp;gt; options in &amp;lt;code&amp;gt;/etc/muondetector/muondetector.conf&amp;lt;/code&amp;gt; and type your personal username and password into these fields between the quotation marks. Be aware, that these credentials are written in plain text into this file and can be retrieved by malware attacks. However, if you operate a station inside a home network and set up a strong ssh authentication (see above), you should be relatively safe.&lt;br /&gt;
&lt;br /&gt;
=== Start the Daemon ===&lt;br /&gt;
The daemon should be enabled and started automatically after installation and on every reboot. However, when changing items in the config file, the changes have to be made effective by a daemon restart:&lt;br /&gt;
 sudo systemctl restart muondetector-daemon.service&lt;br /&gt;
&lt;br /&gt;
To see the current status of the daemon service use following command:&lt;br /&gt;
 systemctl status muondetector-daemon.service&lt;br /&gt;
&lt;br /&gt;
It can happen that the status shows 'failed' in red, usually a restart of the daemon service resolves this.&lt;br /&gt;
&lt;br /&gt;
If the service should not enable itself by default the status shows a grey 'not loaded'. To enable the service use:&lt;br /&gt;
 sudo systemctl enable muondetector-daemon.service&lt;br /&gt;
&lt;br /&gt;
= Configuration =&lt;br /&gt;
&lt;br /&gt;
Edit the configuration file /etc/muondetector/muondetector.conf: &amp;lt;code&amp;gt;nano /etc/muondetector/muondetector.conf&amp;lt;/code&amp;gt;.&lt;br /&gt;
Change the settings according to your needs or leave them untouched, if unsure. The comments in the config file should guide you through any required modifications. One option, however, describes the placement of your detector. If you like, choose a stationID descriptor, eg.:&amp;lt;/br&amp;gt;&lt;br /&gt;
(file: &amp;lt;code&amp;gt;/etc/muondetector/muondetector.conf&amp;lt;/code&amp;gt;)&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;#&amp;lt;/nowiki&amp;gt; A unique identifier of the user's station&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;#&amp;lt;/nowiki&amp;gt; leave on default when the user operates a single station&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;#&amp;lt;/nowiki&amp;gt; all detectors of the user are distinguishable on the basis of this id&lt;br /&gt;
 stationID = &amp;quot;HomeOffice&amp;quot;&lt;br /&gt;
&lt;br /&gt;
(anything which best describes the location of your detector like e.g. &amp;quot;GarageSW&amp;quot;, &amp;quot;Bldg16Lab105&amp;quot;, &amp;quot;AtticNE&amp;quot;). If you operate only one stationary detector, it may as well be left on the default ID which is &amp;quot;0&amp;quot; (zero).&lt;br /&gt;
&lt;br /&gt;
'''Important''': When operating multiple detectors (under the same user account, see below) the stationID descriptor '''must''' be unique for each detector.&lt;/div&gt;</summary>
		<author><name>Dtreffenstaedt</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.muonpi.org/index.php?title=Raspberry_Pi_Setup&amp;diff=740</id>
		<title>Raspberry Pi Setup</title>
		<link rel="alternate" type="text/html" href="https://wiki.muonpi.org/index.php?title=Raspberry_Pi_Setup&amp;diff=740"/>
		<updated>2021-08-21T13:36:38Z</updated>

		<summary type="html">&lt;p&gt;Dtreffenstaedt: /* Guided Setup */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;(Requirements: Raspberry Pi Versions 0, 2, 3, 4 (with 40-pin GPIO connector) )&lt;br /&gt;
&lt;br /&gt;
This article will introduce to you, how to set up a Raspberry Pi from scratch with all software needed to run the detector hardware.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
DISCLAIMER: If not stated otherwise, this tutorial is developed on Raspian 10 Buster.&lt;br /&gt;
&lt;br /&gt;
__TOC__&lt;br /&gt;
= Guided Setup =&lt;br /&gt;
This is the recommended way of setting up the muondetector software.&lt;br /&gt;
&lt;br /&gt;
# Download the latest muondetector [https://archive.muonpi.org/image/latest/ image]. &amp;lt;br&amp;gt; If you want to use the detector headless or without graphical user interface, select the -lite version, otherwise select the -gui version.&amp;lt;br&amp;gt; If you prefer to build your own version of the image, check out the [https://github.com/MuonPi/muondetector-image repository].&lt;br /&gt;
# Install the image onto an SD-Card: &amp;lt;br&amp;gt; [https://www.raspberrypi.org/documentation/computers/getting-started.html#installing-images-on-linux Linux]&amp;lt;br&amp;gt;[https://www.raspberrypi.org/documentation/computers/getting-started.html#installing-images-on-mac-os MacOS]&amp;lt;br&amp;gt;[https://www.raspberrypi.org/documentation/computers/getting-started.html#installing-images-on-windows Windows]&lt;br /&gt;
# (Optional) Setup [https://www.raspberrypi.org/documentation/configuration/wireless/headless.md headless] network. SSH is already enabled per default in the provided images.&lt;br /&gt;
# Boot your RaspberryPi&lt;br /&gt;
# Open a login console&lt;br /&gt;
## Per SSH, or&lt;br /&gt;
## Open a terminal on the RaspberryPi&lt;br /&gt;
# Follow the Prompts in the terminal&lt;br /&gt;
# Update your system&lt;br /&gt;
 sudo apt update &amp;amp;&amp;amp; sudo apt upgrade&lt;br /&gt;
[[File:Screenshot 2021-07-29 22-32-37.png|frameless|center]]&lt;br /&gt;
&lt;br /&gt;
= Manual Setup =&lt;br /&gt;
=== Basic ===&lt;br /&gt;
* Create a fresh install of RaspberryPi OS according to the [https://www.raspberrypi.org/documentation/installation/installing-images/ tutorial]&lt;br /&gt;
* Update your system:&lt;br /&gt;
 sudo apt update &amp;amp;&amp;amp; sudo apt upgrade&lt;br /&gt;
* Change the default password of the user &amp;lt;code&amp;gt;pi&amp;lt;/code&amp;gt;:&lt;br /&gt;
 passwd&lt;br /&gt;
* (Optional) For an headless install (without monitor and mouse/keyboard), we recommend following this [https://www.raspberrypi.org/documentation/configuration/wireless/headless.md guide].&lt;br /&gt;
=== Interfaces ===&lt;br /&gt;
 sudo raspi-config&lt;br /&gt;
* '''Enable the serial interface''' (UART) and '''disable the login shell''' via the UART:&lt;br /&gt;
 3 Interface Options -&amp;gt; P6 Serial Port -&amp;gt; No (login shell over serial) -&amp;gt; Yes (serial port)&lt;br /&gt;
* Enable I2C Interface:&lt;br /&gt;
 3 Interface Options -&amp;gt; P5 I2C -&amp;gt; Yes (enable)&lt;br /&gt;
* (Optional) '''Enable SSH''':&lt;br /&gt;
 3 Interface Options -&amp;gt; P2 SSH -&amp;gt; Yes (enable)&lt;br /&gt;
&lt;br /&gt;
=== Network ===&lt;br /&gt;
By default, the RPi is configured to automatically obtain an IP address when a connection is available and DHCP in your local network is active (this should be the case for most local/home networks).&lt;br /&gt;
If you prefer a fixed IP address in a local network: edit the file /etc/dhcpcd.conf. Use the template and uncomment the &amp;quot;Example Static IP Configuration&amp;quot; section with your desired IP address.&lt;br /&gt;
If network access should be established via WiFi, either configure it via the network configuration wizard in the graphical desktop environment (usually network icon in the system bar), or manually following these steps (either method is fine):&lt;br /&gt;
* Make sure that the wpa_supplicant package is installed:&lt;br /&gt;
 sudo apt install wpasupplicant&lt;br /&gt;
* edit the file /etc/wpa_supplicant/wpa_supplicant.conf:&lt;br /&gt;
 sudo nano /etc/wpa_supplicant/wpa_supplicant.conf&lt;br /&gt;
the configuration should look like this (non-relevant lines not shown):&lt;br /&gt;
 update_config=1&lt;br /&gt;
 country=DE&amp;lt;/br&amp;gt;&lt;br /&gt;
 network={&lt;br /&gt;
        ssid=&amp;quot;&amp;lt;your network ssid&amp;gt;&amp;quot;&lt;br /&gt;
        psk=&amp;quot;&amp;lt;your wifi password&amp;gt;&amp;quot;&lt;br /&gt;
        key_mgmt=WPA-PSK&lt;br /&gt;
 }&lt;br /&gt;
Enter your WiFi's SSID and password in the indicated fields.&lt;br /&gt;
Finally, restart the system that the changes take effect.&lt;br /&gt;
&lt;br /&gt;
=== MuonPi software installation ===&lt;br /&gt;
(Requirements: a MuonPi board plugged onto the GPIO connector of the RPi)&lt;br /&gt;
* First, add the MuonPi apt repository to your system:&lt;br /&gt;
 sudo sh -c &amp;quot;curl https://archive.muonpi.org/muondetector.public.key | gpg --dearmor &amp;gt; /etc/apt/trusted.gpg.d/muondetector.gpg&amp;quot;&lt;br /&gt;
&lt;br /&gt;
 sudo sh -c &amp;quot;echo deb &amp;lt;nowiki&amp;gt;https://archive.muonpi.org/raspbian buster main&amp;lt;/nowiki&amp;gt; &amp;gt; /etc/apt/sources.list.d/muondetector.list&amp;quot;&lt;br /&gt;
* Update the repositories:&lt;br /&gt;
 sudo apt update&lt;br /&gt;
* Install the muondetector-daemon package and it's dependencies:&lt;br /&gt;
 sudo apt install muondetector-daemon&lt;br /&gt;
* Optional: install the Graphical User Interface (GUI) program to monitor and control the MuonPi locally.&lt;br /&gt;
 sudo apt install muondetector-gui&lt;br /&gt;
{{Note|Note that if you want to use the gui on the raspberrypi, it is recommended to use the Raspberrypi OS with Desktop preinstalled.|reminder}}&lt;br /&gt;
&lt;br /&gt;
* The GUI can connect to the MuonPi over network as well, so it can be installed on other computers in the local network. Currently, binary packages for Raspbian, Ubuntu and Windows are available. The Linux-based versions can be installed from the package repositories (execute steps 1,2 and 4 from this list). The Windows program can be downloaded directly from https://archive.muonpi.org and installed by simply unpacking the zip-archive.&lt;br /&gt;
&lt;br /&gt;
=== Login with your user credentials (only once) ===&lt;br /&gt;
&lt;br /&gt;
Before taking the MuonPi detector into operation, you have to set your credentials for publishing data messages to the server via [http://mqtt.org/ MQTT] protocol on first start. This can be managed in two ways, one secure and one where your credentials appear as plain text in the config file:&lt;br /&gt;
==== The Recommended Method ====&lt;br /&gt;
In a bash shell on the MuonPi, run the command &amp;lt;code&amp;gt;muondetector-login&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
'''Note that for the software version 2.0.0 the command to run is &amp;lt;code&amp;gt;sudo runuser -u muonuser -- muondetector-login&amp;lt;/code&amp;gt; instead.'''&lt;br /&gt;
&lt;br /&gt;
When asked for sudo access, enter the password of your raspberry pi user.&lt;br /&gt;
When asked for your user name and password, enter the credentials supplied to you by a MounPi.org official. The credentials are stored (not in clear text) for all further telemetry connections.&lt;br /&gt;
&lt;br /&gt;
==== Alternative Method ====&lt;br /&gt;
Uncomment the &amp;lt;code&amp;gt;mqtt_user&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;mqtt_password&amp;lt;/code&amp;gt; options in &amp;lt;code&amp;gt;/etc/muondetector/muondetector.conf&amp;lt;/code&amp;gt; and type your personal username and password into these fields between the quotation marks. Be aware, that these credentials are written in plain text into this file and can be retrieved by malware attacks. However, if you operate a station inside a home network and set up a strong ssh authentication (see above), you should be relatively safe.&lt;br /&gt;
&lt;br /&gt;
=== Start the Daemon ===&lt;br /&gt;
The daemon should be enabled and started automatically after installation and on every reboot. However, when changing items in the config file, the changes have to be made effective by a daemon restart:&lt;br /&gt;
 sudo systemctl restart muondetector-daemon.service&lt;br /&gt;
&lt;br /&gt;
To see the current status of the daemon service use following command:&lt;br /&gt;
 systemctl status muondetector-daemon.service&lt;br /&gt;
&lt;br /&gt;
It can happen that the status shows 'failed' in red, usually a restart of the daemon service resolves this.&lt;br /&gt;
&lt;br /&gt;
If the service should not enable itself by default the status shows a grey 'not loaded'. To enable the service use:&lt;br /&gt;
 sudo systemctl enable muondetector-daemon.service&lt;br /&gt;
&lt;br /&gt;
= Configuration =&lt;br /&gt;
&lt;br /&gt;
Edit the configuration file /etc/muondetector/muondetector.conf: &amp;lt;code&amp;gt;nano /etc/muondetector/muondetector.conf&amp;lt;/code&amp;gt;.&lt;br /&gt;
Change the settings according to your needs or leave them untouched, if unsure. The comments in the config file should guide you through any required modifications. One option, however, describes the placement of your detector. If you like, choose a stationID descriptor, eg.:&amp;lt;/br&amp;gt;&lt;br /&gt;
(file: &amp;lt;code&amp;gt;/etc/muondetector/muondetector.conf&amp;lt;/code&amp;gt;)&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;#&amp;lt;/nowiki&amp;gt; A unique identifier of the user's station&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;#&amp;lt;/nowiki&amp;gt; leave on default when the user operates a single station&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;#&amp;lt;/nowiki&amp;gt; all detectors of the user are distinguishable on the basis of this id&lt;br /&gt;
 stationID = &amp;quot;HomeOffice&amp;quot;&lt;br /&gt;
&lt;br /&gt;
(anything which best describes the location of your detector like e.g. &amp;quot;GarageSW&amp;quot;, &amp;quot;Bldg16Lab105&amp;quot;, &amp;quot;AtticNE&amp;quot;). If you operate only one stationary detector, it may as well be left on the default ID which is &amp;quot;0&amp;quot; (zero).&lt;br /&gt;
&lt;br /&gt;
'''Important''': When operating multiple detectors (under the same user account, see below) the stationID descriptor '''must''' be unique for each detector.&lt;/div&gt;</summary>
		<author><name>Dtreffenstaedt</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.muonpi.org/index.php?title=Detector_Status&amp;diff=739</id>
		<title>Detector Status</title>
		<link rel="alternate" type="text/html" href="https://wiki.muonpi.org/index.php?title=Detector_Status&amp;diff=739"/>
		<updated>2021-07-30T11:19:44Z</updated>

		<summary type="html">&lt;p&gt;Dtreffenstaedt: /* Possible detector status */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= Real-Time Analysis =&lt;br /&gt;
The incoming data from all detectors is analysed in real-time before being written to the database.&lt;br /&gt;
&lt;br /&gt;
This analysis consists of the calculation of coincidences between all possible detector pairs. Additionally each individual and total coincidence detection rate is determined.&lt;br /&gt;
&lt;br /&gt;
In order to ensure the validity of the data at all times, each detectors reliability is judged.&lt;br /&gt;
&lt;br /&gt;
=== Reliability ===&lt;br /&gt;
&lt;br /&gt;
Determining factors include e.g. quality of GNSS signal, effective [https://en.wikipedia.org/wiki/Dilution_of_precision_(navigation) DOP] or the steadieness of detection rate.&lt;br /&gt;
&lt;br /&gt;
For a detailed view, you can check out the relevant code at [https://github.com/MuonPi/muondetector-cluster/blob/3797637b2c475c91296d52ffc5f9debdd865369f/src/analysis/detectorstation.cpp#L148-L166 our github].&lt;br /&gt;
&lt;br /&gt;
Additionally to the standard requirements, individual events can cause an instant unreliability mark due to exceptionally bad time resolution or no valid GNSS fix. Those events are automatically rejected.&lt;br /&gt;
&lt;br /&gt;
Compare [https://github.com/MuonPi/muondetector-cluster/blob/3797637b2c475c91296d52ffc5f9debdd865369f/src/analysis/detectorstation.cpp#L116-L120 the code] to see the detailed requirements.&lt;br /&gt;
&lt;br /&gt;
=== Possible detector status ===&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! Status !! Data is processed !! Description&lt;br /&gt;
|-&lt;br /&gt;
| deleted || no || The detector has not sent data for over 48 hours&lt;br /&gt;
|-&lt;br /&gt;
| offline || no || The detector is not connected or experiences network problems&lt;br /&gt;
|-&lt;br /&gt;
| online ||  no || The detector is recently connected&lt;br /&gt;
|-&lt;br /&gt;
| reliable || yes || The detector is connected and all parameters are deemed good&lt;br /&gt;
|-&lt;br /&gt;
| unreliable || no || The detector is connected but experiences network problems or has sub-optimal runtime parameters&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=== Possible reasons ===&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! reason !! Description&lt;br /&gt;
|-&lt;br /&gt;
| miscellaneous || No reason has been specified&lt;br /&gt;
|-&lt;br /&gt;
| time_accuracy || The mean time accuracy of the detector was outside the specifications&lt;br /&gt;
|-&lt;br /&gt;
| time_accuracy_extreme || The time accuracy of a single event reached an extreme value&lt;br /&gt;
|-&lt;br /&gt;
| location_precision || The mean location precision of the detector was outside the specifications&lt;br /&gt;
|-&lt;br /&gt;
| rate_unstable || The standard deviation of the event rate was too large compared to the mean&lt;br /&gt;
|-&lt;br /&gt;
| missed_log_interval || The detector missed a log interval (One for unreliable, Three intervals for offline)&lt;br /&gt;
|}&lt;/div&gt;</summary>
		<author><name>Dtreffenstaedt</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.muonpi.org/index.php?title=Raspberry_Pi_Setup&amp;diff=738</id>
		<title>Raspberry Pi Setup</title>
		<link rel="alternate" type="text/html" href="https://wiki.muonpi.org/index.php?title=Raspberry_Pi_Setup&amp;diff=738"/>
		<updated>2021-07-29T21:10:03Z</updated>

		<summary type="html">&lt;p&gt;Dtreffenstaedt: /* Manual Setup */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;(Requirements: Raspberry Pi Versions 0, 2, 3, 4 (with 40-pin GPIO connector) )&lt;br /&gt;
&lt;br /&gt;
This article will introduce to you, how to set up a Raspberry Pi from scratch with all software needed to run the detector hardware.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
DISCLAIMER: If not stated otherwise, this tutorial is developed on Raspian 10 Buster.&lt;br /&gt;
&lt;br /&gt;
__TOC__&lt;br /&gt;
= Guided Setup =&lt;br /&gt;
This is the recommended way of setting up the muondetector software.&lt;br /&gt;
&lt;br /&gt;
# Download the latest muondetector [https://archive.muonpi.org/image/latest/ image]. &amp;lt;br&amp;gt; If you want to use the detector headless or without graphical user interface, select the -lite version, otherwise select the -gui version.&amp;lt;br&amp;gt; If you prefer to build your own version of the image, check out the [https://github.com/MuonPi/muondetector-image repository].&lt;br /&gt;
# Install the image onto an SD-Card: &amp;lt;br&amp;gt; [https://www.raspberrypi.org/documentation/installation/installing-images/linux.md Linux]&amp;lt;br&amp;gt;[https://www.raspberrypi.org/documentation/installation/installing-images/mac.md MacOS]&amp;lt;br&amp;gt;[https://www.raspberrypi.org/documentation/installation/installing-images/windows.md Windows]&lt;br /&gt;
# (Optional) Setup [https://www.raspberrypi.org/documentation/configuration/wireless/headless.md headless] network. SSH is already enabled per default in the provided images.&lt;br /&gt;
# Boot your RaspberryPi&lt;br /&gt;
# Open a login console&lt;br /&gt;
## Per SSH, or&lt;br /&gt;
## Open a terminal on the RaspberryPi&lt;br /&gt;
# Follow the Prompts in the terminal&lt;br /&gt;
# Update your system&lt;br /&gt;
 sudo apt update &amp;amp;&amp;amp; sudo apt upgrade&lt;br /&gt;
[[File:Screenshot 2021-07-29 22-32-37.png|frameless|center]]&lt;br /&gt;
&lt;br /&gt;
= Manual Setup =&lt;br /&gt;
=== Basic ===&lt;br /&gt;
* Create a fresh install of RaspberryPi OS according to the [https://www.raspberrypi.org/documentation/installation/installing-images/ tutorial]&lt;br /&gt;
* Update your system:&lt;br /&gt;
 sudo apt update &amp;amp;&amp;amp; sudo apt upgrade&lt;br /&gt;
* Change the default password of the user &amp;lt;code&amp;gt;pi&amp;lt;/code&amp;gt;:&lt;br /&gt;
 passwd&lt;br /&gt;
* (Optional) For an headless install (without monitor and mouse/keyboard), we recommend following this [https://www.raspberrypi.org/documentation/configuration/wireless/headless.md guide].&lt;br /&gt;
=== Interfaces ===&lt;br /&gt;
 sudo raspi-config&lt;br /&gt;
* '''Enable the serial interface''' (UART) and '''disable the login shell''' via the UART:&lt;br /&gt;
 3 Interface Options -&amp;gt; P6 Serial Port -&amp;gt; No (login shell over serial) -&amp;gt; Yes (serial port)&lt;br /&gt;
* Enable I2C Interface:&lt;br /&gt;
 3 Interface Options -&amp;gt; P5 I2C -&amp;gt; Yes (enable)&lt;br /&gt;
* (Optional) '''Enable SSH''':&lt;br /&gt;
 3 Interface Options -&amp;gt; P2 SSH -&amp;gt; Yes (enable)&lt;br /&gt;
&lt;br /&gt;
=== Network ===&lt;br /&gt;
By default, the RPi is configured to automatically obtain an IP address when a connection is available and DHCP in your local network is active (this should be the case for most local/home networks).&lt;br /&gt;
If you prefer a fixed IP address in a local network: edit the file /etc/dhcpcd.conf. Use the template and uncomment the &amp;quot;Example Static IP Configuration&amp;quot; section with your desired IP address.&lt;br /&gt;
If network access should be established via WiFi, either configure it via the network configuration wizard in the graphical desktop environment (usually network icon in the system bar), or manually following these steps (either method is fine):&lt;br /&gt;
* Make sure that the wpa_supplicant package is installed:&lt;br /&gt;
 sudo apt install wpasupplicant&lt;br /&gt;
* edit the file /etc/wpa_supplicant/wpa_supplicant.conf:&lt;br /&gt;
 sudo nano /etc/wpa_supplicant/wpa_supplicant.conf&lt;br /&gt;
the configuration should look like this (non-relevant lines not shown):&lt;br /&gt;
 update_config=1&lt;br /&gt;
 country=DE&amp;lt;/br&amp;gt;&lt;br /&gt;
 network={&lt;br /&gt;
        ssid=&amp;quot;&amp;lt;your network ssid&amp;gt;&amp;quot;&lt;br /&gt;
        psk=&amp;quot;&amp;lt;your wifi password&amp;gt;&amp;quot;&lt;br /&gt;
        key_mgmt=WPA-PSK&lt;br /&gt;
 }&lt;br /&gt;
Enter your WiFi's SSID and password in the indicated fields.&lt;br /&gt;
Finally, restart the system that the changes take effect.&lt;br /&gt;
&lt;br /&gt;
=== MuonPi software installation ===&lt;br /&gt;
(Requirements: a MuonPi board plugged onto the GPIO connector of the RPi)&lt;br /&gt;
* First, add the MuonPi apt repository to your system:&lt;br /&gt;
 sudo sh -c &amp;quot;curl https://archive.muonpi.org/muondetector.public.key | gpg --dearmor &amp;gt; /etc/apt/trusted.gpg.d/muondetector.gpg&amp;quot;&lt;br /&gt;
&lt;br /&gt;
 sudo sh -c &amp;quot;echo deb &amp;lt;nowiki&amp;gt;https://archive.muonpi.org/raspbian buster main&amp;lt;/nowiki&amp;gt; &amp;gt; /etc/apt/sources.list.d/muondetector.list&amp;quot;&lt;br /&gt;
* Update the repositories:&lt;br /&gt;
 sudo apt update&lt;br /&gt;
* Install the muondetector-daemon package and it's dependencies:&lt;br /&gt;
 sudo apt install muondetector-daemon&lt;br /&gt;
* Optional: install the Graphical User Interface (GUI) program to monitor and control the MuonPi locally.&lt;br /&gt;
 sudo apt install muondetector-gui&lt;br /&gt;
{{Note|Note that if you want to use the gui on the raspberrypi, it is recommended to use the Raspberrypi OS with Desktop preinstalled.|reminder}}&lt;br /&gt;
&lt;br /&gt;
* The GUI can connect to the MuonPi over network as well, so it can be installed on other computers in the local network. Currently, binary packages for Raspbian, Ubuntu and Windows are available. The Linux-based versions can be installed from the package repositories (execute steps 1,2 and 4 from this list). The Windows program can be downloaded directly from https://archive.muonpi.org and installed by simply unpacking the zip-archive.&lt;br /&gt;
&lt;br /&gt;
=== Login with your user credentials (only once) ===&lt;br /&gt;
&lt;br /&gt;
Before taking the MuonPi detector into operation, you have to set your credentials for publishing data messages to the server via [http://mqtt.org/ MQTT] protocol on first start. This can be managed in two ways, one secure and one where your credentials appear as plain text in the config file:&lt;br /&gt;
==== The Recommended Method ====&lt;br /&gt;
In a bash shell on the MuonPi, run the command &amp;lt;code&amp;gt;muondetector-login&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
'''Note that for the software version 2.0.0 the command to run is &amp;lt;code&amp;gt;sudo runuser -u muonuser -- muondetector-login&amp;lt;/code&amp;gt; instead.'''&lt;br /&gt;
&lt;br /&gt;
When asked for sudo access, enter the password of your raspberry pi user.&lt;br /&gt;
When asked for your user name and password, enter the credentials supplied to you by a MounPi.org official. The credentials are stored (not in clear text) for all further telemetry connections.&lt;br /&gt;
&lt;br /&gt;
==== Alternative Method ====&lt;br /&gt;
Uncomment the &amp;lt;code&amp;gt;mqtt_user&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;mqtt_password&amp;lt;/code&amp;gt; options in &amp;lt;code&amp;gt;/etc/muondetector/muondetector.conf&amp;lt;/code&amp;gt; and type your personal username and password into these fields between the quotation marks. Be aware, that these credentials are written in plain text into this file and can be retrieved by malware attacks. However, if you operate a station inside a home network and set up a strong ssh authentication (see above), you should be relatively safe.&lt;br /&gt;
&lt;br /&gt;
=== Start the Daemon ===&lt;br /&gt;
The daemon should be enabled and started automatically after installation and on every reboot. However, when changing items in the config file, the changes have to be made effective by a daemon restart:&lt;br /&gt;
 sudo systemctl restart muondetector-daemon.service&lt;br /&gt;
&lt;br /&gt;
To see the current status of the daemon service use following command:&lt;br /&gt;
 systemctl status muondetector-daemon.service&lt;br /&gt;
&lt;br /&gt;
It can happen that the status shows 'failed' in red, usually a restart of the daemon service resolves this.&lt;br /&gt;
&lt;br /&gt;
If the service should not enable itself by default the status shows a grey 'not loaded'. To enable the service use:&lt;br /&gt;
 sudo systemctl enable muondetector-daemon.service&lt;br /&gt;
&lt;br /&gt;
= Configuration =&lt;br /&gt;
&lt;br /&gt;
Edit the configuration file /etc/muondetector/muondetector.conf: &amp;lt;code&amp;gt;nano /etc/muondetector/muondetector.conf&amp;lt;/code&amp;gt;.&lt;br /&gt;
Change the settings according to your needs or leave them untouched, if unsure. The comments in the config file should guide you through any required modifications. One option, however, describes the placement of your detector. If you like, choose a stationID descriptor, eg.:&amp;lt;/br&amp;gt;&lt;br /&gt;
(file: &amp;lt;code&amp;gt;/etc/muondetector/muondetector.conf&amp;lt;/code&amp;gt;)&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;#&amp;lt;/nowiki&amp;gt; A unique identifier of the user's station&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;#&amp;lt;/nowiki&amp;gt; leave on default when the user operates a single station&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;#&amp;lt;/nowiki&amp;gt; all detectors of the user are distinguishable on the basis of this id&lt;br /&gt;
 stationID = &amp;quot;HomeOffice&amp;quot;&lt;br /&gt;
&lt;br /&gt;
(anything which best describes the location of your detector like e.g. &amp;quot;GarageSW&amp;quot;, &amp;quot;Bldg16Lab105&amp;quot;, &amp;quot;AtticNE&amp;quot;). If you operate only one stationary detector, it may as well be left on the default ID which is &amp;quot;0&amp;quot; (zero).&lt;br /&gt;
&lt;br /&gt;
'''Important''': When operating multiple detectors (under the same user account, see below) the stationID descriptor '''must''' be unique for each detector.&lt;/div&gt;</summary>
		<author><name>Dtreffenstaedt</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.muonpi.org/index.php?title=Raspberry_Pi_Setup&amp;diff=737</id>
		<title>Raspberry Pi Setup</title>
		<link rel="alternate" type="text/html" href="https://wiki.muonpi.org/index.php?title=Raspberry_Pi_Setup&amp;diff=737"/>
		<updated>2021-07-29T21:09:25Z</updated>

		<summary type="html">&lt;p&gt;Dtreffenstaedt: /* Interfaces */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;(Requirements: Raspberry Pi Versions 0, 2, 3, 4 (with 40-pin GPIO connector) )&lt;br /&gt;
&lt;br /&gt;
This article will introduce to you, how to set up a Raspberry Pi from scratch with all software needed to run the detector hardware.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
DISCLAIMER: If not stated otherwise, this tutorial is developed on Raspian 10 Buster.&lt;br /&gt;
&lt;br /&gt;
__TOC__&lt;br /&gt;
= Guided Setup =&lt;br /&gt;
This is the recommended way of setting up the muondetector software.&lt;br /&gt;
&lt;br /&gt;
# Download the latest muondetector [https://archive.muonpi.org/image/latest/ image]. &amp;lt;br&amp;gt; If you want to use the detector headless or without graphical user interface, select the -lite version, otherwise select the -gui version.&amp;lt;br&amp;gt; If you prefer to build your own version of the image, check out the [https://github.com/MuonPi/muondetector-image repository].&lt;br /&gt;
# Install the image onto an SD-Card: &amp;lt;br&amp;gt; [https://www.raspberrypi.org/documentation/installation/installing-images/linux.md Linux]&amp;lt;br&amp;gt;[https://www.raspberrypi.org/documentation/installation/installing-images/mac.md MacOS]&amp;lt;br&amp;gt;[https://www.raspberrypi.org/documentation/installation/installing-images/windows.md Windows]&lt;br /&gt;
# (Optional) Setup [https://www.raspberrypi.org/documentation/configuration/wireless/headless.md headless] network. SSH is already enabled per default in the provided images.&lt;br /&gt;
# Boot your RaspberryPi&lt;br /&gt;
# Open a login console&lt;br /&gt;
## Per SSH, or&lt;br /&gt;
## Open a terminal on the RaspberryPi&lt;br /&gt;
# Follow the Prompts in the terminal&lt;br /&gt;
# Update your system&lt;br /&gt;
 sudo apt update &amp;amp;&amp;amp; sudo apt upgrade&lt;br /&gt;
[[File:Screenshot 2021-07-29 22-32-37.png|frameless|center]]&lt;br /&gt;
&lt;br /&gt;
= Manual Setup =&lt;br /&gt;
=== Basic ===&lt;br /&gt;
# Create a fresh install of RaspberryPi OS according to the [https://www.raspberrypi.org/documentation/installation/installing-images/ tutorial]&lt;br /&gt;
# Update your system:&lt;br /&gt;
 sudo apt update &amp;amp;&amp;amp; sudo apt upgrade&lt;br /&gt;
# Change the default password of the user &amp;lt;code&amp;gt;pi&amp;lt;/code&amp;gt;:&lt;br /&gt;
 passwd&lt;br /&gt;
# (Optional) For an headless install (without monitor and mouse/keyboard), we recommend following this [https://www.raspberrypi.org/documentation/configuration/wireless/headless.md guide].&lt;br /&gt;
=== Interfaces ===&lt;br /&gt;
 sudo raspi-config&lt;br /&gt;
* '''Enable the serial interface''' (UART) and '''disable the login shell''' via the UART:&lt;br /&gt;
 3 Interface Options -&amp;gt; P6 Serial Port -&amp;gt; No (login shell over serial) -&amp;gt; Yes (serial port)&lt;br /&gt;
* Enable I2C Interface:&lt;br /&gt;
 3 Interface Options -&amp;gt; P5 I2C -&amp;gt; Yes (enable)&lt;br /&gt;
* (Optional) '''Enable SSH''':&lt;br /&gt;
 3 Interface Options -&amp;gt; P2 SSH -&amp;gt; Yes (enable)&lt;br /&gt;
&lt;br /&gt;
=== Network ===&lt;br /&gt;
By default, the RPi is configured to automatically obtain an IP address when a connection is available and DHCP in your local network is active (this should be the case for most local/home networks).&lt;br /&gt;
If you prefer a fixed IP address in a local network: edit the file /etc/dhcpcd.conf. Use the template and uncomment the &amp;quot;Example Static IP Configuration&amp;quot; section with your desired IP address.&lt;br /&gt;
If network access should be established via WiFi, either configure it via the network configuration wizard in the graphical desktop environment (usually network icon in the system bar), or manually following these steps (either method is fine):&lt;br /&gt;
# Make sure that the wpa_supplicant package is installed:&lt;br /&gt;
 sudo apt install wpasupplicant&lt;br /&gt;
# edit the file /etc/wpa_supplicant/wpa_supplicant.conf:&lt;br /&gt;
 sudo nano /etc/wpa_supplicant/wpa_supplicant.conf&lt;br /&gt;
the configuration should look like this (non-relevant lines not shown):&lt;br /&gt;
 update_config=1&lt;br /&gt;
 country=DE&amp;lt;/br&amp;gt;&lt;br /&gt;
 network={&lt;br /&gt;
        ssid=&amp;quot;&amp;lt;your network ssid&amp;gt;&amp;quot;&lt;br /&gt;
        psk=&amp;quot;&amp;lt;your wifi password&amp;gt;&amp;quot;&lt;br /&gt;
        key_mgmt=WPA-PSK&lt;br /&gt;
 }&lt;br /&gt;
Enter your WiFi's SSID and password in the indicated fields.&lt;br /&gt;
Finally, restart the system that the changes take effect.&lt;br /&gt;
&lt;br /&gt;
=== MuonPi software installation ===&lt;br /&gt;
(Requirements: a MuonPi board plugged onto the GPIO connector of the RPi)&lt;br /&gt;
* First, add the MuonPi apt repository to your system:&lt;br /&gt;
 sudo sh -c &amp;quot;curl https://archive.muonpi.org/muondetector.public.key | gpg --dearmor &amp;gt; /etc/apt/trusted.gpg.d/muondetector.gpg&amp;quot;&lt;br /&gt;
&lt;br /&gt;
 sudo sh -c &amp;quot;echo deb &amp;lt;nowiki&amp;gt;https://archive.muonpi.org/raspbian buster main&amp;lt;/nowiki&amp;gt; &amp;gt; /etc/apt/sources.list.d/muondetector.list&amp;quot;&lt;br /&gt;
* Update the repositories:&lt;br /&gt;
 sudo apt update&lt;br /&gt;
* Install the muondetector-daemon package and it's dependencies:&lt;br /&gt;
 sudo apt install muondetector-daemon&lt;br /&gt;
* Optional: install the Graphical User Interface (GUI) program to monitor and control the MuonPi locally.&lt;br /&gt;
 sudo apt install muondetector-gui&lt;br /&gt;
{{Note|Note that if you want to use the gui on the raspberrypi, it is recommended to use the Raspberrypi OS with Desktop preinstalled.|reminder}}&lt;br /&gt;
&lt;br /&gt;
* The GUI can connect to the MuonPi over network as well, so it can be installed on other computers in the local network. Currently, binary packages for Raspbian, Ubuntu and Windows are available. The Linux-based versions can be installed from the package repositories (execute steps 1,2 and 4 from this list). The Windows program can be downloaded directly from https://archive.muonpi.org and installed by simply unpacking the zip-archive.&lt;br /&gt;
&lt;br /&gt;
=== Login with your user credentials (only once) ===&lt;br /&gt;
&lt;br /&gt;
Before taking the MuonPi detector into operation, you have to set your credentials for publishing data messages to the server via [http://mqtt.org/ MQTT] protocol on first start. This can be managed in two ways, one secure and one where your credentials appear as plain text in the config file:&lt;br /&gt;
==== The Recommended Method ====&lt;br /&gt;
In a bash shell on the MuonPi, run the command &amp;lt;code&amp;gt;muondetector-login&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
'''Note that for the software version 2.0.0 the command to run is &amp;lt;code&amp;gt;sudo runuser -u muonuser -- muondetector-login&amp;lt;/code&amp;gt; instead.'''&lt;br /&gt;
&lt;br /&gt;
When asked for sudo access, enter the password of your raspberry pi user.&lt;br /&gt;
When asked for your user name and password, enter the credentials supplied to you by a MounPi.org official. The credentials are stored (not in clear text) for all further telemetry connections.&lt;br /&gt;
&lt;br /&gt;
==== Alternative Method ====&lt;br /&gt;
Uncomment the &amp;lt;code&amp;gt;mqtt_user&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;mqtt_password&amp;lt;/code&amp;gt; options in &amp;lt;code&amp;gt;/etc/muondetector/muondetector.conf&amp;lt;/code&amp;gt; and type your personal username and password into these fields between the quotation marks. Be aware, that these credentials are written in plain text into this file and can be retrieved by malware attacks. However, if you operate a station inside a home network and set up a strong ssh authentication (see above), you should be relatively safe.&lt;br /&gt;
&lt;br /&gt;
=== Start the Daemon ===&lt;br /&gt;
The daemon should be enabled and started automatically after installation and on every reboot. However, when changing items in the config file, the changes have to be made effective by a daemon restart:&lt;br /&gt;
 sudo systemctl restart muondetector-daemon.service&lt;br /&gt;
&lt;br /&gt;
To see the current status of the daemon service use following command:&lt;br /&gt;
 systemctl status muondetector-daemon.service&lt;br /&gt;
&lt;br /&gt;
It can happen that the status shows 'failed' in red, usually a restart of the daemon service resolves this.&lt;br /&gt;
&lt;br /&gt;
If the service should not enable itself by default the status shows a grey 'not loaded'. To enable the service use:&lt;br /&gt;
 sudo systemctl enable muondetector-daemon.service&lt;br /&gt;
&lt;br /&gt;
= Configuration =&lt;br /&gt;
&lt;br /&gt;
Edit the configuration file /etc/muondetector/muondetector.conf: &amp;lt;code&amp;gt;nano /etc/muondetector/muondetector.conf&amp;lt;/code&amp;gt;.&lt;br /&gt;
Change the settings according to your needs or leave them untouched, if unsure. The comments in the config file should guide you through any required modifications. One option, however, describes the placement of your detector. If you like, choose a stationID descriptor, eg.:&amp;lt;/br&amp;gt;&lt;br /&gt;
(file: &amp;lt;code&amp;gt;/etc/muondetector/muondetector.conf&amp;lt;/code&amp;gt;)&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;#&amp;lt;/nowiki&amp;gt; A unique identifier of the user's station&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;#&amp;lt;/nowiki&amp;gt; leave on default when the user operates a single station&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;#&amp;lt;/nowiki&amp;gt; all detectors of the user are distinguishable on the basis of this id&lt;br /&gt;
 stationID = &amp;quot;HomeOffice&amp;quot;&lt;br /&gt;
&lt;br /&gt;
(anything which best describes the location of your detector like e.g. &amp;quot;GarageSW&amp;quot;, &amp;quot;Bldg16Lab105&amp;quot;, &amp;quot;AtticNE&amp;quot;). If you operate only one stationary detector, it may as well be left on the default ID which is &amp;quot;0&amp;quot; (zero).&lt;br /&gt;
&lt;br /&gt;
'''Important''': When operating multiple detectors (under the same user account, see below) the stationID descriptor '''must''' be unique for each detector.&lt;/div&gt;</summary>
		<author><name>Dtreffenstaedt</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.muonpi.org/index.php?title=Raspberry_Pi_Setup&amp;diff=736</id>
		<title>Raspberry Pi Setup</title>
		<link rel="alternate" type="text/html" href="https://wiki.muonpi.org/index.php?title=Raspberry_Pi_Setup&amp;diff=736"/>
		<updated>2021-07-29T21:09:01Z</updated>

		<summary type="html">&lt;p&gt;Dtreffenstaedt: /* Interfaces */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;(Requirements: Raspberry Pi Versions 0, 2, 3, 4 (with 40-pin GPIO connector) )&lt;br /&gt;
&lt;br /&gt;
This article will introduce to you, how to set up a Raspberry Pi from scratch with all software needed to run the detector hardware.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
DISCLAIMER: If not stated otherwise, this tutorial is developed on Raspian 10 Buster.&lt;br /&gt;
&lt;br /&gt;
__TOC__&lt;br /&gt;
= Guided Setup =&lt;br /&gt;
This is the recommended way of setting up the muondetector software.&lt;br /&gt;
&lt;br /&gt;
# Download the latest muondetector [https://archive.muonpi.org/image/latest/ image]. &amp;lt;br&amp;gt; If you want to use the detector headless or without graphical user interface, select the -lite version, otherwise select the -gui version.&amp;lt;br&amp;gt; If you prefer to build your own version of the image, check out the [https://github.com/MuonPi/muondetector-image repository].&lt;br /&gt;
# Install the image onto an SD-Card: &amp;lt;br&amp;gt; [https://www.raspberrypi.org/documentation/installation/installing-images/linux.md Linux]&amp;lt;br&amp;gt;[https://www.raspberrypi.org/documentation/installation/installing-images/mac.md MacOS]&amp;lt;br&amp;gt;[https://www.raspberrypi.org/documentation/installation/installing-images/windows.md Windows]&lt;br /&gt;
# (Optional) Setup [https://www.raspberrypi.org/documentation/configuration/wireless/headless.md headless] network. SSH is already enabled per default in the provided images.&lt;br /&gt;
# Boot your RaspberryPi&lt;br /&gt;
# Open a login console&lt;br /&gt;
## Per SSH, or&lt;br /&gt;
## Open a terminal on the RaspberryPi&lt;br /&gt;
# Follow the Prompts in the terminal&lt;br /&gt;
# Update your system&lt;br /&gt;
 sudo apt update &amp;amp;&amp;amp; sudo apt upgrade&lt;br /&gt;
[[File:Screenshot 2021-07-29 22-32-37.png|frameless|center]]&lt;br /&gt;
&lt;br /&gt;
= Manual Setup =&lt;br /&gt;
=== Basic ===&lt;br /&gt;
# Create a fresh install of RaspberryPi OS according to the [https://www.raspberrypi.org/documentation/installation/installing-images/ tutorial]&lt;br /&gt;
# Update your system:&lt;br /&gt;
 sudo apt update &amp;amp;&amp;amp; sudo apt upgrade&lt;br /&gt;
# Change the default password of the user &amp;lt;code&amp;gt;pi&amp;lt;/code&amp;gt;:&lt;br /&gt;
 passwd&lt;br /&gt;
# (Optional) For an headless install (without monitor and mouse/keyboard), we recommend following this [https://www.raspberrypi.org/documentation/configuration/wireless/headless.md guide].&lt;br /&gt;
=== Interfaces ===&lt;br /&gt;
 sudo raspi-config&lt;br /&gt;
# '''Enable the serial interface''' (UART) and '''disable the login shell''' via the UART:&lt;br /&gt;
 3 Interface Options -&amp;gt; P6 Serial Port -&amp;gt; No (login shell over serial) -&amp;gt; Yes (serial port)&lt;br /&gt;
# Enable I2C Interface:&lt;br /&gt;
 3 Interface Options -&amp;gt; P5 I2C -&amp;gt; Yes (enable)&lt;br /&gt;
# (Optional) '''Enable SSH''':&lt;br /&gt;
 3 Interface Options -&amp;gt; P2 SSH -&amp;gt; Yes (enable)&lt;br /&gt;
&lt;br /&gt;
=== Network ===&lt;br /&gt;
By default, the RPi is configured to automatically obtain an IP address when a connection is available and DHCP in your local network is active (this should be the case for most local/home networks).&lt;br /&gt;
If you prefer a fixed IP address in a local network: edit the file /etc/dhcpcd.conf. Use the template and uncomment the &amp;quot;Example Static IP Configuration&amp;quot; section with your desired IP address.&lt;br /&gt;
If network access should be established via WiFi, either configure it via the network configuration wizard in the graphical desktop environment (usually network icon in the system bar), or manually following these steps (either method is fine):&lt;br /&gt;
# Make sure that the wpa_supplicant package is installed:&lt;br /&gt;
 sudo apt install wpasupplicant&lt;br /&gt;
# edit the file /etc/wpa_supplicant/wpa_supplicant.conf:&lt;br /&gt;
 sudo nano /etc/wpa_supplicant/wpa_supplicant.conf&lt;br /&gt;
the configuration should look like this (non-relevant lines not shown):&lt;br /&gt;
 update_config=1&lt;br /&gt;
 country=DE&amp;lt;/br&amp;gt;&lt;br /&gt;
 network={&lt;br /&gt;
        ssid=&amp;quot;&amp;lt;your network ssid&amp;gt;&amp;quot;&lt;br /&gt;
        psk=&amp;quot;&amp;lt;your wifi password&amp;gt;&amp;quot;&lt;br /&gt;
        key_mgmt=WPA-PSK&lt;br /&gt;
 }&lt;br /&gt;
Enter your WiFi's SSID and password in the indicated fields.&lt;br /&gt;
Finally, restart the system that the changes take effect.&lt;br /&gt;
&lt;br /&gt;
=== MuonPi software installation ===&lt;br /&gt;
(Requirements: a MuonPi board plugged onto the GPIO connector of the RPi)&lt;br /&gt;
* First, add the MuonPi apt repository to your system:&lt;br /&gt;
 sudo sh -c &amp;quot;curl https://archive.muonpi.org/muondetector.public.key | gpg --dearmor &amp;gt; /etc/apt/trusted.gpg.d/muondetector.gpg&amp;quot;&lt;br /&gt;
&lt;br /&gt;
 sudo sh -c &amp;quot;echo deb &amp;lt;nowiki&amp;gt;https://archive.muonpi.org/raspbian buster main&amp;lt;/nowiki&amp;gt; &amp;gt; /etc/apt/sources.list.d/muondetector.list&amp;quot;&lt;br /&gt;
* Update the repositories:&lt;br /&gt;
 sudo apt update&lt;br /&gt;
* Install the muondetector-daemon package and it's dependencies:&lt;br /&gt;
 sudo apt install muondetector-daemon&lt;br /&gt;
* Optional: install the Graphical User Interface (GUI) program to monitor and control the MuonPi locally.&lt;br /&gt;
 sudo apt install muondetector-gui&lt;br /&gt;
{{Note|Note that if you want to use the gui on the raspberrypi, it is recommended to use the Raspberrypi OS with Desktop preinstalled.|reminder}}&lt;br /&gt;
&lt;br /&gt;
* The GUI can connect to the MuonPi over network as well, so it can be installed on other computers in the local network. Currently, binary packages for Raspbian, Ubuntu and Windows are available. The Linux-based versions can be installed from the package repositories (execute steps 1,2 and 4 from this list). The Windows program can be downloaded directly from https://archive.muonpi.org and installed by simply unpacking the zip-archive.&lt;br /&gt;
&lt;br /&gt;
=== Login with your user credentials (only once) ===&lt;br /&gt;
&lt;br /&gt;
Before taking the MuonPi detector into operation, you have to set your credentials for publishing data messages to the server via [http://mqtt.org/ MQTT] protocol on first start. This can be managed in two ways, one secure and one where your credentials appear as plain text in the config file:&lt;br /&gt;
==== The Recommended Method ====&lt;br /&gt;
In a bash shell on the MuonPi, run the command &amp;lt;code&amp;gt;muondetector-login&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
'''Note that for the software version 2.0.0 the command to run is &amp;lt;code&amp;gt;sudo runuser -u muonuser -- muondetector-login&amp;lt;/code&amp;gt; instead.'''&lt;br /&gt;
&lt;br /&gt;
When asked for sudo access, enter the password of your raspberry pi user.&lt;br /&gt;
When asked for your user name and password, enter the credentials supplied to you by a MounPi.org official. The credentials are stored (not in clear text) for all further telemetry connections.&lt;br /&gt;
&lt;br /&gt;
==== Alternative Method ====&lt;br /&gt;
Uncomment the &amp;lt;code&amp;gt;mqtt_user&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;mqtt_password&amp;lt;/code&amp;gt; options in &amp;lt;code&amp;gt;/etc/muondetector/muondetector.conf&amp;lt;/code&amp;gt; and type your personal username and password into these fields between the quotation marks. Be aware, that these credentials are written in plain text into this file and can be retrieved by malware attacks. However, if you operate a station inside a home network and set up a strong ssh authentication (see above), you should be relatively safe.&lt;br /&gt;
&lt;br /&gt;
=== Start the Daemon ===&lt;br /&gt;
The daemon should be enabled and started automatically after installation and on every reboot. However, when changing items in the config file, the changes have to be made effective by a daemon restart:&lt;br /&gt;
 sudo systemctl restart muondetector-daemon.service&lt;br /&gt;
&lt;br /&gt;
To see the current status of the daemon service use following command:&lt;br /&gt;
 systemctl status muondetector-daemon.service&lt;br /&gt;
&lt;br /&gt;
It can happen that the status shows 'failed' in red, usually a restart of the daemon service resolves this.&lt;br /&gt;
&lt;br /&gt;
If the service should not enable itself by default the status shows a grey 'not loaded'. To enable the service use:&lt;br /&gt;
 sudo systemctl enable muondetector-daemon.service&lt;br /&gt;
&lt;br /&gt;
= Configuration =&lt;br /&gt;
&lt;br /&gt;
Edit the configuration file /etc/muondetector/muondetector.conf: &amp;lt;code&amp;gt;nano /etc/muondetector/muondetector.conf&amp;lt;/code&amp;gt;.&lt;br /&gt;
Change the settings according to your needs or leave them untouched, if unsure. The comments in the config file should guide you through any required modifications. One option, however, describes the placement of your detector. If you like, choose a stationID descriptor, eg.:&amp;lt;/br&amp;gt;&lt;br /&gt;
(file: &amp;lt;code&amp;gt;/etc/muondetector/muondetector.conf&amp;lt;/code&amp;gt;)&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;#&amp;lt;/nowiki&amp;gt; A unique identifier of the user's station&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;#&amp;lt;/nowiki&amp;gt; leave on default when the user operates a single station&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;#&amp;lt;/nowiki&amp;gt; all detectors of the user are distinguishable on the basis of this id&lt;br /&gt;
 stationID = &amp;quot;HomeOffice&amp;quot;&lt;br /&gt;
&lt;br /&gt;
(anything which best describes the location of your detector like e.g. &amp;quot;GarageSW&amp;quot;, &amp;quot;Bldg16Lab105&amp;quot;, &amp;quot;AtticNE&amp;quot;). If you operate only one stationary detector, it may as well be left on the default ID which is &amp;quot;0&amp;quot; (zero).&lt;br /&gt;
&lt;br /&gt;
'''Important''': When operating multiple detectors (under the same user account, see below) the stationID descriptor '''must''' be unique for each detector.&lt;/div&gt;</summary>
		<author><name>Dtreffenstaedt</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.muonpi.org/index.php?title=Raspberry_Pi_Setup&amp;diff=735</id>
		<title>Raspberry Pi Setup</title>
		<link rel="alternate" type="text/html" href="https://wiki.muonpi.org/index.php?title=Raspberry_Pi_Setup&amp;diff=735"/>
		<updated>2021-07-29T21:07:44Z</updated>

		<summary type="html">&lt;p&gt;Dtreffenstaedt: /* Guided Setup */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;(Requirements: Raspberry Pi Versions 0, 2, 3, 4 (with 40-pin GPIO connector) )&lt;br /&gt;
&lt;br /&gt;
This article will introduce to you, how to set up a Raspberry Pi from scratch with all software needed to run the detector hardware.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
DISCLAIMER: If not stated otherwise, this tutorial is developed on Raspian 10 Buster.&lt;br /&gt;
&lt;br /&gt;
__TOC__&lt;br /&gt;
= Guided Setup =&lt;br /&gt;
This is the recommended way of setting up the muondetector software.&lt;br /&gt;
&lt;br /&gt;
# Download the latest muondetector [https://archive.muonpi.org/image/latest/ image]. &amp;lt;br&amp;gt; If you want to use the detector headless or without graphical user interface, select the -lite version, otherwise select the -gui version.&amp;lt;br&amp;gt; If you prefer to build your own version of the image, check out the [https://github.com/MuonPi/muondetector-image repository].&lt;br /&gt;
# Install the image onto an SD-Card: &amp;lt;br&amp;gt; [https://www.raspberrypi.org/documentation/installation/installing-images/linux.md Linux]&amp;lt;br&amp;gt;[https://www.raspberrypi.org/documentation/installation/installing-images/mac.md MacOS]&amp;lt;br&amp;gt;[https://www.raspberrypi.org/documentation/installation/installing-images/windows.md Windows]&lt;br /&gt;
# (Optional) Setup [https://www.raspberrypi.org/documentation/configuration/wireless/headless.md headless] network. SSH is already enabled per default in the provided images.&lt;br /&gt;
# Boot your RaspberryPi&lt;br /&gt;
# Open a login console&lt;br /&gt;
## Per SSH, or&lt;br /&gt;
## Open a terminal on the RaspberryPi&lt;br /&gt;
# Follow the Prompts in the terminal&lt;br /&gt;
# Update your system&lt;br /&gt;
 sudo apt update &amp;amp;&amp;amp; sudo apt upgrade&lt;br /&gt;
[[File:Screenshot 2021-07-29 22-32-37.png|frameless|center]]&lt;br /&gt;
&lt;br /&gt;
= Manual Setup =&lt;br /&gt;
=== Basic ===&lt;br /&gt;
# Create a fresh install of RaspberryPi OS according to the [https://www.raspberrypi.org/documentation/installation/installing-images/ tutorial]&lt;br /&gt;
# Update your system:&lt;br /&gt;
 sudo apt update &amp;amp;&amp;amp; sudo apt upgrade&lt;br /&gt;
# Change the default password of the user &amp;lt;code&amp;gt;pi&amp;lt;/code&amp;gt;:&lt;br /&gt;
 passwd&lt;br /&gt;
# (Optional) For an headless install (without monitor and mouse/keyboard), we recommend following this [https://www.raspberrypi.org/documentation/configuration/wireless/headless.md guide].&lt;br /&gt;
=== Interfaces ===&lt;br /&gt;
# '''Enable the serial interface''' (UART) and '''disable the login shell''' via the UART. In terminal: &amp;lt;code&amp;gt;sudo raspi-config&amp;lt;/code&amp;gt;&lt;br /&gt;
 3 Interface Options -&amp;gt; P6 Serial Port -&amp;gt; No (login shell over serial) -&amp;gt; Yes (serial port)&lt;br /&gt;
# Enable I2C Interface: In terminal: &amp;lt;code&amp;gt;sudo raspi-config&amp;lt;/code&amp;gt;&lt;br /&gt;
 3 Interface Options -&amp;gt; P5 I2C -&amp;gt; Yes (enable)&lt;br /&gt;
# (Optional) '''Enable SSH''': In a terminal: &amp;lt;code&amp;gt;sudo raspi-config&amp;lt;/code&amp;gt;&lt;br /&gt;
 3 Interface Options -&amp;gt; P2 SSH -&amp;gt; Yes (enable)&lt;br /&gt;
=== Network ===&lt;br /&gt;
By default, the RPi is configured to automatically obtain an IP address when a connection is available and DHCP in your local network is active (this should be the case for most local/home networks).&lt;br /&gt;
If you prefer a fixed IP address in a local network: edit the file /etc/dhcpcd.conf. Use the template and uncomment the &amp;quot;Example Static IP Configuration&amp;quot; section with your desired IP address.&lt;br /&gt;
If network access should be established via WiFi, either configure it via the network configuration wizard in the graphical desktop environment (usually network icon in the system bar), or manually following these steps (either method is fine):&lt;br /&gt;
# Make sure that the wpa_supplicant package is installed:&lt;br /&gt;
 sudo apt install wpasupplicant&lt;br /&gt;
# edit the file /etc/wpa_supplicant/wpa_supplicant.conf:&lt;br /&gt;
 sudo nano /etc/wpa_supplicant/wpa_supplicant.conf&lt;br /&gt;
the configuration should look like this (non-relevant lines not shown):&lt;br /&gt;
 update_config=1&lt;br /&gt;
 country=DE&amp;lt;/br&amp;gt;&lt;br /&gt;
 network={&lt;br /&gt;
        ssid=&amp;quot;&amp;lt;your network ssid&amp;gt;&amp;quot;&lt;br /&gt;
        psk=&amp;quot;&amp;lt;your wifi password&amp;gt;&amp;quot;&lt;br /&gt;
        key_mgmt=WPA-PSK&lt;br /&gt;
 }&lt;br /&gt;
Enter your WiFi's SSID and password in the indicated fields.&lt;br /&gt;
Finally, restart the system that the changes take effect.&lt;br /&gt;
&lt;br /&gt;
=== MuonPi software installation ===&lt;br /&gt;
(Requirements: a MuonPi board plugged onto the GPIO connector of the RPi)&lt;br /&gt;
* First, add the MuonPi apt repository to your system:&lt;br /&gt;
 sudo sh -c &amp;quot;curl https://archive.muonpi.org/muondetector.public.key | gpg --dearmor &amp;gt; /etc/apt/trusted.gpg.d/muondetector.gpg&amp;quot;&lt;br /&gt;
&lt;br /&gt;
 sudo sh -c &amp;quot;echo deb &amp;lt;nowiki&amp;gt;https://archive.muonpi.org/raspbian buster main&amp;lt;/nowiki&amp;gt; &amp;gt; /etc/apt/sources.list.d/muondetector.list&amp;quot;&lt;br /&gt;
* Update the repositories:&lt;br /&gt;
 sudo apt update&lt;br /&gt;
* Install the muondetector-daemon package and it's dependencies:&lt;br /&gt;
 sudo apt install muondetector-daemon&lt;br /&gt;
* Optional: install the Graphical User Interface (GUI) program to monitor and control the MuonPi locally.&lt;br /&gt;
 sudo apt install muondetector-gui&lt;br /&gt;
{{Note|Note that if you want to use the gui on the raspberrypi, it is recommended to use the Raspberrypi OS with Desktop preinstalled.|reminder}}&lt;br /&gt;
&lt;br /&gt;
* The GUI can connect to the MuonPi over network as well, so it can be installed on other computers in the local network. Currently, binary packages for Raspbian, Ubuntu and Windows are available. The Linux-based versions can be installed from the package repositories (execute steps 1,2 and 4 from this list). The Windows program can be downloaded directly from https://archive.muonpi.org and installed by simply unpacking the zip-archive.&lt;br /&gt;
&lt;br /&gt;
=== Login with your user credentials (only once) ===&lt;br /&gt;
&lt;br /&gt;
Before taking the MuonPi detector into operation, you have to set your credentials for publishing data messages to the server via [http://mqtt.org/ MQTT] protocol on first start. This can be managed in two ways, one secure and one where your credentials appear as plain text in the config file:&lt;br /&gt;
==== The Recommended Method ====&lt;br /&gt;
In a bash shell on the MuonPi, run the command &amp;lt;code&amp;gt;muondetector-login&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
'''Note that for the software version 2.0.0 the command to run is &amp;lt;code&amp;gt;sudo runuser -u muonuser -- muondetector-login&amp;lt;/code&amp;gt; instead.'''&lt;br /&gt;
&lt;br /&gt;
When asked for sudo access, enter the password of your raspberry pi user.&lt;br /&gt;
When asked for your user name and password, enter the credentials supplied to you by a MounPi.org official. The credentials are stored (not in clear text) for all further telemetry connections.&lt;br /&gt;
&lt;br /&gt;
==== Alternative Method ====&lt;br /&gt;
Uncomment the &amp;lt;code&amp;gt;mqtt_user&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;mqtt_password&amp;lt;/code&amp;gt; options in &amp;lt;code&amp;gt;/etc/muondetector/muondetector.conf&amp;lt;/code&amp;gt; and type your personal username and password into these fields between the quotation marks. Be aware, that these credentials are written in plain text into this file and can be retrieved by malware attacks. However, if you operate a station inside a home network and set up a strong ssh authentication (see above), you should be relatively safe.&lt;br /&gt;
&lt;br /&gt;
=== Start the Daemon ===&lt;br /&gt;
The daemon should be enabled and started automatically after installation and on every reboot. However, when changing items in the config file, the changes have to be made effective by a daemon restart:&lt;br /&gt;
 sudo systemctl restart muondetector-daemon.service&lt;br /&gt;
&lt;br /&gt;
To see the current status of the daemon service use following command:&lt;br /&gt;
 systemctl status muondetector-daemon.service&lt;br /&gt;
&lt;br /&gt;
It can happen that the status shows 'failed' in red, usually a restart of the daemon service resolves this.&lt;br /&gt;
&lt;br /&gt;
If the service should not enable itself by default the status shows a grey 'not loaded'. To enable the service use:&lt;br /&gt;
 sudo systemctl enable muondetector-daemon.service&lt;br /&gt;
&lt;br /&gt;
= Configuration =&lt;br /&gt;
&lt;br /&gt;
Edit the configuration file /etc/muondetector/muondetector.conf: &amp;lt;code&amp;gt;nano /etc/muondetector/muondetector.conf&amp;lt;/code&amp;gt;.&lt;br /&gt;
Change the settings according to your needs or leave them untouched, if unsure. The comments in the config file should guide you through any required modifications. One option, however, describes the placement of your detector. If you like, choose a stationID descriptor, eg.:&amp;lt;/br&amp;gt;&lt;br /&gt;
(file: &amp;lt;code&amp;gt;/etc/muondetector/muondetector.conf&amp;lt;/code&amp;gt;)&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;#&amp;lt;/nowiki&amp;gt; A unique identifier of the user's station&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;#&amp;lt;/nowiki&amp;gt; leave on default when the user operates a single station&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;#&amp;lt;/nowiki&amp;gt; all detectors of the user are distinguishable on the basis of this id&lt;br /&gt;
 stationID = &amp;quot;HomeOffice&amp;quot;&lt;br /&gt;
&lt;br /&gt;
(anything which best describes the location of your detector like e.g. &amp;quot;GarageSW&amp;quot;, &amp;quot;Bldg16Lab105&amp;quot;, &amp;quot;AtticNE&amp;quot;). If you operate only one stationary detector, it may as well be left on the default ID which is &amp;quot;0&amp;quot; (zero).&lt;br /&gt;
&lt;br /&gt;
'''Important''': When operating multiple detectors (under the same user account, see below) the stationID descriptor '''must''' be unique for each detector.&lt;/div&gt;</summary>
		<author><name>Dtreffenstaedt</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.muonpi.org/index.php?title=Raspberry_Pi_Setup&amp;diff=734</id>
		<title>Raspberry Pi Setup</title>
		<link rel="alternate" type="text/html" href="https://wiki.muonpi.org/index.php?title=Raspberry_Pi_Setup&amp;diff=734"/>
		<updated>2021-07-29T21:06:44Z</updated>

		<summary type="html">&lt;p&gt;Dtreffenstaedt: /* Manual Setup */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;(Requirements: Raspberry Pi Versions 0, 2, 3, 4 (with 40-pin GPIO connector) )&lt;br /&gt;
&lt;br /&gt;
This article will introduce to you, how to set up a Raspberry Pi from scratch with all software needed to run the detector hardware.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
DISCLAIMER: If not stated otherwise, this tutorial is developed on Raspian 10 Buster.&lt;br /&gt;
&lt;br /&gt;
__TOC__&lt;br /&gt;
= Guided Setup =&lt;br /&gt;
This is the recommended way of setting up the muondetector software.&lt;br /&gt;
&lt;br /&gt;
# Download the latest muondetector [https://archive.muonpi.org/image/latest/ image]. &amp;lt;br&amp;gt; If you want to use the detector headless or without graphical user interface, select the -lite version, otherwise select the -gui version.&amp;lt;br&amp;gt; If you prefer to build your own version of the image, check out the [https://github.com/MuonPi/muondetector-image repository].&lt;br /&gt;
# Install the image onto an SD-Card: &amp;lt;br&amp;gt; [https://www.raspberrypi.org/documentation/installation/installing-images/linux.md Linux]&amp;lt;br&amp;gt;[https://www.raspberrypi.org/documentation/installation/installing-images/mac.md MacOS]&amp;lt;br&amp;gt;[https://www.raspberrypi.org/documentation/installation/installing-images/windows.md Windows]&lt;br /&gt;
# (Optional) Setup [https://www.raspberrypi.org/documentation/configuration/wireless/headless.md headless] network. SSH is already enabled per default in the provided images.&lt;br /&gt;
# Boot your RaspberryPi&lt;br /&gt;
# Open a login console&lt;br /&gt;
## Per SSH, or&lt;br /&gt;
## Open a terminal on the RaspberryPi&lt;br /&gt;
# Follow the Prompts in the terminal&lt;br /&gt;
# Update your system&lt;br /&gt;
    sudo apt update &amp;amp;&amp;amp; sudo apt upgrade&lt;br /&gt;
[[File:Screenshot 2021-07-29 22-32-37.png|frameless|center]]&lt;br /&gt;
&lt;br /&gt;
= Manual Setup =&lt;br /&gt;
=== Basic ===&lt;br /&gt;
# Create a fresh install of RaspberryPi OS according to the [https://www.raspberrypi.org/documentation/installation/installing-images/ tutorial]&lt;br /&gt;
# Update your system:&lt;br /&gt;
 sudo apt update &amp;amp;&amp;amp; sudo apt upgrade&lt;br /&gt;
# Change the default password of the user &amp;lt;code&amp;gt;pi&amp;lt;/code&amp;gt;:&lt;br /&gt;
 passwd&lt;br /&gt;
# (Optional) For an headless install (without monitor and mouse/keyboard), we recommend following this [https://www.raspberrypi.org/documentation/configuration/wireless/headless.md guide].&lt;br /&gt;
=== Interfaces ===&lt;br /&gt;
# '''Enable the serial interface''' (UART) and '''disable the login shell''' via the UART. In terminal: &amp;lt;code&amp;gt;sudo raspi-config&amp;lt;/code&amp;gt;&lt;br /&gt;
 3 Interface Options -&amp;gt; P6 Serial Port -&amp;gt; No (login shell over serial) -&amp;gt; Yes (serial port)&lt;br /&gt;
# Enable I2C Interface: In terminal: &amp;lt;code&amp;gt;sudo raspi-config&amp;lt;/code&amp;gt;&lt;br /&gt;
 3 Interface Options -&amp;gt; P5 I2C -&amp;gt; Yes (enable)&lt;br /&gt;
# (Optional) '''Enable SSH''': In a terminal: &amp;lt;code&amp;gt;sudo raspi-config&amp;lt;/code&amp;gt;&lt;br /&gt;
 3 Interface Options -&amp;gt; P2 SSH -&amp;gt; Yes (enable)&lt;br /&gt;
=== Network ===&lt;br /&gt;
By default, the RPi is configured to automatically obtain an IP address when a connection is available and DHCP in your local network is active (this should be the case for most local/home networks).&lt;br /&gt;
If you prefer a fixed IP address in a local network: edit the file /etc/dhcpcd.conf. Use the template and uncomment the &amp;quot;Example Static IP Configuration&amp;quot; section with your desired IP address.&lt;br /&gt;
If network access should be established via WiFi, either configure it via the network configuration wizard in the graphical desktop environment (usually network icon in the system bar), or manually following these steps (either method is fine):&lt;br /&gt;
# Make sure that the wpa_supplicant package is installed:&lt;br /&gt;
 sudo apt install wpasupplicant&lt;br /&gt;
# edit the file /etc/wpa_supplicant/wpa_supplicant.conf:&lt;br /&gt;
 sudo nano /etc/wpa_supplicant/wpa_supplicant.conf&lt;br /&gt;
the configuration should look like this (non-relevant lines not shown):&lt;br /&gt;
 update_config=1&lt;br /&gt;
 country=DE&amp;lt;/br&amp;gt;&lt;br /&gt;
 network={&lt;br /&gt;
        ssid=&amp;quot;&amp;lt;your network ssid&amp;gt;&amp;quot;&lt;br /&gt;
        psk=&amp;quot;&amp;lt;your wifi password&amp;gt;&amp;quot;&lt;br /&gt;
        key_mgmt=WPA-PSK&lt;br /&gt;
 }&lt;br /&gt;
Enter your WiFi's SSID and password in the indicated fields.&lt;br /&gt;
Finally, restart the system that the changes take effect.&lt;br /&gt;
&lt;br /&gt;
=== MuonPi software installation ===&lt;br /&gt;
(Requirements: a MuonPi board plugged onto the GPIO connector of the RPi)&lt;br /&gt;
* First, add the MuonPi apt repository to your system:&lt;br /&gt;
 sudo sh -c &amp;quot;curl https://archive.muonpi.org/muondetector.public.key | gpg --dearmor &amp;gt; /etc/apt/trusted.gpg.d/muondetector.gpg&amp;quot;&lt;br /&gt;
&lt;br /&gt;
 sudo sh -c &amp;quot;echo deb &amp;lt;nowiki&amp;gt;https://archive.muonpi.org/raspbian buster main&amp;lt;/nowiki&amp;gt; &amp;gt; /etc/apt/sources.list.d/muondetector.list&amp;quot;&lt;br /&gt;
* Update the repositories:&lt;br /&gt;
 sudo apt update&lt;br /&gt;
* Install the muondetector-daemon package and it's dependencies:&lt;br /&gt;
 sudo apt install muondetector-daemon&lt;br /&gt;
* Optional: install the Graphical User Interface (GUI) program to monitor and control the MuonPi locally.&lt;br /&gt;
 sudo apt install muondetector-gui&lt;br /&gt;
{{Note|Note that if you want to use the gui on the raspberrypi, it is recommended to use the Raspberrypi OS with Desktop preinstalled.|reminder}}&lt;br /&gt;
&lt;br /&gt;
* The GUI can connect to the MuonPi over network as well, so it can be installed on other computers in the local network. Currently, binary packages for Raspbian, Ubuntu and Windows are available. The Linux-based versions can be installed from the package repositories (execute steps 1,2 and 4 from this list). The Windows program can be downloaded directly from https://archive.muonpi.org and installed by simply unpacking the zip-archive.&lt;br /&gt;
&lt;br /&gt;
=== Login with your user credentials (only once) ===&lt;br /&gt;
&lt;br /&gt;
Before taking the MuonPi detector into operation, you have to set your credentials for publishing data messages to the server via [http://mqtt.org/ MQTT] protocol on first start. This can be managed in two ways, one secure and one where your credentials appear as plain text in the config file:&lt;br /&gt;
==== The Recommended Method ====&lt;br /&gt;
In a bash shell on the MuonPi, run the command &amp;lt;code&amp;gt;muondetector-login&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
'''Note that for the software version 2.0.0 the command to run is &amp;lt;code&amp;gt;sudo runuser -u muonuser -- muondetector-login&amp;lt;/code&amp;gt; instead.'''&lt;br /&gt;
&lt;br /&gt;
When asked for sudo access, enter the password of your raspberry pi user.&lt;br /&gt;
When asked for your user name and password, enter the credentials supplied to you by a MounPi.org official. The credentials are stored (not in clear text) for all further telemetry connections.&lt;br /&gt;
&lt;br /&gt;
==== Alternative Method ====&lt;br /&gt;
Uncomment the &amp;lt;code&amp;gt;mqtt_user&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;mqtt_password&amp;lt;/code&amp;gt; options in &amp;lt;code&amp;gt;/etc/muondetector/muondetector.conf&amp;lt;/code&amp;gt; and type your personal username and password into these fields between the quotation marks. Be aware, that these credentials are written in plain text into this file and can be retrieved by malware attacks. However, if you operate a station inside a home network and set up a strong ssh authentication (see above), you should be relatively safe.&lt;br /&gt;
&lt;br /&gt;
=== Start the Daemon ===&lt;br /&gt;
The daemon should be enabled and started automatically after installation and on every reboot. However, when changing items in the config file, the changes have to be made effective by a daemon restart:&lt;br /&gt;
 sudo systemctl restart muondetector-daemon.service&lt;br /&gt;
&lt;br /&gt;
To see the current status of the daemon service use following command:&lt;br /&gt;
 systemctl status muondetector-daemon.service&lt;br /&gt;
&lt;br /&gt;
It can happen that the status shows 'failed' in red, usually a restart of the daemon service resolves this.&lt;br /&gt;
&lt;br /&gt;
If the service should not enable itself by default the status shows a grey 'not loaded'. To enable the service use:&lt;br /&gt;
 sudo systemctl enable muondetector-daemon.service&lt;br /&gt;
&lt;br /&gt;
= Configuration =&lt;br /&gt;
&lt;br /&gt;
Edit the configuration file /etc/muondetector/muondetector.conf: &amp;lt;code&amp;gt;nano /etc/muondetector/muondetector.conf&amp;lt;/code&amp;gt;.&lt;br /&gt;
Change the settings according to your needs or leave them untouched, if unsure. The comments in the config file should guide you through any required modifications. One option, however, describes the placement of your detector. If you like, choose a stationID descriptor, eg.:&amp;lt;/br&amp;gt;&lt;br /&gt;
(file: &amp;lt;code&amp;gt;/etc/muondetector/muondetector.conf&amp;lt;/code&amp;gt;)&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;#&amp;lt;/nowiki&amp;gt; A unique identifier of the user's station&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;#&amp;lt;/nowiki&amp;gt; leave on default when the user operates a single station&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;#&amp;lt;/nowiki&amp;gt; all detectors of the user are distinguishable on the basis of this id&lt;br /&gt;
 stationID = &amp;quot;HomeOffice&amp;quot;&lt;br /&gt;
&lt;br /&gt;
(anything which best describes the location of your detector like e.g. &amp;quot;GarageSW&amp;quot;, &amp;quot;Bldg16Lab105&amp;quot;, &amp;quot;AtticNE&amp;quot;). If you operate only one stationary detector, it may as well be left on the default ID which is &amp;quot;0&amp;quot; (zero).&lt;br /&gt;
&lt;br /&gt;
'''Important''': When operating multiple detectors (under the same user account, see below) the stationID descriptor '''must''' be unique for each detector.&lt;/div&gt;</summary>
		<author><name>Dtreffenstaedt</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.muonpi.org/index.php?title=Raspberry_Pi_Setup&amp;diff=733</id>
		<title>Raspberry Pi Setup</title>
		<link rel="alternate" type="text/html" href="https://wiki.muonpi.org/index.php?title=Raspberry_Pi_Setup&amp;diff=733"/>
		<updated>2021-07-29T20:59:19Z</updated>

		<summary type="html">&lt;p&gt;Dtreffenstaedt: /* Guided Setup */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;(Requirements: Raspberry Pi Versions 0, 2, 3, 4 (with 40-pin GPIO connector) )&lt;br /&gt;
&lt;br /&gt;
This article will introduce to you, how to set up a Raspberry Pi from scratch with all software needed to run the detector hardware.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
DISCLAIMER: If not stated otherwise, this tutorial is developed on Raspian 10 Buster.&lt;br /&gt;
&lt;br /&gt;
__TOC__&lt;br /&gt;
= Guided Setup =&lt;br /&gt;
This is the recommended way of setting up the muondetector software.&lt;br /&gt;
&lt;br /&gt;
# Download the latest muondetector [https://archive.muonpi.org/image/latest/ image]. &amp;lt;br&amp;gt; If you want to use the detector headless or without graphical user interface, select the -lite version, otherwise select the -gui version.&amp;lt;br&amp;gt; If you prefer to build your own version of the image, check out the [https://github.com/MuonPi/muondetector-image repository].&lt;br /&gt;
# Install the image onto an SD-Card: &amp;lt;br&amp;gt; [https://www.raspberrypi.org/documentation/installation/installing-images/linux.md Linux]&amp;lt;br&amp;gt;[https://www.raspberrypi.org/documentation/installation/installing-images/mac.md MacOS]&amp;lt;br&amp;gt;[https://www.raspberrypi.org/documentation/installation/installing-images/windows.md Windows]&lt;br /&gt;
# (Optional) Setup [https://www.raspberrypi.org/documentation/configuration/wireless/headless.md headless] network. SSH is already enabled per default in the provided images.&lt;br /&gt;
# Boot your RaspberryPi&lt;br /&gt;
# Open a login console&lt;br /&gt;
## Per SSH, or&lt;br /&gt;
## Open a terminal on the RaspberryPi&lt;br /&gt;
# Follow the Prompts in the terminal&lt;br /&gt;
# Update your system&lt;br /&gt;
    sudo apt update &amp;amp;&amp;amp; sudo apt upgrade&lt;br /&gt;
[[File:Screenshot 2021-07-29 22-32-37.png|frameless|center]]&lt;br /&gt;
&lt;br /&gt;
= Manual Setup =&lt;br /&gt;
=== Basic ===&lt;br /&gt;
# Create a fresh install of RaspberryPi OS according to the [https://www.raspberrypi.org/documentation/installation/installing-images/ tutorial]&lt;br /&gt;
# Update your system: &amp;lt;code&amp;gt;sudo apt update &amp;amp;&amp;amp; sudo apt upgrade&amp;lt;/code&amp;gt;&lt;br /&gt;
# Change the default password of the user &amp;lt;code&amp;gt;pi&amp;lt;/code&amp;gt;: &amp;lt;code&amp;gt;passwd&amp;lt;/code&amp;gt;&lt;br /&gt;
# (Optional) For an headless install (without monitor and mouse/keyboard), we recommend following this [https://www.raspberrypi.org/documentation/configuration/wireless/headless.md guide].&lt;br /&gt;
=== Interfaces ===&lt;br /&gt;
# '''Enable the serial interface''' (UART) and '''disable the login shell''' via the UART. In terminal: &amp;lt;code&amp;gt;sudo raspi-config&amp;lt;/code&amp;gt; &amp;lt;br&amp;gt; &amp;lt;code&amp;gt; 3 Interface Options -&amp;gt; P6 Serial Port -&amp;gt; No (login shell over serial) -&amp;gt; Yes (serial port)&amp;lt;/code&amp;gt;&lt;br /&gt;
# Enable I2C Interface: In terminal: &amp;lt;code&amp;gt;sudo raspi-config&amp;lt;/code&amp;gt; &amp;lt;br&amp;gt; &amp;lt;code&amp;gt; 3 Interface Options -&amp;gt; P5 I2C -&amp;gt; Yes (enable)&amp;lt;/code&amp;gt;&lt;br /&gt;
# (Optional) '''Enable SSH''': In a terminal: &amp;lt;code&amp;gt;sudo raspi-config&amp;lt;/code&amp;gt; &amp;lt;br&amp;gt; &amp;lt;code&amp;gt; 3 Interface Options -&amp;gt; P2 SSH -&amp;gt; Yes (enable) &amp;lt;/code&amp;gt;&lt;br /&gt;
=== Network ===&lt;br /&gt;
By default, the RPi is configured to automatically obtain an IP address when a connection is available and DHCP in your local network is active (this should be the case for most local/home networks).&lt;br /&gt;
If you prefer a fixed IP address in a local network: edit the file /etc/dhcpcd.conf. Use the template and uncomment the &amp;quot;Example Static IP Configuration&amp;quot; section with your desired IP address.&lt;br /&gt;
If network access should be established via WiFi, either configure it via the network configuration wizard in the graphical desktop environment (usually network icon in the system bar), or manually following these steps (either method is fine):&lt;br /&gt;
# Make sure that the wpa_supplicant package is installed:&amp;lt;code&amp;gt;sudo apt install wpasupplicant&amp;lt;/code&amp;gt;&lt;br /&gt;
# edit the file /etc/wpa_supplicant/wpa_supplicant.conf:&amp;lt;code&amp;gt;sudo nano /etc/wpa_supplicant/wpa_supplicant.conf&amp;lt;/code&amp;gt; &amp;lt;br&amp;gt; the configuration should look like this (non-relevant lines not shown):&lt;br /&gt;
 update_config=1&lt;br /&gt;
 country=DE&amp;lt;/br&amp;gt;&lt;br /&gt;
 network={&lt;br /&gt;
        ssid=&amp;quot;&amp;lt;your network ssid&amp;gt;&amp;quot;&lt;br /&gt;
        psk=&amp;quot;&amp;lt;your wifi password&amp;gt;&amp;quot;&lt;br /&gt;
        key_mgmt=WPA-PSK&lt;br /&gt;
 }&lt;br /&gt;
Enter your WiFi's SSID and password in the indicated fields.&lt;br /&gt;
Finally, restart the system that the changes take effect.&lt;br /&gt;
&lt;br /&gt;
=== MuonPi software installation ===&lt;br /&gt;
(Requirements: a MuonPi board plugged onto the GPIO connector of the RPi)&lt;br /&gt;
* First, add the MuonPi apt repository to your system:&lt;br /&gt;
 sudo sh -c &amp;quot;curl https://archive.muonpi.org/muondetector.public.key | gpg --dearmor &amp;gt; /etc/apt/trusted.gpg.d/muondetector.gpg&amp;quot;&lt;br /&gt;
&lt;br /&gt;
 sudo sh -c &amp;quot;echo deb &amp;lt;nowiki&amp;gt;https://archive.muonpi.org/raspbian buster main&amp;lt;/nowiki&amp;gt; &amp;gt; /etc/apt/sources.list.d/muondetector.list&amp;quot;&lt;br /&gt;
* Update the repositories:&lt;br /&gt;
 sudo apt update&lt;br /&gt;
* Install the muondetector-daemon package and it's dependencies:&lt;br /&gt;
 sudo apt install muondetector-daemon&lt;br /&gt;
* Optional: install the Graphical User Interface (GUI) program to monitor and control the MuonPi locally.&lt;br /&gt;
 sudo apt install muondetector-gui&lt;br /&gt;
{{Note|Note that if you want to use the gui on the raspberrypi, it is recommended to use the Raspberrypi OS with Desktop preinstalled.|reminder}}&lt;br /&gt;
&lt;br /&gt;
* The GUI can connect to the MuonPi over network as well, so it can be installed on other computers in the local network. Currently, binary packages for Raspbian, Ubuntu and Windows are available. The Linux-based versions can be installed from the package repositories (execute steps 1,2 and 4 from this list). The Windows program can be downloaded directly from https://archive.muonpi.org and installed by simply unpacking the zip-archive.&lt;br /&gt;
&lt;br /&gt;
=== Login with your user credentials (only once) ===&lt;br /&gt;
&lt;br /&gt;
Before taking the MuonPi detector into operation, you have to set your credentials for publishing data messages to the server via [http://mqtt.org/ MQTT] protocol on first start. This can be managed in two ways, one secure and one where your credentials appear as plain text in the config file:&lt;br /&gt;
==== The Recommended Method ====&lt;br /&gt;
In a bash shell on the MuonPi, run the command &amp;lt;code&amp;gt;muondetector-login&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
'''Note that for the software version 2.0.0 the command to run is &amp;lt;code&amp;gt;sudo runuser -u muonuser -- muondetector-login&amp;lt;/code&amp;gt; instead.'''&lt;br /&gt;
&lt;br /&gt;
When asked for sudo access, enter the password of your raspberry pi user.&lt;br /&gt;
When asked for your user name and password, enter the credentials supplied to you by a MounPi.org official. The credentials are stored (not in clear text) for all further telemetry connections.&lt;br /&gt;
&lt;br /&gt;
==== Alternative Method ====&lt;br /&gt;
Uncomment the &amp;lt;code&amp;gt;mqtt_user&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;mqtt_password&amp;lt;/code&amp;gt; options in &amp;lt;code&amp;gt;/etc/muondetector/muondetector.conf&amp;lt;/code&amp;gt; and type your personal username and password into these fields between the quotation marks. Be aware, that these credentials are written in plain text into this file and can be retrieved by malware attacks. However, if you operate a station inside a home network and set up a strong ssh authentication (see above), you should be relatively safe.&lt;br /&gt;
&lt;br /&gt;
=== Start the Daemon ===&lt;br /&gt;
The daemon should be enabled and started automatically after installation and on every reboot. However, when changing items in the config file, the changes have to be made effective by a daemon restart:&lt;br /&gt;
 sudo systemctl restart muondetector-daemon.service&lt;br /&gt;
&lt;br /&gt;
To see the current status of the daemon service use following command:&lt;br /&gt;
 systemctl status muondetector-daemon.service&lt;br /&gt;
&lt;br /&gt;
It can happen that the status shows 'failed' in red, usually a restart of the daemon service resolves this.&lt;br /&gt;
&lt;br /&gt;
If the service should not enable itself by default the status shows a grey 'not loaded'. To enable the service use:&lt;br /&gt;
 sudo systemctl enable muondetector-daemon.service&lt;br /&gt;
&lt;br /&gt;
= Configuration =&lt;br /&gt;
&lt;br /&gt;
Edit the configuration file /etc/muondetector/muondetector.conf: &amp;lt;code&amp;gt;nano /etc/muondetector/muondetector.conf&amp;lt;/code&amp;gt;.&lt;br /&gt;
Change the settings according to your needs or leave them untouched, if unsure. The comments in the config file should guide you through any required modifications. One option, however, describes the placement of your detector. If you like, choose a stationID descriptor, eg.:&amp;lt;/br&amp;gt;&lt;br /&gt;
(file: &amp;lt;code&amp;gt;/etc/muondetector/muondetector.conf&amp;lt;/code&amp;gt;)&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;#&amp;lt;/nowiki&amp;gt; A unique identifier of the user's station&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;#&amp;lt;/nowiki&amp;gt; leave on default when the user operates a single station&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;#&amp;lt;/nowiki&amp;gt; all detectors of the user are distinguishable on the basis of this id&lt;br /&gt;
 stationID = &amp;quot;HomeOffice&amp;quot;&lt;br /&gt;
&lt;br /&gt;
(anything which best describes the location of your detector like e.g. &amp;quot;GarageSW&amp;quot;, &amp;quot;Bldg16Lab105&amp;quot;, &amp;quot;AtticNE&amp;quot;). If you operate only one stationary detector, it may as well be left on the default ID which is &amp;quot;0&amp;quot; (zero).&lt;br /&gt;
&lt;br /&gt;
'''Important''': When operating multiple detectors (under the same user account, see below) the stationID descriptor '''must''' be unique for each detector.&lt;/div&gt;</summary>
		<author><name>Dtreffenstaedt</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.muonpi.org/index.php?title=Raspberry_Pi_Setup&amp;diff=732</id>
		<title>Raspberry Pi Setup</title>
		<link rel="alternate" type="text/html" href="https://wiki.muonpi.org/index.php?title=Raspberry_Pi_Setup&amp;diff=732"/>
		<updated>2021-07-29T20:59:00Z</updated>

		<summary type="html">&lt;p&gt;Dtreffenstaedt: /* Guided Setup */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;(Requirements: Raspberry Pi Versions 0, 2, 3, 4 (with 40-pin GPIO connector) )&lt;br /&gt;
&lt;br /&gt;
This article will introduce to you, how to set up a Raspberry Pi from scratch with all software needed to run the detector hardware.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
DISCLAIMER: If not stated otherwise, this tutorial is developed on Raspian 10 Buster.&lt;br /&gt;
&lt;br /&gt;
__TOC__&lt;br /&gt;
= Guided Setup =&lt;br /&gt;
This is the recommended way of setting up the muondetector software.&lt;br /&gt;
&lt;br /&gt;
# Download the latest muondetector [https://archive.muonpi.org/image/latest/ image]. &amp;lt;br&amp;gt; If you want to use the detector headless or without graphical user interface, select the -lite version, otherwise select the -gui version.&amp;lt;br&amp;gt; If you prefer to build your own version of the image, check out the [https://github.com/MuonPi/muondetector-image repository].&lt;br /&gt;
# Install the image onto an SD-Card: &amp;lt;br&amp;gt; [https://www.raspberrypi.org/documentation/installation/installing-images/linux.md Linux]&amp;lt;br&amp;gt;[https://www.raspberrypi.org/documentation/installation/installing-images/mac.md MacOS]&amp;lt;br&amp;gt;[https://www.raspberrypi.org/documentation/installation/installing-images/windows.md Windows]&lt;br /&gt;
# (Optional) Setup [https://www.raspberrypi.org/documentation/configuration/wireless/headless.md headless] network. SSH is already enabled per default in the provided images.&lt;br /&gt;
# Boot your RaspberryPi&lt;br /&gt;
# Open a login console&lt;br /&gt;
## Per SSH, or&lt;br /&gt;
## Open a terminal on the RaspberryPi&lt;br /&gt;
# Follow the Prompts in the terminal&lt;br /&gt;
[[File:Screenshot 2021-07-29 22-32-37.png|frameless|center]]&lt;br /&gt;
# Update your system&lt;br /&gt;
    sudo apt update &amp;amp;&amp;amp; sudo apt upgrade&lt;br /&gt;
&lt;br /&gt;
= Manual Setup =&lt;br /&gt;
=== Basic ===&lt;br /&gt;
# Create a fresh install of RaspberryPi OS according to the [https://www.raspberrypi.org/documentation/installation/installing-images/ tutorial]&lt;br /&gt;
# Update your system: &amp;lt;code&amp;gt;sudo apt update &amp;amp;&amp;amp; sudo apt upgrade&amp;lt;/code&amp;gt;&lt;br /&gt;
# Change the default password of the user &amp;lt;code&amp;gt;pi&amp;lt;/code&amp;gt;: &amp;lt;code&amp;gt;passwd&amp;lt;/code&amp;gt;&lt;br /&gt;
# (Optional) For an headless install (without monitor and mouse/keyboard), we recommend following this [https://www.raspberrypi.org/documentation/configuration/wireless/headless.md guide].&lt;br /&gt;
=== Interfaces ===&lt;br /&gt;
# '''Enable the serial interface''' (UART) and '''disable the login shell''' via the UART. In terminal: &amp;lt;code&amp;gt;sudo raspi-config&amp;lt;/code&amp;gt; &amp;lt;br&amp;gt; &amp;lt;code&amp;gt; 3 Interface Options -&amp;gt; P6 Serial Port -&amp;gt; No (login shell over serial) -&amp;gt; Yes (serial port)&amp;lt;/code&amp;gt;&lt;br /&gt;
# Enable I2C Interface: In terminal: &amp;lt;code&amp;gt;sudo raspi-config&amp;lt;/code&amp;gt; &amp;lt;br&amp;gt; &amp;lt;code&amp;gt; 3 Interface Options -&amp;gt; P5 I2C -&amp;gt; Yes (enable)&amp;lt;/code&amp;gt;&lt;br /&gt;
# (Optional) '''Enable SSH''': In a terminal: &amp;lt;code&amp;gt;sudo raspi-config&amp;lt;/code&amp;gt; &amp;lt;br&amp;gt; &amp;lt;code&amp;gt; 3 Interface Options -&amp;gt; P2 SSH -&amp;gt; Yes (enable) &amp;lt;/code&amp;gt;&lt;br /&gt;
=== Network ===&lt;br /&gt;
By default, the RPi is configured to automatically obtain an IP address when a connection is available and DHCP in your local network is active (this should be the case for most local/home networks).&lt;br /&gt;
If you prefer a fixed IP address in a local network: edit the file /etc/dhcpcd.conf. Use the template and uncomment the &amp;quot;Example Static IP Configuration&amp;quot; section with your desired IP address.&lt;br /&gt;
If network access should be established via WiFi, either configure it via the network configuration wizard in the graphical desktop environment (usually network icon in the system bar), or manually following these steps (either method is fine):&lt;br /&gt;
# Make sure that the wpa_supplicant package is installed:&amp;lt;code&amp;gt;sudo apt install wpasupplicant&amp;lt;/code&amp;gt;&lt;br /&gt;
# edit the file /etc/wpa_supplicant/wpa_supplicant.conf:&amp;lt;code&amp;gt;sudo nano /etc/wpa_supplicant/wpa_supplicant.conf&amp;lt;/code&amp;gt; &amp;lt;br&amp;gt; the configuration should look like this (non-relevant lines not shown):&lt;br /&gt;
 update_config=1&lt;br /&gt;
 country=DE&amp;lt;/br&amp;gt;&lt;br /&gt;
 network={&lt;br /&gt;
        ssid=&amp;quot;&amp;lt;your network ssid&amp;gt;&amp;quot;&lt;br /&gt;
        psk=&amp;quot;&amp;lt;your wifi password&amp;gt;&amp;quot;&lt;br /&gt;
        key_mgmt=WPA-PSK&lt;br /&gt;
 }&lt;br /&gt;
Enter your WiFi's SSID and password in the indicated fields.&lt;br /&gt;
Finally, restart the system that the changes take effect.&lt;br /&gt;
&lt;br /&gt;
=== MuonPi software installation ===&lt;br /&gt;
(Requirements: a MuonPi board plugged onto the GPIO connector of the RPi)&lt;br /&gt;
* First, add the MuonPi apt repository to your system:&lt;br /&gt;
 sudo sh -c &amp;quot;curl https://archive.muonpi.org/muondetector.public.key | gpg --dearmor &amp;gt; /etc/apt/trusted.gpg.d/muondetector.gpg&amp;quot;&lt;br /&gt;
&lt;br /&gt;
 sudo sh -c &amp;quot;echo deb &amp;lt;nowiki&amp;gt;https://archive.muonpi.org/raspbian buster main&amp;lt;/nowiki&amp;gt; &amp;gt; /etc/apt/sources.list.d/muondetector.list&amp;quot;&lt;br /&gt;
* Update the repositories:&lt;br /&gt;
 sudo apt update&lt;br /&gt;
* Install the muondetector-daemon package and it's dependencies:&lt;br /&gt;
 sudo apt install muondetector-daemon&lt;br /&gt;
* Optional: install the Graphical User Interface (GUI) program to monitor and control the MuonPi locally.&lt;br /&gt;
 sudo apt install muondetector-gui&lt;br /&gt;
{{Note|Note that if you want to use the gui on the raspberrypi, it is recommended to use the Raspberrypi OS with Desktop preinstalled.|reminder}}&lt;br /&gt;
&lt;br /&gt;
* The GUI can connect to the MuonPi over network as well, so it can be installed on other computers in the local network. Currently, binary packages for Raspbian, Ubuntu and Windows are available. The Linux-based versions can be installed from the package repositories (execute steps 1,2 and 4 from this list). The Windows program can be downloaded directly from https://archive.muonpi.org and installed by simply unpacking the zip-archive.&lt;br /&gt;
&lt;br /&gt;
=== Login with your user credentials (only once) ===&lt;br /&gt;
&lt;br /&gt;
Before taking the MuonPi detector into operation, you have to set your credentials for publishing data messages to the server via [http://mqtt.org/ MQTT] protocol on first start. This can be managed in two ways, one secure and one where your credentials appear as plain text in the config file:&lt;br /&gt;
==== The Recommended Method ====&lt;br /&gt;
In a bash shell on the MuonPi, run the command &amp;lt;code&amp;gt;muondetector-login&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
'''Note that for the software version 2.0.0 the command to run is &amp;lt;code&amp;gt;sudo runuser -u muonuser -- muondetector-login&amp;lt;/code&amp;gt; instead.'''&lt;br /&gt;
&lt;br /&gt;
When asked for sudo access, enter the password of your raspberry pi user.&lt;br /&gt;
When asked for your user name and password, enter the credentials supplied to you by a MounPi.org official. The credentials are stored (not in clear text) for all further telemetry connections.&lt;br /&gt;
&lt;br /&gt;
==== Alternative Method ====&lt;br /&gt;
Uncomment the &amp;lt;code&amp;gt;mqtt_user&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;mqtt_password&amp;lt;/code&amp;gt; options in &amp;lt;code&amp;gt;/etc/muondetector/muondetector.conf&amp;lt;/code&amp;gt; and type your personal username and password into these fields between the quotation marks. Be aware, that these credentials are written in plain text into this file and can be retrieved by malware attacks. However, if you operate a station inside a home network and set up a strong ssh authentication (see above), you should be relatively safe.&lt;br /&gt;
&lt;br /&gt;
=== Start the Daemon ===&lt;br /&gt;
The daemon should be enabled and started automatically after installation and on every reboot. However, when changing items in the config file, the changes have to be made effective by a daemon restart:&lt;br /&gt;
 sudo systemctl restart muondetector-daemon.service&lt;br /&gt;
&lt;br /&gt;
To see the current status of the daemon service use following command:&lt;br /&gt;
 systemctl status muondetector-daemon.service&lt;br /&gt;
&lt;br /&gt;
It can happen that the status shows 'failed' in red, usually a restart of the daemon service resolves this.&lt;br /&gt;
&lt;br /&gt;
If the service should not enable itself by default the status shows a grey 'not loaded'. To enable the service use:&lt;br /&gt;
 sudo systemctl enable muondetector-daemon.service&lt;br /&gt;
&lt;br /&gt;
= Configuration =&lt;br /&gt;
&lt;br /&gt;
Edit the configuration file /etc/muondetector/muondetector.conf: &amp;lt;code&amp;gt;nano /etc/muondetector/muondetector.conf&amp;lt;/code&amp;gt;.&lt;br /&gt;
Change the settings according to your needs or leave them untouched, if unsure. The comments in the config file should guide you through any required modifications. One option, however, describes the placement of your detector. If you like, choose a stationID descriptor, eg.:&amp;lt;/br&amp;gt;&lt;br /&gt;
(file: &amp;lt;code&amp;gt;/etc/muondetector/muondetector.conf&amp;lt;/code&amp;gt;)&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;#&amp;lt;/nowiki&amp;gt; A unique identifier of the user's station&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;#&amp;lt;/nowiki&amp;gt; leave on default when the user operates a single station&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;#&amp;lt;/nowiki&amp;gt; all detectors of the user are distinguishable on the basis of this id&lt;br /&gt;
 stationID = &amp;quot;HomeOffice&amp;quot;&lt;br /&gt;
&lt;br /&gt;
(anything which best describes the location of your detector like e.g. &amp;quot;GarageSW&amp;quot;, &amp;quot;Bldg16Lab105&amp;quot;, &amp;quot;AtticNE&amp;quot;). If you operate only one stationary detector, it may as well be left on the default ID which is &amp;quot;0&amp;quot; (zero).&lt;br /&gt;
&lt;br /&gt;
'''Important''': When operating multiple detectors (under the same user account, see below) the stationID descriptor '''must''' be unique for each detector.&lt;/div&gt;</summary>
		<author><name>Dtreffenstaedt</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.muonpi.org/index.php?title=Raspberry_Pi_Setup&amp;diff=731</id>
		<title>Raspberry Pi Setup</title>
		<link rel="alternate" type="text/html" href="https://wiki.muonpi.org/index.php?title=Raspberry_Pi_Setup&amp;diff=731"/>
		<updated>2021-07-29T20:52:04Z</updated>

		<summary type="html">&lt;p&gt;Dtreffenstaedt: /* Configuration and Start */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;(Requirements: Raspberry Pi Versions 0, 2, 3, 4 (with 40-pin GPIO connector) )&lt;br /&gt;
&lt;br /&gt;
This article will introduce to you, how to set up a Raspberry Pi from scratch with all software needed to run the detector hardware.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
DISCLAIMER: If not stated otherwise, this tutorial is developed on Raspian 10 Buster.&lt;br /&gt;
&lt;br /&gt;
__TOC__&lt;br /&gt;
= Guided Setup =&lt;br /&gt;
This is the recommended way of setting up the muondetector software.&lt;br /&gt;
&lt;br /&gt;
# Download the latest muondetector [https://archive.muonpi.org/image/latest/ image]. &amp;lt;br&amp;gt; If you want to use the detector headless or without graphical user interface, select the -lite version, otherwise select the -gui version.&amp;lt;br&amp;gt; If you prefer to build your own version of the image, check out the [https://github.com/MuonPi/muondetector-image repository].&lt;br /&gt;
# Install the image onto an SD-Card: &amp;lt;br&amp;gt; [https://www.raspberrypi.org/documentation/installation/installing-images/linux.md Linux]&amp;lt;br&amp;gt;[https://www.raspberrypi.org/documentation/installation/installing-images/mac.md MacOS]&amp;lt;br&amp;gt;[https://www.raspberrypi.org/documentation/installation/installing-images/windows.md Windows]&lt;br /&gt;
# (Optional) Setup [https://www.raspberrypi.org/documentation/configuration/wireless/headless.md headless] network. SSH is already enabled per default in the provided images.&lt;br /&gt;
# Boot your RaspberryPi&lt;br /&gt;
# Open a login console&lt;br /&gt;
## Per SSH, or&lt;br /&gt;
## Open a terminal on the RaspberryPi&lt;br /&gt;
# Follow the Prompts in the terminal&lt;br /&gt;
[[File:Screenshot 2021-07-29 22-32-37.png|frameless|center]]&lt;br /&gt;
&lt;br /&gt;
= Manual Setup =&lt;br /&gt;
=== Basic ===&lt;br /&gt;
# Create a fresh install of RaspberryPi OS according to the [https://www.raspberrypi.org/documentation/installation/installing-images/ tutorial]&lt;br /&gt;
# Update your system: &amp;lt;code&amp;gt;sudo apt update &amp;amp;&amp;amp; sudo apt upgrade&amp;lt;/code&amp;gt;&lt;br /&gt;
# Change the default password of the user &amp;lt;code&amp;gt;pi&amp;lt;/code&amp;gt;: &amp;lt;code&amp;gt;passwd&amp;lt;/code&amp;gt;&lt;br /&gt;
# (Optional) For an headless install (without monitor and mouse/keyboard), we recommend following this [https://www.raspberrypi.org/documentation/configuration/wireless/headless.md guide].&lt;br /&gt;
=== Interfaces ===&lt;br /&gt;
# '''Enable the serial interface''' (UART) and '''disable the login shell''' via the UART. In terminal: &amp;lt;code&amp;gt;sudo raspi-config&amp;lt;/code&amp;gt; &amp;lt;br&amp;gt; &amp;lt;code&amp;gt; 3 Interface Options -&amp;gt; P6 Serial Port -&amp;gt; No (login shell over serial) -&amp;gt; Yes (serial port)&amp;lt;/code&amp;gt;&lt;br /&gt;
# Enable I2C Interface: In terminal: &amp;lt;code&amp;gt;sudo raspi-config&amp;lt;/code&amp;gt; &amp;lt;br&amp;gt; &amp;lt;code&amp;gt; 3 Interface Options -&amp;gt; P5 I2C -&amp;gt; Yes (enable)&amp;lt;/code&amp;gt;&lt;br /&gt;
# (Optional) '''Enable SSH''': In a terminal: &amp;lt;code&amp;gt;sudo raspi-config&amp;lt;/code&amp;gt; &amp;lt;br&amp;gt; &amp;lt;code&amp;gt; 3 Interface Options -&amp;gt; P2 SSH -&amp;gt; Yes (enable) &amp;lt;/code&amp;gt;&lt;br /&gt;
=== Network ===&lt;br /&gt;
By default, the RPi is configured to automatically obtain an IP address when a connection is available and DHCP in your local network is active (this should be the case for most local/home networks).&lt;br /&gt;
If you prefer a fixed IP address in a local network: edit the file /etc/dhcpcd.conf. Use the template and uncomment the &amp;quot;Example Static IP Configuration&amp;quot; section with your desired IP address.&lt;br /&gt;
If network access should be established via WiFi, either configure it via the network configuration wizard in the graphical desktop environment (usually network icon in the system bar), or manually following these steps (either method is fine):&lt;br /&gt;
# Make sure that the wpa_supplicant package is installed:&amp;lt;code&amp;gt;sudo apt install wpasupplicant&amp;lt;/code&amp;gt;&lt;br /&gt;
# edit the file /etc/wpa_supplicant/wpa_supplicant.conf:&amp;lt;code&amp;gt;sudo nano /etc/wpa_supplicant/wpa_supplicant.conf&amp;lt;/code&amp;gt; &amp;lt;br&amp;gt; the configuration should look like this (non-relevant lines not shown):&lt;br /&gt;
 update_config=1&lt;br /&gt;
 country=DE&amp;lt;/br&amp;gt;&lt;br /&gt;
 network={&lt;br /&gt;
        ssid=&amp;quot;&amp;lt;your network ssid&amp;gt;&amp;quot;&lt;br /&gt;
        psk=&amp;quot;&amp;lt;your wifi password&amp;gt;&amp;quot;&lt;br /&gt;
        key_mgmt=WPA-PSK&lt;br /&gt;
 }&lt;br /&gt;
Enter your WiFi's SSID and password in the indicated fields.&lt;br /&gt;
Finally, restart the system that the changes take effect.&lt;br /&gt;
&lt;br /&gt;
=== MuonPi software installation ===&lt;br /&gt;
(Requirements: a MuonPi board plugged onto the GPIO connector of the RPi)&lt;br /&gt;
* First, add the MuonPi apt repository to your system:&lt;br /&gt;
 sudo sh -c &amp;quot;curl https://archive.muonpi.org/muondetector.public.key | gpg --dearmor &amp;gt; /etc/apt/trusted.gpg.d/muondetector.gpg&amp;quot;&lt;br /&gt;
&lt;br /&gt;
 sudo sh -c &amp;quot;echo deb &amp;lt;nowiki&amp;gt;https://archive.muonpi.org/raspbian buster main&amp;lt;/nowiki&amp;gt; &amp;gt; /etc/apt/sources.list.d/muondetector.list&amp;quot;&lt;br /&gt;
* Update the repositories:&lt;br /&gt;
 sudo apt update&lt;br /&gt;
* Install the muondetector-daemon package and it's dependencies:&lt;br /&gt;
 sudo apt install muondetector-daemon&lt;br /&gt;
* Optional: install the Graphical User Interface (GUI) program to monitor and control the MuonPi locally.&lt;br /&gt;
 sudo apt install muondetector-gui&lt;br /&gt;
{{Note|Note that if you want to use the gui on the raspberrypi, it is recommended to use the Raspberrypi OS with Desktop preinstalled.|reminder}}&lt;br /&gt;
&lt;br /&gt;
* The GUI can connect to the MuonPi over network as well, so it can be installed on other computers in the local network. Currently, binary packages for Raspbian, Ubuntu and Windows are available. The Linux-based versions can be installed from the package repositories (execute steps 1,2 and 4 from this list). The Windows program can be downloaded directly from https://archive.muonpi.org and installed by simply unpacking the zip-archive.&lt;br /&gt;
&lt;br /&gt;
=== Login with your user credentials (only once) ===&lt;br /&gt;
&lt;br /&gt;
Before taking the MuonPi detector into operation, you have to set your credentials for publishing data messages to the server via [http://mqtt.org/ MQTT] protocol on first start. This can be managed in two ways, one secure and one where your credentials appear as plain text in the config file:&lt;br /&gt;
==== The Recommended Method ====&lt;br /&gt;
In a bash shell on the MuonPi, run the command &amp;lt;code&amp;gt;muondetector-login&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
'''Note that for the software version 2.0.0 the command to run is &amp;lt;code&amp;gt;sudo runuser -u muonuser -- muondetector-login&amp;lt;/code&amp;gt; instead.'''&lt;br /&gt;
&lt;br /&gt;
When asked for sudo access, enter the password of your raspberry pi user.&lt;br /&gt;
When asked for your user name and password, enter the credentials supplied to you by a MounPi.org official. The credentials are stored (not in clear text) for all further telemetry connections.&lt;br /&gt;
&lt;br /&gt;
==== Alternative Method ====&lt;br /&gt;
Uncomment the &amp;lt;code&amp;gt;mqtt_user&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;mqtt_password&amp;lt;/code&amp;gt; options in &amp;lt;code&amp;gt;/etc/muondetector/muondetector.conf&amp;lt;/code&amp;gt; and type your personal username and password into these fields between the quotation marks. Be aware, that these credentials are written in plain text into this file and can be retrieved by malware attacks. However, if you operate a station inside a home network and set up a strong ssh authentication (see above), you should be relatively safe.&lt;br /&gt;
&lt;br /&gt;
=== Start the Daemon ===&lt;br /&gt;
The daemon should be enabled and started automatically after installation and on every reboot. However, when changing items in the config file, the changes have to be made effective by a daemon restart:&lt;br /&gt;
 sudo systemctl restart muondetector-daemon.service&lt;br /&gt;
&lt;br /&gt;
To see the current status of the daemon service use following command:&lt;br /&gt;
 systemctl status muondetector-daemon.service&lt;br /&gt;
&lt;br /&gt;
It can happen that the status shows 'failed' in red, usually a restart of the daemon service resolves this.&lt;br /&gt;
&lt;br /&gt;
If the service should not enable itself by default the status shows a grey 'not loaded'. To enable the service use:&lt;br /&gt;
 sudo systemctl enable muondetector-daemon.service&lt;br /&gt;
&lt;br /&gt;
= Configuration =&lt;br /&gt;
&lt;br /&gt;
Edit the configuration file /etc/muondetector/muondetector.conf: &amp;lt;code&amp;gt;nano /etc/muondetector/muondetector.conf&amp;lt;/code&amp;gt;.&lt;br /&gt;
Change the settings according to your needs or leave them untouched, if unsure. The comments in the config file should guide you through any required modifications. One option, however, describes the placement of your detector. If you like, choose a stationID descriptor, eg.:&amp;lt;/br&amp;gt;&lt;br /&gt;
(file: &amp;lt;code&amp;gt;/etc/muondetector/muondetector.conf&amp;lt;/code&amp;gt;)&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;#&amp;lt;/nowiki&amp;gt; A unique identifier of the user's station&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;#&amp;lt;/nowiki&amp;gt; leave on default when the user operates a single station&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;#&amp;lt;/nowiki&amp;gt; all detectors of the user are distinguishable on the basis of this id&lt;br /&gt;
 stationID = &amp;quot;HomeOffice&amp;quot;&lt;br /&gt;
&lt;br /&gt;
(anything which best describes the location of your detector like e.g. &amp;quot;GarageSW&amp;quot;, &amp;quot;Bldg16Lab105&amp;quot;, &amp;quot;AtticNE&amp;quot;). If you operate only one stationary detector, it may as well be left on the default ID which is &amp;quot;0&amp;quot; (zero).&lt;br /&gt;
&lt;br /&gt;
'''Important''': When operating multiple detectors (under the same user account, see below) the stationID descriptor '''must''' be unique for each detector.&lt;/div&gt;</summary>
		<author><name>Dtreffenstaedt</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.muonpi.org/index.php?title=Raspberry_Pi_Setup&amp;diff=730</id>
		<title>Raspberry Pi Setup</title>
		<link rel="alternate" type="text/html" href="https://wiki.muonpi.org/index.php?title=Raspberry_Pi_Setup&amp;diff=730"/>
		<updated>2021-07-29T20:46:38Z</updated>

		<summary type="html">&lt;p&gt;Dtreffenstaedt: /* Guided Setup */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;(Requirements: Raspberry Pi Versions 0, 2, 3, 4 (with 40-pin GPIO connector) )&lt;br /&gt;
&lt;br /&gt;
This article will introduce to you, how to set up a Raspberry Pi from scratch with all software needed to run the detector hardware.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
DISCLAIMER: If not stated otherwise, this tutorial is developed on Raspian 10 Buster.&lt;br /&gt;
&lt;br /&gt;
__TOC__&lt;br /&gt;
= Guided Setup =&lt;br /&gt;
This is the recommended way of setting up the muondetector software.&lt;br /&gt;
&lt;br /&gt;
# Download the latest muondetector [https://archive.muonpi.org/image/latest/ image]. &amp;lt;br&amp;gt; If you want to use the detector headless or without graphical user interface, select the -lite version, otherwise select the -gui version.&amp;lt;br&amp;gt; If you prefer to build your own version of the image, check out the [https://github.com/MuonPi/muondetector-image repository].&lt;br /&gt;
# Install the image onto an SD-Card: &amp;lt;br&amp;gt; [https://www.raspberrypi.org/documentation/installation/installing-images/linux.md Linux]&amp;lt;br&amp;gt;[https://www.raspberrypi.org/documentation/installation/installing-images/mac.md MacOS]&amp;lt;br&amp;gt;[https://www.raspberrypi.org/documentation/installation/installing-images/windows.md Windows]&lt;br /&gt;
# (Optional) Setup [https://www.raspberrypi.org/documentation/configuration/wireless/headless.md headless] network. SSH is already enabled per default in the provided images.&lt;br /&gt;
# Boot your RaspberryPi&lt;br /&gt;
# Open a login console&lt;br /&gt;
## Per SSH, or&lt;br /&gt;
## Open a terminal on the RaspberryPi&lt;br /&gt;
# Follow the Prompts in the terminal&lt;br /&gt;
[[File:Screenshot 2021-07-29 22-32-37.png|frameless|center]]&lt;br /&gt;
&lt;br /&gt;
= Manual Setup =&lt;br /&gt;
=== Basic ===&lt;br /&gt;
# Create a fresh install of RaspberryPi OS according to the [https://www.raspberrypi.org/documentation/installation/installing-images/ tutorial]&lt;br /&gt;
# Update your system: &amp;lt;code&amp;gt;sudo apt update &amp;amp;&amp;amp; sudo apt upgrade&amp;lt;/code&amp;gt;&lt;br /&gt;
# Change the default password of the user &amp;lt;code&amp;gt;pi&amp;lt;/code&amp;gt;: &amp;lt;code&amp;gt;passwd&amp;lt;/code&amp;gt;&lt;br /&gt;
# (Optional) For an headless install (without monitor and mouse/keyboard), we recommend following this [https://www.raspberrypi.org/documentation/configuration/wireless/headless.md guide].&lt;br /&gt;
=== Interfaces ===&lt;br /&gt;
# '''Enable the serial interface''' (UART) and '''disable the login shell''' via the UART. In terminal: &amp;lt;code&amp;gt;sudo raspi-config&amp;lt;/code&amp;gt; &amp;lt;br&amp;gt; &amp;lt;code&amp;gt; 3 Interface Options -&amp;gt; P6 Serial Port -&amp;gt; No (login shell over serial) -&amp;gt; Yes (serial port)&amp;lt;/code&amp;gt;&lt;br /&gt;
# Enable I2C Interface: In terminal: &amp;lt;code&amp;gt;sudo raspi-config&amp;lt;/code&amp;gt; &amp;lt;br&amp;gt; &amp;lt;code&amp;gt; 3 Interface Options -&amp;gt; P5 I2C -&amp;gt; Yes (enable)&amp;lt;/code&amp;gt;&lt;br /&gt;
# (Optional) '''Enable SSH''': In a terminal: &amp;lt;code&amp;gt;sudo raspi-config&amp;lt;/code&amp;gt; &amp;lt;br&amp;gt; &amp;lt;code&amp;gt; 3 Interface Options -&amp;gt; P2 SSH -&amp;gt; Yes (enable) &amp;lt;/code&amp;gt;&lt;br /&gt;
=== Network ===&lt;br /&gt;
By default, the RPi is configured to automatically obtain an IP address when a connection is available and DHCP in your local network is active (this should be the case for most local/home networks).&lt;br /&gt;
If you prefer a fixed IP address in a local network: edit the file /etc/dhcpcd.conf. Use the template and uncomment the &amp;quot;Example Static IP Configuration&amp;quot; section with your desired IP address.&lt;br /&gt;
If network access should be established via WiFi, either configure it via the network configuration wizard in the graphical desktop environment (usually network icon in the system bar), or manually following these steps (either method is fine):&lt;br /&gt;
# Make sure that the wpa_supplicant package is installed:&amp;lt;code&amp;gt;sudo apt install wpasupplicant&amp;lt;/code&amp;gt;&lt;br /&gt;
# edit the file /etc/wpa_supplicant/wpa_supplicant.conf:&amp;lt;code&amp;gt;sudo nano /etc/wpa_supplicant/wpa_supplicant.conf&amp;lt;/code&amp;gt; &amp;lt;br&amp;gt; the configuration should look like this (non-relevant lines not shown):&lt;br /&gt;
 update_config=1&lt;br /&gt;
 country=DE&amp;lt;/br&amp;gt;&lt;br /&gt;
 network={&lt;br /&gt;
        ssid=&amp;quot;&amp;lt;your network ssid&amp;gt;&amp;quot;&lt;br /&gt;
        psk=&amp;quot;&amp;lt;your wifi password&amp;gt;&amp;quot;&lt;br /&gt;
        key_mgmt=WPA-PSK&lt;br /&gt;
 }&lt;br /&gt;
Enter your WiFi's SSID and password in the indicated fields.&lt;br /&gt;
Finally, restart the system that the changes take effect.&lt;br /&gt;
&lt;br /&gt;
=== MuonPi software installation ===&lt;br /&gt;
(Requirements: a MuonPi board plugged onto the GPIO connector of the RPi)&lt;br /&gt;
* First, add the MuonPi apt repository to your system:&lt;br /&gt;
 sudo sh -c &amp;quot;curl https://archive.muonpi.org/muondetector.public.key | gpg --dearmor &amp;gt; /etc/apt/trusted.gpg.d/muondetector.gpg&amp;quot;&lt;br /&gt;
&lt;br /&gt;
 sudo sh -c &amp;quot;echo deb &amp;lt;nowiki&amp;gt;https://archive.muonpi.org/raspbian buster main&amp;lt;/nowiki&amp;gt; &amp;gt; /etc/apt/sources.list.d/muondetector.list&amp;quot;&lt;br /&gt;
* Update the repositories:&lt;br /&gt;
 sudo apt update&lt;br /&gt;
* Install the muondetector-daemon package and it's dependencies:&lt;br /&gt;
 sudo apt install muondetector-daemon&lt;br /&gt;
* Optional: install the Graphical User Interface (GUI) program to monitor and control the MuonPi locally.&lt;br /&gt;
 sudo apt install muondetector-gui&lt;br /&gt;
{{Note|Note that if you want to use the gui on the raspberrypi, it is recommended to use the Raspberrypi OS with Desktop preinstalled.|reminder}}&lt;br /&gt;
&lt;br /&gt;
* The GUI can connect to the MuonPi over network as well, so it can be installed on other computers in the local network. Currently, binary packages for Raspbian, Ubuntu and Windows are available. The Linux-based versions can be installed from the package repositories (execute steps 1,2 and 4 from this list). The Windows program can be downloaded directly from https://archive.muonpi.org and installed by simply unpacking the zip-archive.&lt;br /&gt;
&lt;br /&gt;
=== Login with your user credentials (only once) ===&lt;br /&gt;
&lt;br /&gt;
Before taking the MuonPi detector into operation, you have to set your credentials for publishing data messages to the server via [http://mqtt.org/ MQTT] protocol on first start. This can be managed in two ways, one secure and one where your credentials appear as plain text in the config file:&lt;br /&gt;
==== The Recommended Method ====&lt;br /&gt;
In a bash shell on the MuonPi, run the command &amp;lt;code&amp;gt;muondetector-login&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
'''Note that for the software version 2.0.0 the command to run is &amp;lt;code&amp;gt;sudo runuser -u muonuser -- muondetector-login&amp;lt;/code&amp;gt; instead.'''&lt;br /&gt;
&lt;br /&gt;
When asked for sudo access, enter the password of your raspberry pi user.&lt;br /&gt;
When asked for your user name and password, enter the credentials supplied to you by a MounPi.org official. The credentials are stored (not in clear text) for all further telemetry connections.&lt;br /&gt;
&lt;br /&gt;
==== Alternative Method ====&lt;br /&gt;
Uncomment the &amp;lt;code&amp;gt;mqtt_user&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;mqtt_password&amp;lt;/code&amp;gt; options in &amp;lt;code&amp;gt;/etc/muondetector/muondetector.conf&amp;lt;/code&amp;gt; and type your personal username and password into these fields between the quotation marks. Be aware, that these credentials are written in plain text into this file and can be retrieved by malware attacks. However, if you operate a station inside a home network and set up a strong ssh authentication (see above), you should be relatively safe.&lt;br /&gt;
&lt;br /&gt;
=== Start the Daemon ===&lt;br /&gt;
The daemon should be enabled and started automatically after installation and on every reboot. However, when changing items in the config file, the changes have to be made effective by a daemon restart:&lt;br /&gt;
 sudo systemctl restart muondetector-daemon.service&lt;br /&gt;
&lt;br /&gt;
To see the current status of the daemon service use following command:&lt;br /&gt;
 systemctl status muondetector-daemon.service&lt;br /&gt;
&lt;br /&gt;
It can happen that the status shows 'failed' in red, usually a restart of the daemon service resolves this.&lt;br /&gt;
&lt;br /&gt;
If the service should not enable itself by default the status shows a grey 'not loaded'. To enable the service use:&lt;br /&gt;
 sudo systemctl enable muondetector-daemon.service&lt;br /&gt;
&lt;br /&gt;
= Configuration and Start =&lt;br /&gt;
&lt;br /&gt;
Now the installation of the muondetector-daemon should be adapted to your setup:&lt;br /&gt;
&lt;br /&gt;
== Configuration ==&lt;br /&gt;
Edit the configuration file /etc/muondetector/muondetector.conf: &amp;lt;code&amp;gt;nano /etc/muondetector/muondetector.conf&amp;lt;/code&amp;gt;.&lt;br /&gt;
Change the settings according to your needs or leave them untouched, if unsure. The comments in the config file should guide you through any required modifications. One option, however, describes the placement of your detector. If you like, choose a stationID descriptor, eg.:&amp;lt;/br&amp;gt;&lt;br /&gt;
(file: &amp;lt;code&amp;gt;/etc/muondetector/muondetector.conf&amp;lt;/code&amp;gt;)&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;#&amp;lt;/nowiki&amp;gt; A unique identifier of the user's station&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;#&amp;lt;/nowiki&amp;gt; leave on default when the user operates a single station&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;#&amp;lt;/nowiki&amp;gt; all detectors of the user are distinguishable on the basis of this id&lt;br /&gt;
 stationID = &amp;quot;HomeOffice&amp;quot;&lt;br /&gt;
&lt;br /&gt;
(anything which best describes the location of your detector like e.g. &amp;quot;GarageSW&amp;quot;, &amp;quot;Bldg16Lab105&amp;quot;, &amp;quot;AtticNE&amp;quot;). If you operate only one stationary detector, it may as well be left on the default ID which is &amp;quot;0&amp;quot; (zero).&lt;br /&gt;
&lt;br /&gt;
'''Important''': When operating multiple detectors (under the same user account, see below) the stationID descriptor '''must''' be unique for each detector.&lt;/div&gt;</summary>
		<author><name>Dtreffenstaedt</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.muonpi.org/index.php?title=Raspberry_Pi_Setup&amp;diff=729</id>
		<title>Raspberry Pi Setup</title>
		<link rel="alternate" type="text/html" href="https://wiki.muonpi.org/index.php?title=Raspberry_Pi_Setup&amp;diff=729"/>
		<updated>2021-07-29T20:45:37Z</updated>

		<summary type="html">&lt;p&gt;Dtreffenstaedt: /* Guided Setup */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;(Requirements: Raspberry Pi Versions 0, 2, 3, 4 (with 40-pin GPIO connector) )&lt;br /&gt;
&lt;br /&gt;
This article will introduce to you, how to set up a Raspberry Pi from scratch with all software needed to run the detector hardware.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
DISCLAIMER: If not stated otherwise, this tutorial is developed on Raspian 10 Buster.&lt;br /&gt;
&lt;br /&gt;
__TOC__&lt;br /&gt;
= Guided Setup =&lt;br /&gt;
This is the recommended way of setting up the muondetector software.&lt;br /&gt;
&lt;br /&gt;
# Download the latest muondetector [https://archive.muonpi.org/image/latest/ image]. &amp;lt;br&amp;gt; If you want to use the detector headless or without graphical user interface, select the -lite version, otherwise select the -gui version.&amp;lt;br&amp;gt; If you prefer to build your own version of the image, check out the [https://github.com/MuonPi/muondetector-image repository].&lt;br /&gt;
# Install the image onto an SD-Card: &amp;lt;br&amp;gt; [https://www.raspberrypi.org/documentation/installation/installing-images/linux.md Linux]&amp;lt;br&amp;gt;[https://www.raspberrypi.org/documentation/installation/installing-images/mac.md MacOS]&amp;lt;br&amp;gt;[https://www.raspberrypi.org/documentation/installation/installing-images/windows.md Windows]&lt;br /&gt;
# (Optional) Setup [https://www.raspberrypi.org/documentation/configuration/wireless/headless.md headless] network. SSH is already enabled per default in the provided images.&lt;br /&gt;
# Boot your RaspberryPi&lt;br /&gt;
# Open a login console&lt;br /&gt;
## Per SSH, or&lt;br /&gt;
## Open a terminal on the RaspberryPi&lt;br /&gt;
# Follow the Prompts in the terminal&lt;br /&gt;
[[File:Screenshot 2021-07-29 22-32-37.png|frameless|center]]&lt;br /&gt;
# Enjoy your detector&lt;br /&gt;
&lt;br /&gt;
= Manual Setup =&lt;br /&gt;
=== Basic ===&lt;br /&gt;
# Create a fresh install of RaspberryPi OS according to the [https://www.raspberrypi.org/documentation/installation/installing-images/ tutorial]&lt;br /&gt;
# Update your system: &amp;lt;code&amp;gt;sudo apt update &amp;amp;&amp;amp; sudo apt upgrade&amp;lt;/code&amp;gt;&lt;br /&gt;
# Change the default password of the user &amp;lt;code&amp;gt;pi&amp;lt;/code&amp;gt;: &amp;lt;code&amp;gt;passwd&amp;lt;/code&amp;gt;&lt;br /&gt;
# (Optional) For an headless install (without monitor and mouse/keyboard), we recommend following this [https://www.raspberrypi.org/documentation/configuration/wireless/headless.md guide].&lt;br /&gt;
=== Interfaces ===&lt;br /&gt;
# '''Enable the serial interface''' (UART) and '''disable the login shell''' via the UART. In terminal: &amp;lt;code&amp;gt;sudo raspi-config&amp;lt;/code&amp;gt; &amp;lt;br&amp;gt; &amp;lt;code&amp;gt; 3 Interface Options -&amp;gt; P6 Serial Port -&amp;gt; No (login shell over serial) -&amp;gt; Yes (serial port)&amp;lt;/code&amp;gt;&lt;br /&gt;
# Enable I2C Interface: In terminal: &amp;lt;code&amp;gt;sudo raspi-config&amp;lt;/code&amp;gt; &amp;lt;br&amp;gt; &amp;lt;code&amp;gt; 3 Interface Options -&amp;gt; P5 I2C -&amp;gt; Yes (enable)&amp;lt;/code&amp;gt;&lt;br /&gt;
# (Optional) '''Enable SSH''': In a terminal: &amp;lt;code&amp;gt;sudo raspi-config&amp;lt;/code&amp;gt; &amp;lt;br&amp;gt; &amp;lt;code&amp;gt; 3 Interface Options -&amp;gt; P2 SSH -&amp;gt; Yes (enable) &amp;lt;/code&amp;gt;&lt;br /&gt;
=== Network ===&lt;br /&gt;
By default, the RPi is configured to automatically obtain an IP address when a connection is available and DHCP in your local network is active (this should be the case for most local/home networks).&lt;br /&gt;
If you prefer a fixed IP address in a local network: edit the file /etc/dhcpcd.conf. Use the template and uncomment the &amp;quot;Example Static IP Configuration&amp;quot; section with your desired IP address.&lt;br /&gt;
If network access should be established via WiFi, either configure it via the network configuration wizard in the graphical desktop environment (usually network icon in the system bar), or manually following these steps (either method is fine):&lt;br /&gt;
# Make sure that the wpa_supplicant package is installed:&amp;lt;code&amp;gt;sudo apt install wpasupplicant&amp;lt;/code&amp;gt;&lt;br /&gt;
# edit the file /etc/wpa_supplicant/wpa_supplicant.conf:&amp;lt;code&amp;gt;sudo nano /etc/wpa_supplicant/wpa_supplicant.conf&amp;lt;/code&amp;gt; &amp;lt;br&amp;gt; the configuration should look like this (non-relevant lines not shown):&lt;br /&gt;
 update_config=1&lt;br /&gt;
 country=DE&amp;lt;/br&amp;gt;&lt;br /&gt;
 network={&lt;br /&gt;
        ssid=&amp;quot;&amp;lt;your network ssid&amp;gt;&amp;quot;&lt;br /&gt;
        psk=&amp;quot;&amp;lt;your wifi password&amp;gt;&amp;quot;&lt;br /&gt;
        key_mgmt=WPA-PSK&lt;br /&gt;
 }&lt;br /&gt;
Enter your WiFi's SSID and password in the indicated fields.&lt;br /&gt;
Finally, restart the system that the changes take effect.&lt;br /&gt;
&lt;br /&gt;
=== MuonPi software installation ===&lt;br /&gt;
(Requirements: a MuonPi board plugged onto the GPIO connector of the RPi)&lt;br /&gt;
* First, add the MuonPi apt repository to your system:&lt;br /&gt;
 sudo sh -c &amp;quot;curl https://archive.muonpi.org/muondetector.public.key | gpg --dearmor &amp;gt; /etc/apt/trusted.gpg.d/muondetector.gpg&amp;quot;&lt;br /&gt;
&lt;br /&gt;
 sudo sh -c &amp;quot;echo deb &amp;lt;nowiki&amp;gt;https://archive.muonpi.org/raspbian buster main&amp;lt;/nowiki&amp;gt; &amp;gt; /etc/apt/sources.list.d/muondetector.list&amp;quot;&lt;br /&gt;
* Update the repositories:&lt;br /&gt;
 sudo apt update&lt;br /&gt;
* Install the muondetector-daemon package and it's dependencies:&lt;br /&gt;
 sudo apt install muondetector-daemon&lt;br /&gt;
* Optional: install the Graphical User Interface (GUI) program to monitor and control the MuonPi locally.&lt;br /&gt;
 sudo apt install muondetector-gui&lt;br /&gt;
{{Note|Note that if you want to use the gui on the raspberrypi, it is recommended to use the Raspberrypi OS with Desktop preinstalled.|reminder}}&lt;br /&gt;
&lt;br /&gt;
* The GUI can connect to the MuonPi over network as well, so it can be installed on other computers in the local network. Currently, binary packages for Raspbian, Ubuntu and Windows are available. The Linux-based versions can be installed from the package repositories (execute steps 1,2 and 4 from this list). The Windows program can be downloaded directly from https://archive.muonpi.org and installed by simply unpacking the zip-archive.&lt;br /&gt;
&lt;br /&gt;
=== Login with your user credentials (only once) ===&lt;br /&gt;
&lt;br /&gt;
Before taking the MuonPi detector into operation, you have to set your credentials for publishing data messages to the server via [http://mqtt.org/ MQTT] protocol on first start. This can be managed in two ways, one secure and one where your credentials appear as plain text in the config file:&lt;br /&gt;
==== The Recommended Method ====&lt;br /&gt;
In a bash shell on the MuonPi, run the command &amp;lt;code&amp;gt;muondetector-login&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
'''Note that for the software version 2.0.0 the command to run is &amp;lt;code&amp;gt;sudo runuser -u muonuser -- muondetector-login&amp;lt;/code&amp;gt; instead.'''&lt;br /&gt;
&lt;br /&gt;
When asked for sudo access, enter the password of your raspberry pi user.&lt;br /&gt;
When asked for your user name and password, enter the credentials supplied to you by a MounPi.org official. The credentials are stored (not in clear text) for all further telemetry connections.&lt;br /&gt;
&lt;br /&gt;
==== Alternative Method ====&lt;br /&gt;
Uncomment the &amp;lt;code&amp;gt;mqtt_user&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;mqtt_password&amp;lt;/code&amp;gt; options in &amp;lt;code&amp;gt;/etc/muondetector/muondetector.conf&amp;lt;/code&amp;gt; and type your personal username and password into these fields between the quotation marks. Be aware, that these credentials are written in plain text into this file and can be retrieved by malware attacks. However, if you operate a station inside a home network and set up a strong ssh authentication (see above), you should be relatively safe.&lt;br /&gt;
&lt;br /&gt;
=== Start the Daemon ===&lt;br /&gt;
The daemon should be enabled and started automatically after installation and on every reboot. However, when changing items in the config file, the changes have to be made effective by a daemon restart:&lt;br /&gt;
 sudo systemctl restart muondetector-daemon.service&lt;br /&gt;
&lt;br /&gt;
To see the current status of the daemon service use following command:&lt;br /&gt;
 systemctl status muondetector-daemon.service&lt;br /&gt;
&lt;br /&gt;
It can happen that the status shows 'failed' in red, usually a restart of the daemon service resolves this.&lt;br /&gt;
&lt;br /&gt;
If the service should not enable itself by default the status shows a grey 'not loaded'. To enable the service use:&lt;br /&gt;
 sudo systemctl enable muondetector-daemon.service&lt;br /&gt;
&lt;br /&gt;
= Configuration and Start =&lt;br /&gt;
&lt;br /&gt;
Now the installation of the muondetector-daemon should be adapted to your setup:&lt;br /&gt;
&lt;br /&gt;
== Configuration ==&lt;br /&gt;
Edit the configuration file /etc/muondetector/muondetector.conf: &amp;lt;code&amp;gt;nano /etc/muondetector/muondetector.conf&amp;lt;/code&amp;gt;.&lt;br /&gt;
Change the settings according to your needs or leave them untouched, if unsure. The comments in the config file should guide you through any required modifications. One option, however, describes the placement of your detector. If you like, choose a stationID descriptor, eg.:&amp;lt;/br&amp;gt;&lt;br /&gt;
(file: &amp;lt;code&amp;gt;/etc/muondetector/muondetector.conf&amp;lt;/code&amp;gt;)&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;#&amp;lt;/nowiki&amp;gt; A unique identifier of the user's station&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;#&amp;lt;/nowiki&amp;gt; leave on default when the user operates a single station&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;#&amp;lt;/nowiki&amp;gt; all detectors of the user are distinguishable on the basis of this id&lt;br /&gt;
 stationID = &amp;quot;HomeOffice&amp;quot;&lt;br /&gt;
&lt;br /&gt;
(anything which best describes the location of your detector like e.g. &amp;quot;GarageSW&amp;quot;, &amp;quot;Bldg16Lab105&amp;quot;, &amp;quot;AtticNE&amp;quot;). If you operate only one stationary detector, it may as well be left on the default ID which is &amp;quot;0&amp;quot; (zero).&lt;br /&gt;
&lt;br /&gt;
'''Important''': When operating multiple detectors (under the same user account, see below) the stationID descriptor '''must''' be unique for each detector.&lt;/div&gt;</summary>
		<author><name>Dtreffenstaedt</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.muonpi.org/index.php?title=Raspberry_Pi_Setup&amp;diff=728</id>
		<title>Raspberry Pi Setup</title>
		<link rel="alternate" type="text/html" href="https://wiki.muonpi.org/index.php?title=Raspberry_Pi_Setup&amp;diff=728"/>
		<updated>2021-07-29T20:43:35Z</updated>

		<summary type="html">&lt;p&gt;Dtreffenstaedt: /* Manual Setup */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;(Requirements: Raspberry Pi Versions 0, 2, 3, 4 (with 40-pin GPIO connector) )&lt;br /&gt;
&lt;br /&gt;
This article will introduce to you, how to set up a Raspberry Pi from scratch with all software needed to run the detector hardware.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
DISCLAIMER: If not stated otherwise, this tutorial is developed on Raspian 10 Buster.&lt;br /&gt;
&lt;br /&gt;
__TOC__&lt;br /&gt;
= Guided Setup =&lt;br /&gt;
This is the recommended way of setting up the muondetector software.&lt;br /&gt;
&lt;br /&gt;
# Download the latest muondetector [https://archive.muonpi.org/image/latest/ image]. &amp;lt;br&amp;gt; If you want to use the detector headless or without graphical user interface, select the -lite version, otherwise select the -gui version.&lt;br /&gt;
# Install the image onto an SD-Card: &amp;lt;br&amp;gt; [https://www.raspberrypi.org/documentation/installation/installing-images/linux.md Linux]&amp;lt;br&amp;gt;[https://www.raspberrypi.org/documentation/installation/installing-images/mac.md MacOS]&amp;lt;br&amp;gt;[https://www.raspberrypi.org/documentation/installation/installing-images/windows.md Windows]&lt;br /&gt;
# (Optional) Setup [https://www.raspberrypi.org/documentation/configuration/wireless/headless.md headless] network. SSH is already enabled per default in the provided images.&lt;br /&gt;
# Boot your RaspberryPi&lt;br /&gt;
# Open a login console&lt;br /&gt;
## Per SSH, or&lt;br /&gt;
## Open a terminal on the RaspberryPi&lt;br /&gt;
# Follow the Prompts in the terminal&lt;br /&gt;
[[File:Screenshot 2021-07-29 22-32-37.png|frameless|center]]&lt;br /&gt;
# Enjoy your detector&lt;br /&gt;
&lt;br /&gt;
= Manual Setup =&lt;br /&gt;
=== Basic ===&lt;br /&gt;
# Create a fresh install of RaspberryPi OS according to the [https://www.raspberrypi.org/documentation/installation/installing-images/ tutorial]&lt;br /&gt;
# Update your system: &amp;lt;code&amp;gt;sudo apt update &amp;amp;&amp;amp; sudo apt upgrade&amp;lt;/code&amp;gt;&lt;br /&gt;
# Change the default password of the user &amp;lt;code&amp;gt;pi&amp;lt;/code&amp;gt;: &amp;lt;code&amp;gt;passwd&amp;lt;/code&amp;gt;&lt;br /&gt;
# (Optional) For an headless install (without monitor and mouse/keyboard), we recommend following this [https://www.raspberrypi.org/documentation/configuration/wireless/headless.md guide].&lt;br /&gt;
=== Interfaces ===&lt;br /&gt;
# '''Enable the serial interface''' (UART) and '''disable the login shell''' via the UART. In terminal: &amp;lt;code&amp;gt;sudo raspi-config&amp;lt;/code&amp;gt; &amp;lt;br&amp;gt; &amp;lt;code&amp;gt; 3 Interface Options -&amp;gt; P6 Serial Port -&amp;gt; No (login shell over serial) -&amp;gt; Yes (serial port)&amp;lt;/code&amp;gt;&lt;br /&gt;
# Enable I2C Interface: In terminal: &amp;lt;code&amp;gt;sudo raspi-config&amp;lt;/code&amp;gt; &amp;lt;br&amp;gt; &amp;lt;code&amp;gt; 3 Interface Options -&amp;gt; P5 I2C -&amp;gt; Yes (enable)&amp;lt;/code&amp;gt;&lt;br /&gt;
# (Optional) '''Enable SSH''': In a terminal: &amp;lt;code&amp;gt;sudo raspi-config&amp;lt;/code&amp;gt; &amp;lt;br&amp;gt; &amp;lt;code&amp;gt; 3 Interface Options -&amp;gt; P2 SSH -&amp;gt; Yes (enable) &amp;lt;/code&amp;gt;&lt;br /&gt;
=== Network ===&lt;br /&gt;
By default, the RPi is configured to automatically obtain an IP address when a connection is available and DHCP in your local network is active (this should be the case for most local/home networks).&lt;br /&gt;
If you prefer a fixed IP address in a local network: edit the file /etc/dhcpcd.conf. Use the template and uncomment the &amp;quot;Example Static IP Configuration&amp;quot; section with your desired IP address.&lt;br /&gt;
If network access should be established via WiFi, either configure it via the network configuration wizard in the graphical desktop environment (usually network icon in the system bar), or manually following these steps (either method is fine):&lt;br /&gt;
# Make sure that the wpa_supplicant package is installed:&amp;lt;code&amp;gt;sudo apt install wpasupplicant&amp;lt;/code&amp;gt;&lt;br /&gt;
# edit the file /etc/wpa_supplicant/wpa_supplicant.conf:&amp;lt;code&amp;gt;sudo nano /etc/wpa_supplicant/wpa_supplicant.conf&amp;lt;/code&amp;gt; &amp;lt;br&amp;gt; the configuration should look like this (non-relevant lines not shown):&lt;br /&gt;
 update_config=1&lt;br /&gt;
 country=DE&amp;lt;/br&amp;gt;&lt;br /&gt;
 network={&lt;br /&gt;
        ssid=&amp;quot;&amp;lt;your network ssid&amp;gt;&amp;quot;&lt;br /&gt;
        psk=&amp;quot;&amp;lt;your wifi password&amp;gt;&amp;quot;&lt;br /&gt;
        key_mgmt=WPA-PSK&lt;br /&gt;
 }&lt;br /&gt;
Enter your WiFi's SSID and password in the indicated fields.&lt;br /&gt;
Finally, restart the system that the changes take effect.&lt;br /&gt;
&lt;br /&gt;
=== MuonPi software installation ===&lt;br /&gt;
(Requirements: a MuonPi board plugged onto the GPIO connector of the RPi)&lt;br /&gt;
* First, add the MuonPi apt repository to your system:&lt;br /&gt;
 sudo sh -c &amp;quot;curl https://archive.muonpi.org/muondetector.public.key | gpg --dearmor &amp;gt; /etc/apt/trusted.gpg.d/muondetector.gpg&amp;quot;&lt;br /&gt;
&lt;br /&gt;
 sudo sh -c &amp;quot;echo deb &amp;lt;nowiki&amp;gt;https://archive.muonpi.org/raspbian buster main&amp;lt;/nowiki&amp;gt; &amp;gt; /etc/apt/sources.list.d/muondetector.list&amp;quot;&lt;br /&gt;
* Update the repositories:&lt;br /&gt;
 sudo apt update&lt;br /&gt;
* Install the muondetector-daemon package and it's dependencies:&lt;br /&gt;
 sudo apt install muondetector-daemon&lt;br /&gt;
* Optional: install the Graphical User Interface (GUI) program to monitor and control the MuonPi locally.&lt;br /&gt;
 sudo apt install muondetector-gui&lt;br /&gt;
{{Note|Note that if you want to use the gui on the raspberrypi, it is recommended to use the Raspberrypi OS with Desktop preinstalled.|reminder}}&lt;br /&gt;
&lt;br /&gt;
* The GUI can connect to the MuonPi over network as well, so it can be installed on other computers in the local network. Currently, binary packages for Raspbian, Ubuntu and Windows are available. The Linux-based versions can be installed from the package repositories (execute steps 1,2 and 4 from this list). The Windows program can be downloaded directly from https://archive.muonpi.org and installed by simply unpacking the zip-archive.&lt;br /&gt;
&lt;br /&gt;
=== Login with your user credentials (only once) ===&lt;br /&gt;
&lt;br /&gt;
Before taking the MuonPi detector into operation, you have to set your credentials for publishing data messages to the server via [http://mqtt.org/ MQTT] protocol on first start. This can be managed in two ways, one secure and one where your credentials appear as plain text in the config file:&lt;br /&gt;
==== The Recommended Method ====&lt;br /&gt;
In a bash shell on the MuonPi, run the command &amp;lt;code&amp;gt;muondetector-login&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
'''Note that for the software version 2.0.0 the command to run is &amp;lt;code&amp;gt;sudo runuser -u muonuser -- muondetector-login&amp;lt;/code&amp;gt; instead.'''&lt;br /&gt;
&lt;br /&gt;
When asked for sudo access, enter the password of your raspberry pi user.&lt;br /&gt;
When asked for your user name and password, enter the credentials supplied to you by a MounPi.org official. The credentials are stored (not in clear text) for all further telemetry connections.&lt;br /&gt;
&lt;br /&gt;
==== Alternative Method ====&lt;br /&gt;
Uncomment the &amp;lt;code&amp;gt;mqtt_user&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;mqtt_password&amp;lt;/code&amp;gt; options in &amp;lt;code&amp;gt;/etc/muondetector/muondetector.conf&amp;lt;/code&amp;gt; and type your personal username and password into these fields between the quotation marks. Be aware, that these credentials are written in plain text into this file and can be retrieved by malware attacks. However, if you operate a station inside a home network and set up a strong ssh authentication (see above), you should be relatively safe.&lt;br /&gt;
&lt;br /&gt;
=== Start the Daemon ===&lt;br /&gt;
The daemon should be enabled and started automatically after installation and on every reboot. However, when changing items in the config file, the changes have to be made effective by a daemon restart:&lt;br /&gt;
 sudo systemctl restart muondetector-daemon.service&lt;br /&gt;
&lt;br /&gt;
To see the current status of the daemon service use following command:&lt;br /&gt;
 systemctl status muondetector-daemon.service&lt;br /&gt;
&lt;br /&gt;
It can happen that the status shows 'failed' in red, usually a restart of the daemon service resolves this.&lt;br /&gt;
&lt;br /&gt;
If the service should not enable itself by default the status shows a grey 'not loaded'. To enable the service use:&lt;br /&gt;
 sudo systemctl enable muondetector-daemon.service&lt;br /&gt;
&lt;br /&gt;
= Configuration and Start =&lt;br /&gt;
&lt;br /&gt;
Now the installation of the muondetector-daemon should be adapted to your setup:&lt;br /&gt;
&lt;br /&gt;
== Configuration ==&lt;br /&gt;
Edit the configuration file /etc/muondetector/muondetector.conf: &amp;lt;code&amp;gt;nano /etc/muondetector/muondetector.conf&amp;lt;/code&amp;gt;.&lt;br /&gt;
Change the settings according to your needs or leave them untouched, if unsure. The comments in the config file should guide you through any required modifications. One option, however, describes the placement of your detector. If you like, choose a stationID descriptor, eg.:&amp;lt;/br&amp;gt;&lt;br /&gt;
(file: &amp;lt;code&amp;gt;/etc/muondetector/muondetector.conf&amp;lt;/code&amp;gt;)&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;#&amp;lt;/nowiki&amp;gt; A unique identifier of the user's station&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;#&amp;lt;/nowiki&amp;gt; leave on default when the user operates a single station&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;#&amp;lt;/nowiki&amp;gt; all detectors of the user are distinguishable on the basis of this id&lt;br /&gt;
 stationID = &amp;quot;HomeOffice&amp;quot;&lt;br /&gt;
&lt;br /&gt;
(anything which best describes the location of your detector like e.g. &amp;quot;GarageSW&amp;quot;, &amp;quot;Bldg16Lab105&amp;quot;, &amp;quot;AtticNE&amp;quot;). If you operate only one stationary detector, it may as well be left on the default ID which is &amp;quot;0&amp;quot; (zero).&lt;br /&gt;
&lt;br /&gt;
'''Important''': When operating multiple detectors (under the same user account, see below) the stationID descriptor '''must''' be unique for each detector.&lt;/div&gt;</summary>
		<author><name>Dtreffenstaedt</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.muonpi.org/index.php?title=Raspberry_Pi_Setup&amp;diff=727</id>
		<title>Raspberry Pi Setup</title>
		<link rel="alternate" type="text/html" href="https://wiki.muonpi.org/index.php?title=Raspberry_Pi_Setup&amp;diff=727"/>
		<updated>2021-07-29T20:37:33Z</updated>

		<summary type="html">&lt;p&gt;Dtreffenstaedt: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;(Requirements: Raspberry Pi Versions 0, 2, 3, 4 (with 40-pin GPIO connector) )&lt;br /&gt;
&lt;br /&gt;
This article will introduce to you, how to set up a Raspberry Pi from scratch with all software needed to run the detector hardware.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
DISCLAIMER: If not stated otherwise, this tutorial is developed on Raspian 10 Buster.&lt;br /&gt;
&lt;br /&gt;
__TOC__&lt;br /&gt;
= Guided Setup =&lt;br /&gt;
This is the recommended way of setting up the muondetector software.&lt;br /&gt;
&lt;br /&gt;
# Download the latest muondetector [https://archive.muonpi.org/image/latest/ image]. &amp;lt;br&amp;gt; If you want to use the detector headless or without graphical user interface, select the -lite version, otherwise select the -gui version.&lt;br /&gt;
# Install the image onto an SD-Card: &amp;lt;br&amp;gt; [https://www.raspberrypi.org/documentation/installation/installing-images/linux.md Linux]&amp;lt;br&amp;gt;[https://www.raspberrypi.org/documentation/installation/installing-images/mac.md MacOS]&amp;lt;br&amp;gt;[https://www.raspberrypi.org/documentation/installation/installing-images/windows.md Windows]&lt;br /&gt;
# (Optional) Setup [https://www.raspberrypi.org/documentation/configuration/wireless/headless.md headless] network. SSH is already enabled per default in the provided images.&lt;br /&gt;
# Boot your RaspberryPi&lt;br /&gt;
# Open a login console&lt;br /&gt;
## Per SSH, or&lt;br /&gt;
## Open a terminal on the RaspberryPi&lt;br /&gt;
# Follow the Prompts in the terminal&lt;br /&gt;
[[File:Screenshot 2021-07-29 22-32-37.png|frameless|center]]&lt;br /&gt;
# Enjoy your detector&lt;br /&gt;
&lt;br /&gt;
= Manual Setup =&lt;br /&gt;
== Prerequisities ==&lt;br /&gt;
You should have a fully configured RaspberryPi OS system and are ready-to-go to set up the MuonPi after following these steps:&lt;br /&gt;
=== Basic ===&lt;br /&gt;
# Create a fresh install of RaspberryPi OS according to the [https://www.raspberrypi.org/documentation/installation/installing-images/ tutorial]&lt;br /&gt;
# Update your system: &amp;lt;code&amp;gt;sudo apt update &amp;amp;&amp;amp; sudo apt upgrade&amp;lt;/code&amp;gt;&lt;br /&gt;
# Change the default password of the user &amp;lt;code&amp;gt;pi&amp;lt;/code&amp;gt;: &amp;lt;code&amp;gt;passwd&amp;lt;/code&amp;gt;&lt;br /&gt;
# (Optional) For an headless install (without monitor and mouse/keyboard), we recommend following this [https://www.raspberrypi.org/documentation/configuration/wireless/headless.md guide].&lt;br /&gt;
=== Interfaces ===&lt;br /&gt;
# '''Enable the serial interface''' (UART) and '''disable the login shell''' via the UART. In terminal: &amp;lt;code&amp;gt;sudo raspi-config&amp;lt;/code&amp;gt; &amp;lt;br&amp;gt; &amp;lt;code&amp;gt; 3 Interface Options -&amp;gt; P6 Serial Port -&amp;gt; No (login shell over serial) -&amp;gt; Yes (serial port)&amp;lt;/code&amp;gt;&lt;br /&gt;
# Enable I2C Interface: In terminal: &amp;lt;code&amp;gt;sudo raspi-config&amp;lt;/code&amp;gt; &amp;lt;br&amp;gt; &amp;lt;code&amp;gt; 3 Interface Options -&amp;gt; P5 I2C -&amp;gt; Yes (enable)&amp;lt;/code&amp;gt;&lt;br /&gt;
# (Optional) '''Enable SSH''': In a terminal: &amp;lt;code&amp;gt;sudo raspi-config&amp;lt;/code&amp;gt; &amp;lt;br&amp;gt; &amp;lt;code&amp;gt; 3 Interface Options -&amp;gt; P2 SSH -&amp;gt; Yes (enable) &amp;lt;/code&amp;gt;&lt;br /&gt;
=== Network ===&lt;br /&gt;
By default, the RPi is configured to automatically obtain an IP address when a connection is available and DHCP in your local network is active (this should be the case for most local/home networks).&lt;br /&gt;
If you prefer a fixed IP address in a local network: edit the file /etc/dhcpcd.conf. Use the template and uncomment the &amp;quot;Example Static IP Configuration&amp;quot; section with your desired IP address.&lt;br /&gt;
If network access should be established via WiFi, either configure it via the network configuration wizard in the graphical desktop environment (usually network icon in the system bar), or manually following these steps (either method is fine):&lt;br /&gt;
# Make sure that the wpa_supplicant package is installed:&amp;lt;code&amp;gt;sudo apt install wpasupplicant&amp;lt;/code&amp;gt;&lt;br /&gt;
# edit the file /etc/wpa_supplicant/wpa_supplicant.conf:&amp;lt;code&amp;gt;sudo nano /etc/wpa_supplicant/wpa_supplicant.conf&amp;lt;/code&amp;gt; &amp;lt;br&amp;gt; the configuration should look like this (non-relevant lines not shown):&lt;br /&gt;
 update_config=1&lt;br /&gt;
 country=DE&amp;lt;/br&amp;gt;&lt;br /&gt;
 network={&lt;br /&gt;
        ssid=&amp;quot;&amp;lt;your network ssid&amp;gt;&amp;quot;&lt;br /&gt;
        psk=&amp;quot;&amp;lt;your wifi password&amp;gt;&amp;quot;&lt;br /&gt;
        key_mgmt=WPA-PSK&lt;br /&gt;
 }&lt;br /&gt;
Enter your WiFi's SSID and password in the indicated fields.&lt;br /&gt;
Finally, restart the system that the changes take effect.&lt;br /&gt;
&lt;br /&gt;
== MuonPi software installation ==&lt;br /&gt;
(Requirements: a MuonPi board plugged onto the GPIO connector of the RPi)&lt;br /&gt;
* First, add the MuonPi apt repository to your system:&lt;br /&gt;
 sudo sh -c &amp;quot;curl https://archive.muonpi.org/muondetector.public.key | gpg --dearmor &amp;gt; /etc/apt/trusted.gpg.d/muondetector.gpg&amp;quot;&lt;br /&gt;
&lt;br /&gt;
 sudo sh -c &amp;quot;echo deb &amp;lt;nowiki&amp;gt;https://archive.muonpi.org/raspbian buster main&amp;lt;/nowiki&amp;gt; &amp;gt; /etc/apt/sources.list.d/muondetector.list&amp;quot;&lt;br /&gt;
* Update the repositories:&lt;br /&gt;
 sudo apt update&lt;br /&gt;
* Install the muondetector-daemon package and it's dependencies:&lt;br /&gt;
 sudo apt install muondetector-daemon&lt;br /&gt;
* Optional: install the Graphical User Interface (GUI) program to monitor and control the MuonPi locally.&lt;br /&gt;
 sudo apt install muondetector-gui&lt;br /&gt;
{{Note|Note that if you want to use the gui on the raspberrypi, it is recommended to use the Raspberrypi OS with Desktop preinstalled.|reminder}}&lt;br /&gt;
&lt;br /&gt;
* The GUI can connect to the MuonPi over network as well, so it can be installed on other computers in the local network. Currently, binary packages for Raspbian, Ubuntu and Windows are available. The Linux-based versions can be installed from the package repositories (execute steps 1,2 and 4 from this list). The Windows program can be downloaded directly from https://archive.muonpi.org and installed by simply unpacking the zip-archive.&lt;br /&gt;
&lt;br /&gt;
== Login with your user credentials (only once) ==&lt;br /&gt;
&lt;br /&gt;
Before taking the MuonPi detector into operation, you have to set your credentials for publishing data messages to the server via [http://mqtt.org/ MQTT] protocol on first start. This can be managed in two ways, one secure and one where your credentials appear as plain text in the config file:&lt;br /&gt;
==== The Recommended Method ====&lt;br /&gt;
In a bash shell on the MuonPi, run the command &amp;lt;code&amp;gt;muondetector-login&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
'''Note that for the software version 2.0.0 the command to run is &amp;lt;code&amp;gt;sudo runuser -u muonuser -- muondetector-login&amp;lt;/code&amp;gt; instead.'''&lt;br /&gt;
&lt;br /&gt;
When asked for sudo access, enter the password of your raspberry pi user.&lt;br /&gt;
When asked for your user name and password, enter the credentials supplied to you by a MounPi.org official. The credentials are stored (not in clear text) for all further telemetry connections.&lt;br /&gt;
&lt;br /&gt;
==== Alternative Method ====&lt;br /&gt;
Uncomment the &amp;lt;code&amp;gt;mqtt_user&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;mqtt_password&amp;lt;/code&amp;gt; options in &amp;lt;code&amp;gt;/etc/muondetector/muondetector.conf&amp;lt;/code&amp;gt; and type your personal username and password into these fields between the quotation marks. Be aware, that these credentials are written in plain text into this file and can be retrieved by malware attacks. However, if you operate a station inside a home network and set up a strong ssh authentication (see above), you should be relatively safe.&lt;br /&gt;
&lt;br /&gt;
== Start the Daemon ==&lt;br /&gt;
The daemon should be enabled and started automatically after installation and on every reboot. However, when changing items in the config file, the changes have to be made effective by a daemon restart:&lt;br /&gt;
 sudo systemctl restart muondetector-daemon.service&lt;br /&gt;
&lt;br /&gt;
To see the current status of the daemon service use following command:&lt;br /&gt;
 systemctl status muondetector-daemon.service&lt;br /&gt;
&lt;br /&gt;
It can happen that the status shows 'failed' in red, usually a restart of the daemon service resolves this.&lt;br /&gt;
&lt;br /&gt;
If the service should not enable itself by default the status shows a grey 'not loaded'. To enable the service use:&lt;br /&gt;
 sudo systemctl enable muondetector-daemon.service&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
= Configuration and Start =&lt;br /&gt;
&lt;br /&gt;
Now the installation of the muondetector-daemon should be adapted to your setup:&lt;br /&gt;
&lt;br /&gt;
== Configuration ==&lt;br /&gt;
Edit the configuration file /etc/muondetector/muondetector.conf: &amp;lt;code&amp;gt;nano /etc/muondetector/muondetector.conf&amp;lt;/code&amp;gt;.&lt;br /&gt;
Change the settings according to your needs or leave them untouched, if unsure. The comments in the config file should guide you through any required modifications. One option, however, describes the placement of your detector. If you like, choose a stationID descriptor, eg.:&amp;lt;/br&amp;gt;&lt;br /&gt;
(file: &amp;lt;code&amp;gt;/etc/muondetector/muondetector.conf&amp;lt;/code&amp;gt;)&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;#&amp;lt;/nowiki&amp;gt; A unique identifier of the user's station&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;#&amp;lt;/nowiki&amp;gt; leave on default when the user operates a single station&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;#&amp;lt;/nowiki&amp;gt; all detectors of the user are distinguishable on the basis of this id&lt;br /&gt;
 stationID = &amp;quot;HomeOffice&amp;quot;&lt;br /&gt;
&lt;br /&gt;
(anything which best describes the location of your detector like e.g. &amp;quot;GarageSW&amp;quot;, &amp;quot;Bldg16Lab105&amp;quot;, &amp;quot;AtticNE&amp;quot;). If you operate only one stationary detector, it may as well be left on the default ID which is &amp;quot;0&amp;quot; (zero).&lt;br /&gt;
&lt;br /&gt;
'''Important''': When operating multiple detectors (under the same user account, see below) the stationID descriptor '''must''' be unique for each detector.&lt;/div&gt;</summary>
		<author><name>Dtreffenstaedt</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.muonpi.org/index.php?title=Raspberry_Pi_Setup&amp;diff=726</id>
		<title>Raspberry Pi Setup</title>
		<link rel="alternate" type="text/html" href="https://wiki.muonpi.org/index.php?title=Raspberry_Pi_Setup&amp;diff=726"/>
		<updated>2021-07-29T20:36:38Z</updated>

		<summary type="html">&lt;p&gt;Dtreffenstaedt: /* Guided Setup */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;(Requirements: Raspberry Pi Versions 0, 2, 3, 4 (with 40-pin GPIO connector) )&lt;br /&gt;
&lt;br /&gt;
This article will introduce to you, how to set up a Raspberry Pi from scratch with all software needed to run the detector hardware.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
DISCLAIMER: If not stated otherwise, this tutorial is developed on Raspian 10 Buster.&lt;br /&gt;
&lt;br /&gt;
__TOC__&lt;br /&gt;
= Guided Setup =&lt;br /&gt;
This is the recommended way of setting up the muondetector software.&lt;br /&gt;
&lt;br /&gt;
# Download the latest muondetector [https://archive.muonpi.org/image/latest/ image]. &amp;lt;br&amp;gt; If you want to use the detector headless or without graphical user interface, select the -lite version, otherwise select the -gui version.&lt;br /&gt;
# Install the image onto an SD-Card: &amp;lt;br&amp;gt; [https://www.raspberrypi.org/documentation/installation/installing-images/linux.md Linux]&amp;lt;br&amp;gt;[https://www.raspberrypi.org/documentation/installation/installing-images/mac.md MacOS]&amp;lt;br&amp;gt;[https://www.raspberrypi.org/documentation/installation/installing-images/windows.md Windows]&lt;br /&gt;
# (Optional) Setup [https://www.raspberrypi.org/documentation/configuration/wireless/headless.md headless] network. SSH is already enabled per default in the provided images.&lt;br /&gt;
# Boot your RaspberryPi&lt;br /&gt;
# Open a login console&lt;br /&gt;
## Per SSH, or&lt;br /&gt;
## Open a terminal on the RaspberryPi&lt;br /&gt;
# Follow the Prompts in the terminal&lt;br /&gt;
[[File:Screenshot 2021-07-29 22-32-37.png|frame|left]]&lt;br /&gt;
# Enjoy your detector&lt;br /&gt;
&lt;br /&gt;
= Manual Setup =&lt;br /&gt;
== Prerequisities ==&lt;br /&gt;
You should have a fully configured RaspberryPi OS system and are ready-to-go to set up the MuonPi after following these steps:&lt;br /&gt;
=== Basic ===&lt;br /&gt;
# Create a fresh install of RaspberryPi OS according to the [https://www.raspberrypi.org/documentation/installation/installing-images/ tutorial]&lt;br /&gt;
# Update your system: &amp;lt;code&amp;gt;sudo apt update &amp;amp;&amp;amp; sudo apt upgrade&amp;lt;/code&amp;gt;&lt;br /&gt;
# Change the default password of the user &amp;lt;code&amp;gt;pi&amp;lt;/code&amp;gt;: &amp;lt;code&amp;gt;passwd&amp;lt;/code&amp;gt;&lt;br /&gt;
# (Optional) For an headless install (without monitor and mouse/keyboard), we recommend following this [https://www.raspberrypi.org/documentation/configuration/wireless/headless.md guide].&lt;br /&gt;
=== Interfaces ===&lt;br /&gt;
# '''Enable the serial interface''' (UART) and '''disable the login shell''' via the UART. In terminal: &amp;lt;code&amp;gt;sudo raspi-config&amp;lt;/code&amp;gt; &amp;lt;br&amp;gt; &amp;lt;code&amp;gt; 3 Interface Options -&amp;gt; P6 Serial Port -&amp;gt; No (login shell over serial) -&amp;gt; Yes (serial port)&amp;lt;/code&amp;gt;&lt;br /&gt;
# Enable I2C Interface: In terminal: &amp;lt;code&amp;gt;sudo raspi-config&amp;lt;/code&amp;gt; &amp;lt;br&amp;gt; &amp;lt;code&amp;gt; 3 Interface Options -&amp;gt; P5 I2C -&amp;gt; Yes (enable)&amp;lt;/code&amp;gt;&lt;br /&gt;
# (Optional) '''Enable SSH''': In a terminal: &amp;lt;code&amp;gt;sudo raspi-config&amp;lt;/code&amp;gt; &amp;lt;br&amp;gt; &amp;lt;code&amp;gt; 3 Interface Options -&amp;gt; P2 SSH -&amp;gt; Yes (enable) &amp;lt;/code&amp;gt;&lt;br /&gt;
=== Network ===&lt;br /&gt;
By default, the RPi is configured to automatically obtain an IP address when a connection is available and DHCP in your local network is active (this should be the case for most local/home networks).&lt;br /&gt;
If you prefer a fixed IP address in a local network: edit the file /etc/dhcpcd.conf. Use the template and uncomment the &amp;quot;Example Static IP Configuration&amp;quot; section with your desired IP address.&lt;br /&gt;
If network access should be established via WiFi, either configure it via the network configuration wizard in the graphical desktop environment (usually network icon in the system bar), or manually following these steps (either method is fine):&lt;br /&gt;
# Make sure that the wpa_supplicant package is installed:&amp;lt;code&amp;gt;sudo apt install wpasupplicant&amp;lt;/code&amp;gt;&lt;br /&gt;
# edit the file /etc/wpa_supplicant/wpa_supplicant.conf:&amp;lt;code&amp;gt;sudo nano /etc/wpa_supplicant/wpa_supplicant.conf&amp;lt;/code&amp;gt; &amp;lt;br&amp;gt; the configuration should look like this (non-relevant lines not shown):&lt;br /&gt;
 update_config=1&lt;br /&gt;
 country=DE&amp;lt;/br&amp;gt;&lt;br /&gt;
 network={&lt;br /&gt;
        ssid=&amp;quot;&amp;lt;your network ssid&amp;gt;&amp;quot;&lt;br /&gt;
        psk=&amp;quot;&amp;lt;your wifi password&amp;gt;&amp;quot;&lt;br /&gt;
        key_mgmt=WPA-PSK&lt;br /&gt;
 }&lt;br /&gt;
Enter your WiFi's SSID and password in the indicated fields.&lt;br /&gt;
Finally, restart the system that the changes take effect.&lt;br /&gt;
&lt;br /&gt;
== MuonPi software installation ==&lt;br /&gt;
(Requirements: a MuonPi board plugged onto the GPIO connector of the RPi)&lt;br /&gt;
* First, add the MuonPi apt repository to your system:&lt;br /&gt;
 sudo sh -c &amp;quot;curl https://archive.muonpi.org/muondetector.public.key | gpg --dearmor &amp;gt; /etc/apt/trusted.gpg.d/muondetector.gpg&amp;quot;&lt;br /&gt;
&lt;br /&gt;
 sudo sh -c &amp;quot;echo deb &amp;lt;nowiki&amp;gt;https://archive.muonpi.org/raspbian buster main&amp;lt;/nowiki&amp;gt; &amp;gt; /etc/apt/sources.list.d/muondetector.list&amp;quot;&lt;br /&gt;
* Update the repositories:&lt;br /&gt;
 sudo apt update&lt;br /&gt;
* Install the muondetector-daemon package and it's dependencies:&lt;br /&gt;
 sudo apt install muondetector-daemon&lt;br /&gt;
* Optional: install the Graphical User Interface (GUI) program to monitor and control the MuonPi locally.&lt;br /&gt;
 sudo apt install muondetector-gui&lt;br /&gt;
{{Note|Note that if you want to use the gui on the raspberrypi, it is recommended to use the Raspberrypi OS with Desktop preinstalled.|reminder}}&lt;br /&gt;
&lt;br /&gt;
* The GUI can connect to the MuonPi over network as well, so it can be installed on other computers in the local network. Currently, binary packages for Raspbian, Ubuntu and Windows are available. The Linux-based versions can be installed from the package repositories (execute steps 1,2 and 4 from this list). The Windows program can be downloaded directly from https://archive.muonpi.org and installed by simply unpacking the zip-archive.&lt;br /&gt;
&lt;br /&gt;
== Login with your user credentials (only once) ==&lt;br /&gt;
&lt;br /&gt;
Before taking the MuonPi detector into operation, you have to set your credentials for publishing data messages to the server via [http://mqtt.org/ MQTT] protocol on first start. This can be managed in two ways, one secure and one where your credentials appear as plain text in the config file:&lt;br /&gt;
==== The Recommended Method ====&lt;br /&gt;
In a bash shell on the MuonPi, run the command &amp;lt;code&amp;gt;muondetector-login&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
'''Note that for the software version 2.0.0 the command to run is &amp;lt;code&amp;gt;sudo runuser -u muonuser -- muondetector-login&amp;lt;/code&amp;gt; instead.'''&lt;br /&gt;
&lt;br /&gt;
When asked for sudo access, enter the password of your raspberry pi user.&lt;br /&gt;
When asked for your user name and password, enter the credentials supplied to you by a MounPi.org official. The credentials are stored (not in clear text) for all further telemetry connections.&lt;br /&gt;
&lt;br /&gt;
==== Alternative Method ====&lt;br /&gt;
Uncomment the &amp;lt;code&amp;gt;mqtt_user&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;mqtt_password&amp;lt;/code&amp;gt; options in &amp;lt;code&amp;gt;/etc/muondetector/muondetector.conf&amp;lt;/code&amp;gt; and type your personal username and password into these fields between the quotation marks. Be aware, that these credentials are written in plain text into this file and can be retrieved by malware attacks. However, if you operate a station inside a home network and set up a strong ssh authentication (see above), you should be relatively safe.&lt;br /&gt;
&lt;br /&gt;
== Start the Daemon ==&lt;br /&gt;
The daemon should be enabled and started automatically after installation and on every reboot. However, when changing items in the config file, the changes have to be made effective by a daemon restart:&lt;br /&gt;
 sudo systemctl restart muondetector-daemon.service&lt;br /&gt;
&lt;br /&gt;
To see the current status of the daemon service use following command:&lt;br /&gt;
 systemctl status muondetector-daemon.service&lt;br /&gt;
&lt;br /&gt;
It can happen that the status shows 'failed' in red, usually a restart of the daemon service resolves this.&lt;br /&gt;
&lt;br /&gt;
If the service should not enable itself by default the status shows a grey 'not loaded'. To enable the service use:&lt;br /&gt;
 sudo systemctl enable muondetector-daemon.service&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
= Configuration and Start =&lt;br /&gt;
&lt;br /&gt;
Now the installation of the muondetector-daemon should be adapted to your setup:&lt;br /&gt;
&lt;br /&gt;
== Configuration ==&lt;br /&gt;
Edit the configuration file /etc/muondetector/muondetector.conf: &amp;lt;code&amp;gt;nano /etc/muondetector/muondetector.conf&amp;lt;/code&amp;gt;.&lt;br /&gt;
Change the settings according to your needs or leave them untouched, if unsure. The comments in the config file should guide you through any required modifications. One option, however, describes the placement of your detector. If you like, choose a stationID descriptor, eg.:&amp;lt;/br&amp;gt;&lt;br /&gt;
(file: &amp;lt;code&amp;gt;/etc/muondetector/muondetector.conf&amp;lt;/code&amp;gt;)&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;#&amp;lt;/nowiki&amp;gt; A unique identifier of the user's station&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;#&amp;lt;/nowiki&amp;gt; leave on default when the user operates a single station&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;#&amp;lt;/nowiki&amp;gt; all detectors of the user are distinguishable on the basis of this id&lt;br /&gt;
 stationID = &amp;quot;HomeOffice&amp;quot;&lt;br /&gt;
&lt;br /&gt;
(anything which best describes the location of your detector like e.g. &amp;quot;GarageSW&amp;quot;, &amp;quot;Bldg16Lab105&amp;quot;, &amp;quot;AtticNE&amp;quot;). If you operate only one stationary detector, it may as well be left on the default ID which is &amp;quot;0&amp;quot; (zero).&lt;br /&gt;
&lt;br /&gt;
'''Important''': When operating multiple detectors (under the same user account, see below) the stationID descriptor '''must''' be unique for each detector.&lt;/div&gt;</summary>
		<author><name>Dtreffenstaedt</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.muonpi.org/index.php?title=Raspberry_Pi_Setup&amp;diff=725</id>
		<title>Raspberry Pi Setup</title>
		<link rel="alternate" type="text/html" href="https://wiki.muonpi.org/index.php?title=Raspberry_Pi_Setup&amp;diff=725"/>
		<updated>2021-07-29T20:36:21Z</updated>

		<summary type="html">&lt;p&gt;Dtreffenstaedt: /* Guided Setup */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;(Requirements: Raspberry Pi Versions 0, 2, 3, 4 (with 40-pin GPIO connector) )&lt;br /&gt;
&lt;br /&gt;
This article will introduce to you, how to set up a Raspberry Pi from scratch with all software needed to run the detector hardware.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
DISCLAIMER: If not stated otherwise, this tutorial is developed on Raspian 10 Buster.&lt;br /&gt;
&lt;br /&gt;
__TOC__&lt;br /&gt;
= Guided Setup =&lt;br /&gt;
This is the recommended way of setting up the muondetector software.&lt;br /&gt;
&lt;br /&gt;
# Download the latest muondetector [https://archive.muonpi.org/image/latest/ image]. &amp;lt;br&amp;gt; If you want to use the detector headless or without graphical user interface, select the -lite version, otherwise select the -gui version.&lt;br /&gt;
# Install the image onto an SD-Card: &amp;lt;br&amp;gt; [https://www.raspberrypi.org/documentation/installation/installing-images/linux.md Linux]&amp;lt;br&amp;gt;[https://www.raspberrypi.org/documentation/installation/installing-images/mac.md MacOS]&amp;lt;br&amp;gt;[https://www.raspberrypi.org/documentation/installation/installing-images/windows.md Windows]&lt;br /&gt;
# (Optional) Setup [https://www.raspberrypi.org/documentation/configuration/wireless/headless.md headless] network. SSH is already enabled per default in the provided images.&lt;br /&gt;
# Boot your RaspberryPi&lt;br /&gt;
# Open a login console&lt;br /&gt;
## Per SSH, or&lt;br /&gt;
## Open a terminal on the RaspberryPi&lt;br /&gt;
# Follow the Prompts in the terminal&lt;br /&gt;
[[File:Screenshot 2021-07-29 22-32-37.png|frameless|left]]&lt;br /&gt;
# Enjoy your detector&lt;br /&gt;
&lt;br /&gt;
= Manual Setup =&lt;br /&gt;
== Prerequisities ==&lt;br /&gt;
You should have a fully configured RaspberryPi OS system and are ready-to-go to set up the MuonPi after following these steps:&lt;br /&gt;
=== Basic ===&lt;br /&gt;
# Create a fresh install of RaspberryPi OS according to the [https://www.raspberrypi.org/documentation/installation/installing-images/ tutorial]&lt;br /&gt;
# Update your system: &amp;lt;code&amp;gt;sudo apt update &amp;amp;&amp;amp; sudo apt upgrade&amp;lt;/code&amp;gt;&lt;br /&gt;
# Change the default password of the user &amp;lt;code&amp;gt;pi&amp;lt;/code&amp;gt;: &amp;lt;code&amp;gt;passwd&amp;lt;/code&amp;gt;&lt;br /&gt;
# (Optional) For an headless install (without monitor and mouse/keyboard), we recommend following this [https://www.raspberrypi.org/documentation/configuration/wireless/headless.md guide].&lt;br /&gt;
=== Interfaces ===&lt;br /&gt;
# '''Enable the serial interface''' (UART) and '''disable the login shell''' via the UART. In terminal: &amp;lt;code&amp;gt;sudo raspi-config&amp;lt;/code&amp;gt; &amp;lt;br&amp;gt; &amp;lt;code&amp;gt; 3 Interface Options -&amp;gt; P6 Serial Port -&amp;gt; No (login shell over serial) -&amp;gt; Yes (serial port)&amp;lt;/code&amp;gt;&lt;br /&gt;
# Enable I2C Interface: In terminal: &amp;lt;code&amp;gt;sudo raspi-config&amp;lt;/code&amp;gt; &amp;lt;br&amp;gt; &amp;lt;code&amp;gt; 3 Interface Options -&amp;gt; P5 I2C -&amp;gt; Yes (enable)&amp;lt;/code&amp;gt;&lt;br /&gt;
# (Optional) '''Enable SSH''': In a terminal: &amp;lt;code&amp;gt;sudo raspi-config&amp;lt;/code&amp;gt; &amp;lt;br&amp;gt; &amp;lt;code&amp;gt; 3 Interface Options -&amp;gt; P2 SSH -&amp;gt; Yes (enable) &amp;lt;/code&amp;gt;&lt;br /&gt;
=== Network ===&lt;br /&gt;
By default, the RPi is configured to automatically obtain an IP address when a connection is available and DHCP in your local network is active (this should be the case for most local/home networks).&lt;br /&gt;
If you prefer a fixed IP address in a local network: edit the file /etc/dhcpcd.conf. Use the template and uncomment the &amp;quot;Example Static IP Configuration&amp;quot; section with your desired IP address.&lt;br /&gt;
If network access should be established via WiFi, either configure it via the network configuration wizard in the graphical desktop environment (usually network icon in the system bar), or manually following these steps (either method is fine):&lt;br /&gt;
# Make sure that the wpa_supplicant package is installed:&amp;lt;code&amp;gt;sudo apt install wpasupplicant&amp;lt;/code&amp;gt;&lt;br /&gt;
# edit the file /etc/wpa_supplicant/wpa_supplicant.conf:&amp;lt;code&amp;gt;sudo nano /etc/wpa_supplicant/wpa_supplicant.conf&amp;lt;/code&amp;gt; &amp;lt;br&amp;gt; the configuration should look like this (non-relevant lines not shown):&lt;br /&gt;
 update_config=1&lt;br /&gt;
 country=DE&amp;lt;/br&amp;gt;&lt;br /&gt;
 network={&lt;br /&gt;
        ssid=&amp;quot;&amp;lt;your network ssid&amp;gt;&amp;quot;&lt;br /&gt;
        psk=&amp;quot;&amp;lt;your wifi password&amp;gt;&amp;quot;&lt;br /&gt;
        key_mgmt=WPA-PSK&lt;br /&gt;
 }&lt;br /&gt;
Enter your WiFi's SSID and password in the indicated fields.&lt;br /&gt;
Finally, restart the system that the changes take effect.&lt;br /&gt;
&lt;br /&gt;
== MuonPi software installation ==&lt;br /&gt;
(Requirements: a MuonPi board plugged onto the GPIO connector of the RPi)&lt;br /&gt;
* First, add the MuonPi apt repository to your system:&lt;br /&gt;
 sudo sh -c &amp;quot;curl https://archive.muonpi.org/muondetector.public.key | gpg --dearmor &amp;gt; /etc/apt/trusted.gpg.d/muondetector.gpg&amp;quot;&lt;br /&gt;
&lt;br /&gt;
 sudo sh -c &amp;quot;echo deb &amp;lt;nowiki&amp;gt;https://archive.muonpi.org/raspbian buster main&amp;lt;/nowiki&amp;gt; &amp;gt; /etc/apt/sources.list.d/muondetector.list&amp;quot;&lt;br /&gt;
* Update the repositories:&lt;br /&gt;
 sudo apt update&lt;br /&gt;
* Install the muondetector-daemon package and it's dependencies:&lt;br /&gt;
 sudo apt install muondetector-daemon&lt;br /&gt;
* Optional: install the Graphical User Interface (GUI) program to monitor and control the MuonPi locally.&lt;br /&gt;
 sudo apt install muondetector-gui&lt;br /&gt;
{{Note|Note that if you want to use the gui on the raspberrypi, it is recommended to use the Raspberrypi OS with Desktop preinstalled.|reminder}}&lt;br /&gt;
&lt;br /&gt;
* The GUI can connect to the MuonPi over network as well, so it can be installed on other computers in the local network. Currently, binary packages for Raspbian, Ubuntu and Windows are available. The Linux-based versions can be installed from the package repositories (execute steps 1,2 and 4 from this list). The Windows program can be downloaded directly from https://archive.muonpi.org and installed by simply unpacking the zip-archive.&lt;br /&gt;
&lt;br /&gt;
== Login with your user credentials (only once) ==&lt;br /&gt;
&lt;br /&gt;
Before taking the MuonPi detector into operation, you have to set your credentials for publishing data messages to the server via [http://mqtt.org/ MQTT] protocol on first start. This can be managed in two ways, one secure and one where your credentials appear as plain text in the config file:&lt;br /&gt;
==== The Recommended Method ====&lt;br /&gt;
In a bash shell on the MuonPi, run the command &amp;lt;code&amp;gt;muondetector-login&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
'''Note that for the software version 2.0.0 the command to run is &amp;lt;code&amp;gt;sudo runuser -u muonuser -- muondetector-login&amp;lt;/code&amp;gt; instead.'''&lt;br /&gt;
&lt;br /&gt;
When asked for sudo access, enter the password of your raspberry pi user.&lt;br /&gt;
When asked for your user name and password, enter the credentials supplied to you by a MounPi.org official. The credentials are stored (not in clear text) for all further telemetry connections.&lt;br /&gt;
&lt;br /&gt;
==== Alternative Method ====&lt;br /&gt;
Uncomment the &amp;lt;code&amp;gt;mqtt_user&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;mqtt_password&amp;lt;/code&amp;gt; options in &amp;lt;code&amp;gt;/etc/muondetector/muondetector.conf&amp;lt;/code&amp;gt; and type your personal username and password into these fields between the quotation marks. Be aware, that these credentials are written in plain text into this file and can be retrieved by malware attacks. However, if you operate a station inside a home network and set up a strong ssh authentication (see above), you should be relatively safe.&lt;br /&gt;
&lt;br /&gt;
== Start the Daemon ==&lt;br /&gt;
The daemon should be enabled and started automatically after installation and on every reboot. However, when changing items in the config file, the changes have to be made effective by a daemon restart:&lt;br /&gt;
 sudo systemctl restart muondetector-daemon.service&lt;br /&gt;
&lt;br /&gt;
To see the current status of the daemon service use following command:&lt;br /&gt;
 systemctl status muondetector-daemon.service&lt;br /&gt;
&lt;br /&gt;
It can happen that the status shows 'failed' in red, usually a restart of the daemon service resolves this.&lt;br /&gt;
&lt;br /&gt;
If the service should not enable itself by default the status shows a grey 'not loaded'. To enable the service use:&lt;br /&gt;
 sudo systemctl enable muondetector-daemon.service&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
= Configuration and Start =&lt;br /&gt;
&lt;br /&gt;
Now the installation of the muondetector-daemon should be adapted to your setup:&lt;br /&gt;
&lt;br /&gt;
== Configuration ==&lt;br /&gt;
Edit the configuration file /etc/muondetector/muondetector.conf: &amp;lt;code&amp;gt;nano /etc/muondetector/muondetector.conf&amp;lt;/code&amp;gt;.&lt;br /&gt;
Change the settings according to your needs or leave them untouched, if unsure. The comments in the config file should guide you through any required modifications. One option, however, describes the placement of your detector. If you like, choose a stationID descriptor, eg.:&amp;lt;/br&amp;gt;&lt;br /&gt;
(file: &amp;lt;code&amp;gt;/etc/muondetector/muondetector.conf&amp;lt;/code&amp;gt;)&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;#&amp;lt;/nowiki&amp;gt; A unique identifier of the user's station&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;#&amp;lt;/nowiki&amp;gt; leave on default when the user operates a single station&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;#&amp;lt;/nowiki&amp;gt; all detectors of the user are distinguishable on the basis of this id&lt;br /&gt;
 stationID = &amp;quot;HomeOffice&amp;quot;&lt;br /&gt;
&lt;br /&gt;
(anything which best describes the location of your detector like e.g. &amp;quot;GarageSW&amp;quot;, &amp;quot;Bldg16Lab105&amp;quot;, &amp;quot;AtticNE&amp;quot;). If you operate only one stationary detector, it may as well be left on the default ID which is &amp;quot;0&amp;quot; (zero).&lt;br /&gt;
&lt;br /&gt;
'''Important''': When operating multiple detectors (under the same user account, see below) the stationID descriptor '''must''' be unique for each detector.&lt;/div&gt;</summary>
		<author><name>Dtreffenstaedt</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.muonpi.org/index.php?title=Raspberry_Pi_Setup&amp;diff=724</id>
		<title>Raspberry Pi Setup</title>
		<link rel="alternate" type="text/html" href="https://wiki.muonpi.org/index.php?title=Raspberry_Pi_Setup&amp;diff=724"/>
		<updated>2021-07-29T20:33:38Z</updated>

		<summary type="html">&lt;p&gt;Dtreffenstaedt: /* Guided Setup */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;(Requirements: Raspberry Pi Versions 0, 2, 3, 4 (with 40-pin GPIO connector) )&lt;br /&gt;
&lt;br /&gt;
This article will introduce to you, how to set up a Raspberry Pi from scratch with all software needed to run the detector hardware.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
DISCLAIMER: If not stated otherwise, this tutorial is developed on Raspian 10 Buster.&lt;br /&gt;
&lt;br /&gt;
__TOC__&lt;br /&gt;
= Guided Setup =&lt;br /&gt;
This is the recommended way of setting up the muondetector software.&lt;br /&gt;
&lt;br /&gt;
# Download the latest muondetector [https://archive.muonpi.org/image/latest/ image]. &amp;lt;br&amp;gt; If you want to use the detector headless or without graphical user interface, select the -lite version, otherwise select the -gui version.&lt;br /&gt;
# Install the image onto an SD-Card: &amp;lt;br&amp;gt; [https://www.raspberrypi.org/documentation/installation/installing-images/linux.md Linux]&amp;lt;br&amp;gt;[https://www.raspberrypi.org/documentation/installation/installing-images/mac.md MacOS]&amp;lt;br&amp;gt;[https://www.raspberrypi.org/documentation/installation/installing-images/windows.md Windows]&lt;br /&gt;
# (Optional) Setup [https://www.raspberrypi.org/documentation/configuration/wireless/headless.md headless]&lt;br /&gt;
# Boot your RaspberryPi&lt;br /&gt;
# Open a login console&lt;br /&gt;
## Per SSH, or&lt;br /&gt;
## Open a terminal on the RaspberryPi&lt;br /&gt;
# Follow the Prompts in the terminal&lt;br /&gt;
[[File:Screenshot 2021-07-29 22-32-37.png|thumb]]&lt;br /&gt;
&lt;br /&gt;
= Manual Setup =&lt;br /&gt;
== Prerequisities ==&lt;br /&gt;
You should have a fully configured RaspberryPi OS system and are ready-to-go to set up the MuonPi after following these steps:&lt;br /&gt;
=== Basic ===&lt;br /&gt;
# Create a fresh install of RaspberryPi OS according to the [https://www.raspberrypi.org/documentation/installation/installing-images/ tutorial]&lt;br /&gt;
# Update your system: &amp;lt;code&amp;gt;sudo apt update &amp;amp;&amp;amp; sudo apt upgrade&amp;lt;/code&amp;gt;&lt;br /&gt;
# Change the default password of the user &amp;lt;code&amp;gt;pi&amp;lt;/code&amp;gt;: &amp;lt;code&amp;gt;passwd&amp;lt;/code&amp;gt;&lt;br /&gt;
# (Optional) For an headless install (without monitor and mouse/keyboard), we recommend following this [https://www.raspberrypi.org/documentation/configuration/wireless/headless.md guide].&lt;br /&gt;
=== Interfaces ===&lt;br /&gt;
# '''Enable the serial interface''' (UART) and '''disable the login shell''' via the UART. In terminal: &amp;lt;code&amp;gt;sudo raspi-config&amp;lt;/code&amp;gt; &amp;lt;br&amp;gt; &amp;lt;code&amp;gt; 3 Interface Options -&amp;gt; P6 Serial Port -&amp;gt; No (login shell over serial) -&amp;gt; Yes (serial port)&amp;lt;/code&amp;gt;&lt;br /&gt;
# Enable I2C Interface: In terminal: &amp;lt;code&amp;gt;sudo raspi-config&amp;lt;/code&amp;gt; &amp;lt;br&amp;gt; &amp;lt;code&amp;gt; 3 Interface Options -&amp;gt; P5 I2C -&amp;gt; Yes (enable)&amp;lt;/code&amp;gt;&lt;br /&gt;
# (Optional) '''Enable SSH''': In a terminal: &amp;lt;code&amp;gt;sudo raspi-config&amp;lt;/code&amp;gt; &amp;lt;br&amp;gt; &amp;lt;code&amp;gt; 3 Interface Options -&amp;gt; P2 SSH -&amp;gt; Yes (enable) &amp;lt;/code&amp;gt;&lt;br /&gt;
=== Network ===&lt;br /&gt;
By default, the RPi is configured to automatically obtain an IP address when a connection is available and DHCP in your local network is active (this should be the case for most local/home networks).&lt;br /&gt;
If you prefer a fixed IP address in a local network: edit the file /etc/dhcpcd.conf. Use the template and uncomment the &amp;quot;Example Static IP Configuration&amp;quot; section with your desired IP address.&lt;br /&gt;
If network access should be established via WiFi, either configure it via the network configuration wizard in the graphical desktop environment (usually network icon in the system bar), or manually following these steps (either method is fine):&lt;br /&gt;
# Make sure that the wpa_supplicant package is installed:&amp;lt;code&amp;gt;sudo apt install wpasupplicant&amp;lt;/code&amp;gt;&lt;br /&gt;
# edit the file /etc/wpa_supplicant/wpa_supplicant.conf:&amp;lt;code&amp;gt;sudo nano /etc/wpa_supplicant/wpa_supplicant.conf&amp;lt;/code&amp;gt; &amp;lt;br&amp;gt; the configuration should look like this (non-relevant lines not shown):&lt;br /&gt;
 update_config=1&lt;br /&gt;
 country=DE&amp;lt;/br&amp;gt;&lt;br /&gt;
 network={&lt;br /&gt;
        ssid=&amp;quot;&amp;lt;your network ssid&amp;gt;&amp;quot;&lt;br /&gt;
        psk=&amp;quot;&amp;lt;your wifi password&amp;gt;&amp;quot;&lt;br /&gt;
        key_mgmt=WPA-PSK&lt;br /&gt;
 }&lt;br /&gt;
Enter your WiFi's SSID and password in the indicated fields.&lt;br /&gt;
Finally, restart the system that the changes take effect.&lt;br /&gt;
&lt;br /&gt;
== MuonPi software installation ==&lt;br /&gt;
(Requirements: a MuonPi board plugged onto the GPIO connector of the RPi)&lt;br /&gt;
* First, add the MuonPi apt repository to your system:&lt;br /&gt;
 sudo sh -c &amp;quot;curl https://archive.muonpi.org/muondetector.public.key | gpg --dearmor &amp;gt; /etc/apt/trusted.gpg.d/muondetector.gpg&amp;quot;&lt;br /&gt;
&lt;br /&gt;
 sudo sh -c &amp;quot;echo deb &amp;lt;nowiki&amp;gt;https://archive.muonpi.org/raspbian buster main&amp;lt;/nowiki&amp;gt; &amp;gt; /etc/apt/sources.list.d/muondetector.list&amp;quot;&lt;br /&gt;
* Update the repositories:&lt;br /&gt;
 sudo apt update&lt;br /&gt;
* Install the muondetector-daemon package and it's dependencies:&lt;br /&gt;
 sudo apt install muondetector-daemon&lt;br /&gt;
* Optional: install the Graphical User Interface (GUI) program to monitor and control the MuonPi locally.&lt;br /&gt;
 sudo apt install muondetector-gui&lt;br /&gt;
{{Note|Note that if you want to use the gui on the raspberrypi, it is recommended to use the Raspberrypi OS with Desktop preinstalled.|reminder}}&lt;br /&gt;
&lt;br /&gt;
* The GUI can connect to the MuonPi over network as well, so it can be installed on other computers in the local network. Currently, binary packages for Raspbian, Ubuntu and Windows are available. The Linux-based versions can be installed from the package repositories (execute steps 1,2 and 4 from this list). The Windows program can be downloaded directly from https://archive.muonpi.org and installed by simply unpacking the zip-archive.&lt;br /&gt;
&lt;br /&gt;
== Login with your user credentials (only once) ==&lt;br /&gt;
&lt;br /&gt;
Before taking the MuonPi detector into operation, you have to set your credentials for publishing data messages to the server via [http://mqtt.org/ MQTT] protocol on first start. This can be managed in two ways, one secure and one where your credentials appear as plain text in the config file:&lt;br /&gt;
==== The Recommended Method ====&lt;br /&gt;
In a bash shell on the MuonPi, run the command &amp;lt;code&amp;gt;muondetector-login&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
'''Note that for the software version 2.0.0 the command to run is &amp;lt;code&amp;gt;sudo runuser -u muonuser -- muondetector-login&amp;lt;/code&amp;gt; instead.'''&lt;br /&gt;
&lt;br /&gt;
When asked for sudo access, enter the password of your raspberry pi user.&lt;br /&gt;
When asked for your user name and password, enter the credentials supplied to you by a MounPi.org official. The credentials are stored (not in clear text) for all further telemetry connections.&lt;br /&gt;
&lt;br /&gt;
==== Alternative Method ====&lt;br /&gt;
Uncomment the &amp;lt;code&amp;gt;mqtt_user&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;mqtt_password&amp;lt;/code&amp;gt; options in &amp;lt;code&amp;gt;/etc/muondetector/muondetector.conf&amp;lt;/code&amp;gt; and type your personal username and password into these fields between the quotation marks. Be aware, that these credentials are written in plain text into this file and can be retrieved by malware attacks. However, if you operate a station inside a home network and set up a strong ssh authentication (see above), you should be relatively safe.&lt;br /&gt;
&lt;br /&gt;
== Start the Daemon ==&lt;br /&gt;
The daemon should be enabled and started automatically after installation and on every reboot. However, when changing items in the config file, the changes have to be made effective by a daemon restart:&lt;br /&gt;
 sudo systemctl restart muondetector-daemon.service&lt;br /&gt;
&lt;br /&gt;
To see the current status of the daemon service use following command:&lt;br /&gt;
 systemctl status muondetector-daemon.service&lt;br /&gt;
&lt;br /&gt;
It can happen that the status shows 'failed' in red, usually a restart of the daemon service resolves this.&lt;br /&gt;
&lt;br /&gt;
If the service should not enable itself by default the status shows a grey 'not loaded'. To enable the service use:&lt;br /&gt;
 sudo systemctl enable muondetector-daemon.service&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
= Configuration and Start =&lt;br /&gt;
&lt;br /&gt;
Now the installation of the muondetector-daemon should be adapted to your setup:&lt;br /&gt;
&lt;br /&gt;
== Configuration ==&lt;br /&gt;
Edit the configuration file /etc/muondetector/muondetector.conf: &amp;lt;code&amp;gt;nano /etc/muondetector/muondetector.conf&amp;lt;/code&amp;gt;.&lt;br /&gt;
Change the settings according to your needs or leave them untouched, if unsure. The comments in the config file should guide you through any required modifications. One option, however, describes the placement of your detector. If you like, choose a stationID descriptor, eg.:&amp;lt;/br&amp;gt;&lt;br /&gt;
(file: &amp;lt;code&amp;gt;/etc/muondetector/muondetector.conf&amp;lt;/code&amp;gt;)&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;#&amp;lt;/nowiki&amp;gt; A unique identifier of the user's station&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;#&amp;lt;/nowiki&amp;gt; leave on default when the user operates a single station&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;#&amp;lt;/nowiki&amp;gt; all detectors of the user are distinguishable on the basis of this id&lt;br /&gt;
 stationID = &amp;quot;HomeOffice&amp;quot;&lt;br /&gt;
&lt;br /&gt;
(anything which best describes the location of your detector like e.g. &amp;quot;GarageSW&amp;quot;, &amp;quot;Bldg16Lab105&amp;quot;, &amp;quot;AtticNE&amp;quot;). If you operate only one stationary detector, it may as well be left on the default ID which is &amp;quot;0&amp;quot; (zero).&lt;br /&gt;
&lt;br /&gt;
'''Important''': When operating multiple detectors (under the same user account, see below) the stationID descriptor '''must''' be unique for each detector.&lt;/div&gt;</summary>
		<author><name>Dtreffenstaedt</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.muonpi.org/index.php?title=File:Screenshot_2021-07-29_22-32-37.png&amp;diff=723</id>
		<title>File:Screenshot 2021-07-29 22-32-37.png</title>
		<link rel="alternate" type="text/html" href="https://wiki.muonpi.org/index.php?title=File:Screenshot_2021-07-29_22-32-37.png&amp;diff=723"/>
		<updated>2021-07-29T20:33:28Z</updated>

		<summary type="html">&lt;p&gt;Dtreffenstaedt: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;MuonPi setup script&lt;/div&gt;</summary>
		<author><name>Dtreffenstaedt</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.muonpi.org/index.php?title=Raspberry_Pi_Setup&amp;diff=722</id>
		<title>Raspberry Pi Setup</title>
		<link rel="alternate" type="text/html" href="https://wiki.muonpi.org/index.php?title=Raspberry_Pi_Setup&amp;diff=722"/>
		<updated>2021-07-29T20:06:06Z</updated>

		<summary type="html">&lt;p&gt;Dtreffenstaedt: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;(Requirements: Raspberry Pi Versions 0, 2, 3, 4 (with 40-pin GPIO connector) )&lt;br /&gt;
&lt;br /&gt;
This article will introduce to you, how to set up a Raspberry Pi from scratch with all software needed to run the detector hardware.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
DISCLAIMER: If not stated otherwise, this tutorial is developed on Raspian 10 Buster.&lt;br /&gt;
&lt;br /&gt;
__TOC__&lt;br /&gt;
= Guided Setup =&lt;br /&gt;
&lt;br /&gt;
= Manual Setup =&lt;br /&gt;
== Prerequisities ==&lt;br /&gt;
You should have a fully configured RaspberryPi OS system and are ready-to-go to set up the MuonPi after following these steps:&lt;br /&gt;
=== Basic ===&lt;br /&gt;
# Create a fresh install of RaspberryPi OS according to the [https://www.raspberrypi.org/documentation/installation/installing-images/ tutorial]&lt;br /&gt;
# Update your system: &amp;lt;code&amp;gt;sudo apt update &amp;amp;&amp;amp; sudo apt upgrade&amp;lt;/code&amp;gt;&lt;br /&gt;
# Change the default password of the user &amp;lt;code&amp;gt;pi&amp;lt;/code&amp;gt;: &amp;lt;code&amp;gt;passwd&amp;lt;/code&amp;gt;&lt;br /&gt;
# (Optional) For an headless install (without monitor and mouse/keyboard), we recommend following this [https://www.raspberrypi.org/documentation/configuration/wireless/headless.md guide].&lt;br /&gt;
=== Interfaces ===&lt;br /&gt;
# '''Enable the serial interface''' (UART) and '''disable the login shell''' via the UART. In terminal: &amp;lt;code&amp;gt;sudo raspi-config&amp;lt;/code&amp;gt; &amp;lt;br&amp;gt; &amp;lt;code&amp;gt; 3 Interface Options -&amp;gt; P6 Serial Port -&amp;gt; No (login shell over serial) -&amp;gt; Yes (serial port)&amp;lt;/code&amp;gt;&lt;br /&gt;
# Enable I2C Interface: In terminal: &amp;lt;code&amp;gt;sudo raspi-config&amp;lt;/code&amp;gt; &amp;lt;br&amp;gt; &amp;lt;code&amp;gt; 3 Interface Options -&amp;gt; P5 I2C -&amp;gt; Yes (enable)&amp;lt;/code&amp;gt;&lt;br /&gt;
# (Optional) '''Enable SSH''': In a terminal: &amp;lt;code&amp;gt;sudo raspi-config&amp;lt;/code&amp;gt; &amp;lt;br&amp;gt; &amp;lt;code&amp;gt; 3 Interface Options -&amp;gt; P2 SSH -&amp;gt; Yes (enable) &amp;lt;/code&amp;gt;&lt;br /&gt;
=== Network ===&lt;br /&gt;
By default, the RPi is configured to automatically obtain an IP address when a connection is available and DHCP in your local network is active (this should be the case for most local/home networks).&lt;br /&gt;
If you prefer a fixed IP address in a local network: edit the file /etc/dhcpcd.conf. Use the template and uncomment the &amp;quot;Example Static IP Configuration&amp;quot; section with your desired IP address.&lt;br /&gt;
If network access should be established via WiFi, either configure it via the network configuration wizard in the graphical desktop environment (usually network icon in the system bar), or manually following these steps (either method is fine):&lt;br /&gt;
# Make sure that the wpa_supplicant package is installed:&amp;lt;code&amp;gt;sudo apt install wpasupplicant&amp;lt;/code&amp;gt;&lt;br /&gt;
# edit the file /etc/wpa_supplicant/wpa_supplicant.conf:&amp;lt;code&amp;gt;sudo nano /etc/wpa_supplicant/wpa_supplicant.conf&amp;lt;/code&amp;gt; &amp;lt;br&amp;gt; the configuration should look like this (non-relevant lines not shown):&lt;br /&gt;
 update_config=1&lt;br /&gt;
 country=DE&amp;lt;/br&amp;gt;&lt;br /&gt;
 network={&lt;br /&gt;
        ssid=&amp;quot;&amp;lt;your network ssid&amp;gt;&amp;quot;&lt;br /&gt;
        psk=&amp;quot;&amp;lt;your wifi password&amp;gt;&amp;quot;&lt;br /&gt;
        key_mgmt=WPA-PSK&lt;br /&gt;
 }&lt;br /&gt;
Enter your WiFi's SSID and password in the indicated fields.&lt;br /&gt;
Finally, restart the system that the changes take effect.&lt;br /&gt;
&lt;br /&gt;
== MuonPi software installation ==&lt;br /&gt;
(Requirements: a MuonPi board plugged onto the GPIO connector of the RPi)&lt;br /&gt;
* First, add the MuonPi apt repository to your system:&lt;br /&gt;
 sudo sh -c &amp;quot;curl https://archive.muonpi.org/muondetector.public.key | gpg --dearmor &amp;gt; /etc/apt/trusted.gpg.d/muondetector.gpg&amp;quot;&lt;br /&gt;
&lt;br /&gt;
 sudo sh -c &amp;quot;echo deb &amp;lt;nowiki&amp;gt;https://archive.muonpi.org/raspbian buster main&amp;lt;/nowiki&amp;gt; &amp;gt; /etc/apt/sources.list.d/muondetector.list&amp;quot;&lt;br /&gt;
* Update the repositories:&lt;br /&gt;
 sudo apt update&lt;br /&gt;
* Install the muondetector-daemon package and it's dependencies:&lt;br /&gt;
 sudo apt install muondetector-daemon&lt;br /&gt;
* Optional: install the Graphical User Interface (GUI) program to monitor and control the MuonPi locally.&lt;br /&gt;
 sudo apt install muondetector-gui&lt;br /&gt;
{{Note|Note that if you want to use the gui on the raspberrypi, it is recommended to use the Raspberrypi OS with Desktop preinstalled.|reminder}}&lt;br /&gt;
&lt;br /&gt;
* The GUI can connect to the MuonPi over network as well, so it can be installed on other computers in the local network. Currently, binary packages for Raspbian, Ubuntu and Windows are available. The Linux-based versions can be installed from the package repositories (execute steps 1,2 and 4 from this list). The Windows program can be downloaded directly from https://archive.muonpi.org and installed by simply unpacking the zip-archive.&lt;br /&gt;
&lt;br /&gt;
== Login with your user credentials (only once) ==&lt;br /&gt;
&lt;br /&gt;
Before taking the MuonPi detector into operation, you have to set your credentials for publishing data messages to the server via [http://mqtt.org/ MQTT] protocol on first start. This can be managed in two ways, one secure and one where your credentials appear as plain text in the config file:&lt;br /&gt;
==== The Recommended Method ====&lt;br /&gt;
In a bash shell on the MuonPi, run the command &amp;lt;code&amp;gt;muondetector-login&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
'''Note that for the software version 2.0.0 the command to run is &amp;lt;code&amp;gt;sudo runuser -u muonuser -- muondetector-login&amp;lt;/code&amp;gt; instead.'''&lt;br /&gt;
&lt;br /&gt;
When asked for sudo access, enter the password of your raspberry pi user.&lt;br /&gt;
When asked for your user name and password, enter the credentials supplied to you by a MounPi.org official. The credentials are stored (not in clear text) for all further telemetry connections.&lt;br /&gt;
&lt;br /&gt;
==== Alternative Method ====&lt;br /&gt;
Uncomment the &amp;lt;code&amp;gt;mqtt_user&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;mqtt_password&amp;lt;/code&amp;gt; options in &amp;lt;code&amp;gt;/etc/muondetector/muondetector.conf&amp;lt;/code&amp;gt; and type your personal username and password into these fields between the quotation marks. Be aware, that these credentials are written in plain text into this file and can be retrieved by malware attacks. However, if you operate a station inside a home network and set up a strong ssh authentication (see above), you should be relatively safe.&lt;br /&gt;
&lt;br /&gt;
== Start the Daemon ==&lt;br /&gt;
The daemon should be enabled and started automatically after installation and on every reboot. However, when changing items in the config file, the changes have to be made effective by a daemon restart:&lt;br /&gt;
 sudo systemctl restart muondetector-daemon.service&lt;br /&gt;
&lt;br /&gt;
To see the current status of the daemon service use following command:&lt;br /&gt;
 systemctl status muondetector-daemon.service&lt;br /&gt;
&lt;br /&gt;
It can happen that the status shows 'failed' in red, usually a restart of the daemon service resolves this.&lt;br /&gt;
&lt;br /&gt;
If the service should not enable itself by default the status shows a grey 'not loaded'. To enable the service use:&lt;br /&gt;
 sudo systemctl enable muondetector-daemon.service&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
= Configuration and Start =&lt;br /&gt;
&lt;br /&gt;
Now the installation of the muondetector-daemon should be adapted to your setup:&lt;br /&gt;
&lt;br /&gt;
== Configuration ==&lt;br /&gt;
Edit the configuration file /etc/muondetector/muondetector.conf: &amp;lt;code&amp;gt;nano /etc/muondetector/muondetector.conf&amp;lt;/code&amp;gt;.&lt;br /&gt;
Change the settings according to your needs or leave them untouched, if unsure. The comments in the config file should guide you through any required modifications. One option, however, describes the placement of your detector. If you like, choose a stationID descriptor, eg.:&amp;lt;/br&amp;gt;&lt;br /&gt;
(file: &amp;lt;code&amp;gt;/etc/muondetector/muondetector.conf&amp;lt;/code&amp;gt;)&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;#&amp;lt;/nowiki&amp;gt; A unique identifier of the user's station&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;#&amp;lt;/nowiki&amp;gt; leave on default when the user operates a single station&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;#&amp;lt;/nowiki&amp;gt; all detectors of the user are distinguishable on the basis of this id&lt;br /&gt;
 stationID = &amp;quot;HomeOffice&amp;quot;&lt;br /&gt;
&lt;br /&gt;
(anything which best describes the location of your detector like e.g. &amp;quot;GarageSW&amp;quot;, &amp;quot;Bldg16Lab105&amp;quot;, &amp;quot;AtticNE&amp;quot;). If you operate only one stationary detector, it may as well be left on the default ID which is &amp;quot;0&amp;quot; (zero).&lt;br /&gt;
&lt;br /&gt;
'''Important''': When operating multiple detectors (under the same user account, see below) the stationID descriptor '''must''' be unique for each detector.&lt;/div&gt;</summary>
		<author><name>Dtreffenstaedt</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.muonpi.org/index.php?title=Raspberry_Pi_Setup&amp;diff=721</id>
		<title>Raspberry Pi Setup</title>
		<link rel="alternate" type="text/html" href="https://wiki.muonpi.org/index.php?title=Raspberry_Pi_Setup&amp;diff=721"/>
		<updated>2021-07-29T20:04:40Z</updated>

		<summary type="html">&lt;p&gt;Dtreffenstaedt: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;(Requirements: Raspberry Pi Versions 0, 2, 3, 4 (with 40-pin GPIO connector) )&lt;br /&gt;
&lt;br /&gt;
This article will introduce to you, how to set up a Raspberry Pi from scratch with all software needed to run the detector hardware.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
DISCLAIMER: If not stated otherwise, this tutorial is developed on Raspian 10 Buster.&lt;br /&gt;
&lt;br /&gt;
__TOC__&lt;br /&gt;
= Guided Setup =&lt;br /&gt;
&lt;br /&gt;
= Manual Setup =&lt;br /&gt;
== Prerequisities ==&lt;br /&gt;
You should have a fully configured RaspberryPi OS system and are ready-to-go to set up the MuonPi after following these steps:&lt;br /&gt;
=== Basic ===&lt;br /&gt;
# Create a fresh install of RaspberryPi OS according to the [https://www.raspberrypi.org/documentation/installation/installing-images/ tutorial]&lt;br /&gt;
# Update your system: &amp;lt;code&amp;gt;sudo apt update &amp;amp;&amp;amp; sudo apt upgrade&amp;lt;/code&amp;gt;&lt;br /&gt;
# Change the default password of the user &amp;lt;code&amp;gt;pi&amp;lt;/code&amp;gt;: &amp;lt;code&amp;gt;passwd&amp;lt;/code&amp;gt;&lt;br /&gt;
# (Optional) For an headless install (without monitor and mouse/keyboard), we recommend following this [https://www.raspberrypi.org/documentation/configuration/wireless/headless.md guide].&lt;br /&gt;
=== Interfaces ===&lt;br /&gt;
# '''Enable the serial interface''' (UART) and '''disable the login shell''' via the UART. In terminal: &amp;lt;code&amp;gt;sudo raspi-config&amp;lt;/code&amp;gt; &amp;lt;br&amp;gt; &amp;lt;code&amp;gt; 3 Interface Options -&amp;gt; P6 Serial Port -&amp;gt; No (login shell over serial) -&amp;gt; Yes (serial port)&amp;lt;/code&amp;gt;&lt;br /&gt;
# Enable I2C Interface: In terminal: &amp;lt;code&amp;gt;sudo raspi-config&amp;lt;/code&amp;gt; &amp;lt;br&amp;gt; &amp;lt;code&amp;gt; 3 Interface Options -&amp;gt; P5 I2C -&amp;gt; Yes (enable)&amp;lt;/code&amp;gt;&lt;br /&gt;
# (Optional) '''Enable SSH''': In a terminal: &amp;lt;code&amp;gt;sudo raspi-config&amp;lt;/code&amp;gt; &amp;lt;br&amp;gt; &amp;lt;code&amp;gt; 3 Interface Options -&amp;gt; P2 SSH -&amp;gt; Yes (enable) &amp;lt;/code&amp;gt;&lt;br /&gt;
=== Network ===&lt;br /&gt;
By default, the RPi is configured to automatically obtain an IP address when a connection is available and DHCP in your local network is active (this should be the case for most local/home networks).&lt;br /&gt;
If you prefer a fixed IP address in a local network: edit the file /etc/dhcpcd.conf. Use the template and uncomment the &amp;quot;Example Static IP Configuration&amp;quot; section with your desired IP address.&lt;br /&gt;
If network access should be established via WiFi, either configure it via the network configuration wizard in the graphical desktop environment (usually network icon in the system bar), or manually following these steps (either method is fine):&lt;br /&gt;
# Make sure that the wpa_supplicant package is installed:&amp;lt;code&amp;gt;sudo apt install wpasupplicant&amp;lt;/code&amp;gt;&lt;br /&gt;
# edit the file /etc/wpa_supplicant/wpa_supplicant.conf:&amp;lt;code&amp;gt;sudo nano /etc/wpa_supplicant/wpa_supplicant.conf&amp;lt;/code&amp;gt; &amp;lt;br&amp;gt; the configuration should look like this (non-relevant lines not shown):&lt;br /&gt;
 update_config=1&lt;br /&gt;
 country=DE&amp;lt;/br&amp;gt;&lt;br /&gt;
 network={&lt;br /&gt;
        ssid=&amp;quot;&amp;lt;your network ssid&amp;gt;&amp;quot;&lt;br /&gt;
        psk=&amp;quot;&amp;lt;your wifi password&amp;gt;&amp;quot;&lt;br /&gt;
        key_mgmt=WPA-PSK&lt;br /&gt;
 }&lt;br /&gt;
Enter your WiFi's SSID and password in the indicated fields.&lt;br /&gt;
Finally, restart the system that the changes take effect.&lt;br /&gt;
&lt;br /&gt;
== MuonPi software installation ==&lt;br /&gt;
(Requirements: a MuonPi board plugged onto the GPIO connector of the RPi)&lt;br /&gt;
* First, add the MuonPi apt repository to your system:&lt;br /&gt;
 sudo sh -c &amp;quot;curl https://archive.muonpi.org/muondetector.public.key | gpg --dearmor &amp;gt; /etc/apt/trusted.gpg.d/muondetector.gpg&amp;quot;&lt;br /&gt;
&lt;br /&gt;
 sudo sh -c &amp;quot;echo deb &amp;lt;nowiki&amp;gt;https://archive.muonpi.org/raspbian buster main&amp;lt;/nowiki&amp;gt; &amp;gt; /etc/apt/sources.list.d/muondetector.list&amp;quot;&lt;br /&gt;
* Update the repositories:&lt;br /&gt;
 sudo apt update&lt;br /&gt;
* Install the muondetector-daemon package and it's dependencies:&lt;br /&gt;
 sudo apt install muondetector-daemon&lt;br /&gt;
* Optional: install the Graphical User Interface (GUI) program to monitor and control the MuonPi locally.&lt;br /&gt;
 sudo apt install muondetector-gui&lt;br /&gt;
{{Note|Note that if you want to use the gui on the raspberrypi, it is recommended to use the Raspberrypi OS with Desktop preinstalled.|reminder}}&lt;br /&gt;
&lt;br /&gt;
* The GUI can connect to the MuonPi over network as well, so it can be installed on other computers in the local network. Currently, binary packages for Raspbian, Ubuntu and Windows are available. The Linux-based versions can be installed from the package repositories (execute steps 1,2 and 4 from this list). The Windows program can be downloaded directly from https://archive.muonpi.org and installed by simply unpacking the zip-archive.&lt;br /&gt;
&lt;br /&gt;
= Configuration and Start =&lt;br /&gt;
&lt;br /&gt;
Now the installation of the muondetector-daemon should be adapted to your setup:&lt;br /&gt;
&lt;br /&gt;
== Configuration ==&lt;br /&gt;
Edit the configuration file /etc/muondetector/muondetector.conf: &amp;lt;code&amp;gt;nano /etc/muondetector/muondetector.conf&amp;lt;/code&amp;gt;.&lt;br /&gt;
Change the settings according to your needs or leave them untouched, if unsure. The comments in the config file should guide you through any required modifications. One option, however, describes the placement of your detector. If you like, choose a stationID descriptor, eg.:&amp;lt;/br&amp;gt;&lt;br /&gt;
(file: &amp;lt;code&amp;gt;/etc/muondetector/muondetector.conf&amp;lt;/code&amp;gt;)&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;#&amp;lt;/nowiki&amp;gt; A unique identifier of the user's station&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;#&amp;lt;/nowiki&amp;gt; leave on default when the user operates a single station&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;#&amp;lt;/nowiki&amp;gt; all detectors of the user are distinguishable on the basis of this id&lt;br /&gt;
 stationID = &amp;quot;HomeOffice&amp;quot;&lt;br /&gt;
&lt;br /&gt;
(anything which best describes the location of your detector like e.g. &amp;quot;GarageSW&amp;quot;, &amp;quot;Bldg16Lab105&amp;quot;, &amp;quot;AtticNE&amp;quot;). If you operate only one stationary detector, it may as well be left on the default ID which is &amp;quot;0&amp;quot; (zero).&lt;br /&gt;
&lt;br /&gt;
'''Important''': When operating multiple detectors (under the same user account, see below) the stationID descriptor '''must''' be unique for each detector.&lt;br /&gt;
&lt;br /&gt;
== Login with your user credentials (only once) ==&lt;br /&gt;
&lt;br /&gt;
Before taking the MuonPi detector into operation, you have to set your credentials for publishing data messages to the server via [http://mqtt.org/ MQTT] protocol on first start. This can be managed in two ways, one secure and one where your credentials appear as plain text in the config file:&lt;br /&gt;
==== The Recommended Method ====&lt;br /&gt;
In a bash shell on the MuonPi, run the command &amp;lt;code&amp;gt;muondetector-login&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
'''Note that for the software version 2.0.0 the command to run is &amp;lt;code&amp;gt;sudo runuser -u muonuser -- muondetector-login&amp;lt;/code&amp;gt; instead.'''&lt;br /&gt;
&lt;br /&gt;
When asked for sudo access, enter the password of your raspberry pi user.&lt;br /&gt;
When asked for your user name and password, enter the credentials supplied to you by a MounPi.org official. The credentials are stored (not in clear text) for all further telemetry connections.&lt;br /&gt;
&lt;br /&gt;
==== Alternative Method ====&lt;br /&gt;
Uncomment the &amp;lt;code&amp;gt;mqtt_user&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;mqtt_password&amp;lt;/code&amp;gt; options in &amp;lt;code&amp;gt;/etc/muondetector/muondetector.conf&amp;lt;/code&amp;gt; and type your personal username and password into these fields between the quotation marks. Be aware, that these credentials are written in plain text into this file and can be retrieved by malware attacks. However, if you operate a station inside a home network and set up a strong ssh authentication (see above), you should be relatively safe.&lt;br /&gt;
&lt;br /&gt;
== Start the Daemon ==&lt;br /&gt;
The daemon should be enabled and started automatically after installation and on every reboot. However, when changing items in the config file, the changes have to be made effective by a daemon restart:&lt;br /&gt;
 sudo systemctl restart muondetector-daemon.service&lt;br /&gt;
&lt;br /&gt;
To see the current status of the daemon service use following command:&lt;br /&gt;
 systemctl status muondetector-daemon.service&lt;br /&gt;
&lt;br /&gt;
It can happen that the status shows 'failed' in red, usually a restart of the daemon service resolves this.&lt;br /&gt;
&lt;br /&gt;
If the service should not enable itself by default the status shows a grey 'not loaded'. To enable the service use:&lt;br /&gt;
 sudo systemctl enable muondetector-daemon.service&lt;/div&gt;</summary>
		<author><name>Dtreffenstaedt</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.muonpi.org/index.php?title=Raspberry_Pi_Setup&amp;diff=720</id>
		<title>Raspberry Pi Setup</title>
		<link rel="alternate" type="text/html" href="https://wiki.muonpi.org/index.php?title=Raspberry_Pi_Setup&amp;diff=720"/>
		<updated>2021-07-29T20:04:15Z</updated>

		<summary type="html">&lt;p&gt;Dtreffenstaedt: /* Prerequisities */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This article will introduce to you, how to set up a Raspberry Pi from scratch with all software needed to run the detector hardware.&lt;br /&gt;
&lt;br /&gt;
DISCLAIMER: If not stated otherwise, this tutorial is developed on Raspian 10 Buster.&lt;br /&gt;
&lt;br /&gt;
__TOC__&lt;br /&gt;
= Guided Setup =&lt;br /&gt;
&lt;br /&gt;
= Manual Setup =&lt;br /&gt;
== Prerequisities ==&lt;br /&gt;
You should have a fully configured RaspberryPi OS system and are ready-to-go to set up the MuonPi after following these steps:&lt;br /&gt;
=== Basic ===&lt;br /&gt;
# Create a fresh install of RaspberryPi OS according to the [https://www.raspberrypi.org/documentation/installation/installing-images/ tutorial]&lt;br /&gt;
# Update your system: &amp;lt;code&amp;gt;sudo apt update &amp;amp;&amp;amp; sudo apt upgrade&amp;lt;/code&amp;gt;&lt;br /&gt;
# Change the default password of the user &amp;lt;code&amp;gt;pi&amp;lt;/code&amp;gt;: &amp;lt;code&amp;gt;passwd&amp;lt;/code&amp;gt;&lt;br /&gt;
# (Optional) For an headless install (without monitor and mouse/keyboard), we recommend following this [https://www.raspberrypi.org/documentation/configuration/wireless/headless.md guide].&lt;br /&gt;
=== Interfaces ===&lt;br /&gt;
# '''Enable the serial interface''' (UART) and '''disable the login shell''' via the UART. In terminal: &amp;lt;code&amp;gt;sudo raspi-config&amp;lt;/code&amp;gt; &amp;lt;br&amp;gt; &amp;lt;code&amp;gt; 3 Interface Options -&amp;gt; P6 Serial Port -&amp;gt; No (login shell over serial) -&amp;gt; Yes (serial port)&amp;lt;/code&amp;gt;&lt;br /&gt;
# Enable I2C Interface: In terminal: &amp;lt;code&amp;gt;sudo raspi-config&amp;lt;/code&amp;gt; &amp;lt;br&amp;gt; &amp;lt;code&amp;gt; 3 Interface Options -&amp;gt; P5 I2C -&amp;gt; Yes (enable)&amp;lt;/code&amp;gt;&lt;br /&gt;
# (Optional) '''Enable SSH''': In a terminal: &amp;lt;code&amp;gt;sudo raspi-config&amp;lt;/code&amp;gt; &amp;lt;br&amp;gt; &amp;lt;code&amp;gt; 3 Interface Options -&amp;gt; P2 SSH -&amp;gt; Yes (enable) &amp;lt;/code&amp;gt;&lt;br /&gt;
=== Network ===&lt;br /&gt;
By default, the RPi is configured to automatically obtain an IP address when a connection is available and DHCP in your local network is active (this should be the case for most local/home networks).&lt;br /&gt;
If you prefer a fixed IP address in a local network: edit the file /etc/dhcpcd.conf. Use the template and uncomment the &amp;quot;Example Static IP Configuration&amp;quot; section with your desired IP address.&lt;br /&gt;
If network access should be established via WiFi, either configure it via the network configuration wizard in the graphical desktop environment (usually network icon in the system bar), or manually following these steps (either method is fine):&lt;br /&gt;
# Make sure that the wpa_supplicant package is installed:&amp;lt;code&amp;gt;sudo apt install wpasupplicant&amp;lt;/code&amp;gt;&lt;br /&gt;
# edit the file /etc/wpa_supplicant/wpa_supplicant.conf:&amp;lt;code&amp;gt;sudo nano /etc/wpa_supplicant/wpa_supplicant.conf&amp;lt;/code&amp;gt; &amp;lt;br&amp;gt; the configuration should look like this (non-relevant lines not shown):&lt;br /&gt;
 update_config=1&lt;br /&gt;
 country=DE&amp;lt;/br&amp;gt;&lt;br /&gt;
 network={&lt;br /&gt;
        ssid=&amp;quot;&amp;lt;your network ssid&amp;gt;&amp;quot;&lt;br /&gt;
        psk=&amp;quot;&amp;lt;your wifi password&amp;gt;&amp;quot;&lt;br /&gt;
        key_mgmt=WPA-PSK&lt;br /&gt;
 }&lt;br /&gt;
Enter your WiFi's SSID and password in the indicated fields.&lt;br /&gt;
Finally, restart the system that the changes take effect.&lt;br /&gt;
&lt;br /&gt;
== MuonPi software installation ==&lt;br /&gt;
(Requirements: a MuonPi board plugged onto the GPIO connector of the RPi)&lt;br /&gt;
* First, add the MuonPi apt repository to your system:&lt;br /&gt;
 sudo sh -c &amp;quot;curl https://archive.muonpi.org/muondetector.public.key | gpg --dearmor &amp;gt; /etc/apt/trusted.gpg.d/muondetector.gpg&amp;quot;&lt;br /&gt;
&lt;br /&gt;
 sudo sh -c &amp;quot;echo deb &amp;lt;nowiki&amp;gt;https://archive.muonpi.org/raspbian buster main&amp;lt;/nowiki&amp;gt; &amp;gt; /etc/apt/sources.list.d/muondetector.list&amp;quot;&lt;br /&gt;
* Update the repositories:&lt;br /&gt;
 sudo apt update&lt;br /&gt;
* Install the muondetector-daemon package and it's dependencies:&lt;br /&gt;
 sudo apt install muondetector-daemon&lt;br /&gt;
* Optional: install the Graphical User Interface (GUI) program to monitor and control the MuonPi locally.&lt;br /&gt;
 sudo apt install muondetector-gui&lt;br /&gt;
{{Note|Note that if you want to use the gui on the raspberrypi, it is recommended to use the Raspberrypi OS with Desktop preinstalled.|reminder}}&lt;br /&gt;
&lt;br /&gt;
* The GUI can connect to the MuonPi over network as well, so it can be installed on other computers in the local network. Currently, binary packages for Raspbian, Ubuntu and Windows are available. The Linux-based versions can be installed from the package repositories (execute steps 1,2 and 4 from this list). The Windows program can be downloaded directly from https://archive.muonpi.org and installed by simply unpacking the zip-archive.&lt;br /&gt;
&lt;br /&gt;
= Configuration and Start =&lt;br /&gt;
&lt;br /&gt;
Now the installation of the muondetector-daemon should be adapted to your setup:&lt;br /&gt;
&lt;br /&gt;
== Configuration ==&lt;br /&gt;
Edit the configuration file /etc/muondetector/muondetector.conf: &amp;lt;code&amp;gt;nano /etc/muondetector/muondetector.conf&amp;lt;/code&amp;gt;.&lt;br /&gt;
Change the settings according to your needs or leave them untouched, if unsure. The comments in the config file should guide you through any required modifications. One option, however, describes the placement of your detector. If you like, choose a stationID descriptor, eg.:&amp;lt;/br&amp;gt;&lt;br /&gt;
(file: &amp;lt;code&amp;gt;/etc/muondetector/muondetector.conf&amp;lt;/code&amp;gt;)&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;#&amp;lt;/nowiki&amp;gt; A unique identifier of the user's station&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;#&amp;lt;/nowiki&amp;gt; leave on default when the user operates a single station&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;#&amp;lt;/nowiki&amp;gt; all detectors of the user are distinguishable on the basis of this id&lt;br /&gt;
 stationID = &amp;quot;HomeOffice&amp;quot;&lt;br /&gt;
&lt;br /&gt;
(anything which best describes the location of your detector like e.g. &amp;quot;GarageSW&amp;quot;, &amp;quot;Bldg16Lab105&amp;quot;, &amp;quot;AtticNE&amp;quot;). If you operate only one stationary detector, it may as well be left on the default ID which is &amp;quot;0&amp;quot; (zero).&lt;br /&gt;
&lt;br /&gt;
'''Important''': When operating multiple detectors (under the same user account, see below) the stationID descriptor '''must''' be unique for each detector.&lt;br /&gt;
&lt;br /&gt;
== Login with your user credentials (only once) ==&lt;br /&gt;
&lt;br /&gt;
Before taking the MuonPi detector into operation, you have to set your credentials for publishing data messages to the server via [http://mqtt.org/ MQTT] protocol on first start. This can be managed in two ways, one secure and one where your credentials appear as plain text in the config file:&lt;br /&gt;
==== The Recommended Method ====&lt;br /&gt;
In a bash shell on the MuonPi, run the command &amp;lt;code&amp;gt;muondetector-login&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
'''Note that for the software version 2.0.0 the command to run is &amp;lt;code&amp;gt;sudo runuser -u muonuser -- muondetector-login&amp;lt;/code&amp;gt; instead.'''&lt;br /&gt;
&lt;br /&gt;
When asked for sudo access, enter the password of your raspberry pi user.&lt;br /&gt;
When asked for your user name and password, enter the credentials supplied to you by a MounPi.org official. The credentials are stored (not in clear text) for all further telemetry connections.&lt;br /&gt;
&lt;br /&gt;
==== Alternative Method ====&lt;br /&gt;
Uncomment the &amp;lt;code&amp;gt;mqtt_user&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;mqtt_password&amp;lt;/code&amp;gt; options in &amp;lt;code&amp;gt;/etc/muondetector/muondetector.conf&amp;lt;/code&amp;gt; and type your personal username and password into these fields between the quotation marks. Be aware, that these credentials are written in plain text into this file and can be retrieved by malware attacks. However, if you operate a station inside a home network and set up a strong ssh authentication (see above), you should be relatively safe.&lt;br /&gt;
&lt;br /&gt;
== Start the Daemon ==&lt;br /&gt;
The daemon should be enabled and started automatically after installation and on every reboot. However, when changing items in the config file, the changes have to be made effective by a daemon restart:&lt;br /&gt;
 sudo systemctl restart muondetector-daemon.service&lt;br /&gt;
&lt;br /&gt;
To see the current status of the daemon service use following command:&lt;br /&gt;
 systemctl status muondetector-daemon.service&lt;br /&gt;
&lt;br /&gt;
It can happen that the status shows 'failed' in red, usually a restart of the daemon service resolves this.&lt;br /&gt;
&lt;br /&gt;
If the service should not enable itself by default the status shows a grey 'not loaded'. To enable the service use:&lt;br /&gt;
 sudo systemctl enable muondetector-daemon.service&lt;/div&gt;</summary>
		<author><name>Dtreffenstaedt</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.muonpi.org/index.php?title=Raspberry_Pi_Setup&amp;diff=719</id>
		<title>Raspberry Pi Setup</title>
		<link rel="alternate" type="text/html" href="https://wiki.muonpi.org/index.php?title=Raspberry_Pi_Setup&amp;diff=719"/>
		<updated>2021-07-29T20:03:47Z</updated>

		<summary type="html">&lt;p&gt;Dtreffenstaedt: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This article will introduce to you, how to set up a Raspberry Pi from scratch with all software needed to run the detector hardware.&lt;br /&gt;
&lt;br /&gt;
DISCLAIMER: If not stated otherwise, this tutorial is developed on Raspian 10 Buster.&lt;br /&gt;
&lt;br /&gt;
__TOC__&lt;br /&gt;
= Guided Setup =&lt;br /&gt;
&lt;br /&gt;
= Manual Setup =&lt;br /&gt;
== Prerequisities ==&lt;br /&gt;
(Requirements: Raspberry Pi Versions 0, 2, 3, 4 (with 40-pin GPIO connector) )&lt;br /&gt;
&lt;br /&gt;
You should have a fully configured RaspberryPi OS system and are ready-to-go to set up the MuonPi after following these steps:&lt;br /&gt;
=== Basic ===&lt;br /&gt;
# Create a fresh install of RaspberryPi OS according to the [https://www.raspberrypi.org/documentation/installation/installing-images/ tutorial]&lt;br /&gt;
# Update your system: &amp;lt;code&amp;gt;sudo apt update &amp;amp;&amp;amp; sudo apt upgrade&amp;lt;/code&amp;gt;&lt;br /&gt;
# Change the default password of the user &amp;lt;code&amp;gt;pi&amp;lt;/code&amp;gt;: &amp;lt;code&amp;gt;passwd&amp;lt;/code&amp;gt;&lt;br /&gt;
# (Optional) For an headless install (without monitor and mouse/keyboard), we recommend following this [https://www.raspberrypi.org/documentation/configuration/wireless/headless.md guide].&lt;br /&gt;
=== Interfaces ===&lt;br /&gt;
# '''Enable the serial interface''' (UART) and '''disable the login shell''' via the UART. In terminal: &amp;lt;code&amp;gt;sudo raspi-config&amp;lt;/code&amp;gt; &amp;lt;br&amp;gt; &amp;lt;code&amp;gt; 3 Interface Options -&amp;gt; P6 Serial Port -&amp;gt; No (login shell over serial) -&amp;gt; Yes (serial port)&amp;lt;/code&amp;gt;&lt;br /&gt;
# Enable I2C Interface: In terminal: &amp;lt;code&amp;gt;sudo raspi-config&amp;lt;/code&amp;gt; &amp;lt;br&amp;gt; &amp;lt;code&amp;gt; 3 Interface Options -&amp;gt; P5 I2C -&amp;gt; Yes (enable)&amp;lt;/code&amp;gt;&lt;br /&gt;
# (Optional) '''Enable SSH''': In a terminal: &amp;lt;code&amp;gt;sudo raspi-config&amp;lt;/code&amp;gt; &amp;lt;br&amp;gt; &amp;lt;code&amp;gt; 3 Interface Options -&amp;gt; P2 SSH -&amp;gt; Yes (enable) &amp;lt;/code&amp;gt;&lt;br /&gt;
=== Network ===&lt;br /&gt;
By default, the RPi is configured to automatically obtain an IP address when a connection is available and DHCP in your local network is active (this should be the case for most local/home networks).&lt;br /&gt;
If you prefer a fixed IP address in a local network: edit the file /etc/dhcpcd.conf. Use the template and uncomment the &amp;quot;Example Static IP Configuration&amp;quot; section with your desired IP address.&lt;br /&gt;
If network access should be established via WiFi, either configure it via the network configuration wizard in the graphical desktop environment (usually network icon in the system bar), or manually following these steps (either method is fine):&lt;br /&gt;
# Make sure that the wpa_supplicant package is installed:&amp;lt;code&amp;gt;sudo apt install wpasupplicant&amp;lt;/code&amp;gt;&lt;br /&gt;
# edit the file /etc/wpa_supplicant/wpa_supplicant.conf:&amp;lt;code&amp;gt;sudo nano /etc/wpa_supplicant/wpa_supplicant.conf&amp;lt;/code&amp;gt; &amp;lt;br&amp;gt; the configuration should look like this (non-relevant lines not shown):&lt;br /&gt;
 update_config=1&lt;br /&gt;
 country=DE&amp;lt;/br&amp;gt;&lt;br /&gt;
 network={&lt;br /&gt;
        ssid=&amp;quot;&amp;lt;your network ssid&amp;gt;&amp;quot;&lt;br /&gt;
        psk=&amp;quot;&amp;lt;your wifi password&amp;gt;&amp;quot;&lt;br /&gt;
        key_mgmt=WPA-PSK&lt;br /&gt;
 }&lt;br /&gt;
Enter your WiFi's SSID and password in the indicated fields.&lt;br /&gt;
Finally, restart the system that the changes take effect.&lt;br /&gt;
&lt;br /&gt;
== MuonPi software installation ==&lt;br /&gt;
(Requirements: a MuonPi board plugged onto the GPIO connector of the RPi)&lt;br /&gt;
* First, add the MuonPi apt repository to your system:&lt;br /&gt;
 sudo sh -c &amp;quot;curl https://archive.muonpi.org/muondetector.public.key | gpg --dearmor &amp;gt; /etc/apt/trusted.gpg.d/muondetector.gpg&amp;quot;&lt;br /&gt;
&lt;br /&gt;
 sudo sh -c &amp;quot;echo deb &amp;lt;nowiki&amp;gt;https://archive.muonpi.org/raspbian buster main&amp;lt;/nowiki&amp;gt; &amp;gt; /etc/apt/sources.list.d/muondetector.list&amp;quot;&lt;br /&gt;
* Update the repositories:&lt;br /&gt;
 sudo apt update&lt;br /&gt;
* Install the muondetector-daemon package and it's dependencies:&lt;br /&gt;
 sudo apt install muondetector-daemon&lt;br /&gt;
* Optional: install the Graphical User Interface (GUI) program to monitor and control the MuonPi locally.&lt;br /&gt;
 sudo apt install muondetector-gui&lt;br /&gt;
{{Note|Note that if you want to use the gui on the raspberrypi, it is recommended to use the Raspberrypi OS with Desktop preinstalled.|reminder}}&lt;br /&gt;
&lt;br /&gt;
* The GUI can connect to the MuonPi over network as well, so it can be installed on other computers in the local network. Currently, binary packages for Raspbian, Ubuntu and Windows are available. The Linux-based versions can be installed from the package repositories (execute steps 1,2 and 4 from this list). The Windows program can be downloaded directly from https://archive.muonpi.org and installed by simply unpacking the zip-archive.&lt;br /&gt;
&lt;br /&gt;
= Configuration and Start =&lt;br /&gt;
&lt;br /&gt;
Now the installation of the muondetector-daemon should be adapted to your setup:&lt;br /&gt;
&lt;br /&gt;
== Configuration ==&lt;br /&gt;
Edit the configuration file /etc/muondetector/muondetector.conf: &amp;lt;code&amp;gt;nano /etc/muondetector/muondetector.conf&amp;lt;/code&amp;gt;.&lt;br /&gt;
Change the settings according to your needs or leave them untouched, if unsure. The comments in the config file should guide you through any required modifications. One option, however, describes the placement of your detector. If you like, choose a stationID descriptor, eg.:&amp;lt;/br&amp;gt;&lt;br /&gt;
(file: &amp;lt;code&amp;gt;/etc/muondetector/muondetector.conf&amp;lt;/code&amp;gt;)&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;#&amp;lt;/nowiki&amp;gt; A unique identifier of the user's station&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;#&amp;lt;/nowiki&amp;gt; leave on default when the user operates a single station&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;#&amp;lt;/nowiki&amp;gt; all detectors of the user are distinguishable on the basis of this id&lt;br /&gt;
 stationID = &amp;quot;HomeOffice&amp;quot;&lt;br /&gt;
&lt;br /&gt;
(anything which best describes the location of your detector like e.g. &amp;quot;GarageSW&amp;quot;, &amp;quot;Bldg16Lab105&amp;quot;, &amp;quot;AtticNE&amp;quot;). If you operate only one stationary detector, it may as well be left on the default ID which is &amp;quot;0&amp;quot; (zero).&lt;br /&gt;
&lt;br /&gt;
'''Important''': When operating multiple detectors (under the same user account, see below) the stationID descriptor '''must''' be unique for each detector.&lt;br /&gt;
&lt;br /&gt;
== Login with your user credentials (only once) ==&lt;br /&gt;
&lt;br /&gt;
Before taking the MuonPi detector into operation, you have to set your credentials for publishing data messages to the server via [http://mqtt.org/ MQTT] protocol on first start. This can be managed in two ways, one secure and one where your credentials appear as plain text in the config file:&lt;br /&gt;
==== The Recommended Method ====&lt;br /&gt;
In a bash shell on the MuonPi, run the command &amp;lt;code&amp;gt;muondetector-login&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
'''Note that for the software version 2.0.0 the command to run is &amp;lt;code&amp;gt;sudo runuser -u muonuser -- muondetector-login&amp;lt;/code&amp;gt; instead.'''&lt;br /&gt;
&lt;br /&gt;
When asked for sudo access, enter the password of your raspberry pi user.&lt;br /&gt;
When asked for your user name and password, enter the credentials supplied to you by a MounPi.org official. The credentials are stored (not in clear text) for all further telemetry connections.&lt;br /&gt;
&lt;br /&gt;
==== Alternative Method ====&lt;br /&gt;
Uncomment the &amp;lt;code&amp;gt;mqtt_user&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;mqtt_password&amp;lt;/code&amp;gt; options in &amp;lt;code&amp;gt;/etc/muondetector/muondetector.conf&amp;lt;/code&amp;gt; and type your personal username and password into these fields between the quotation marks. Be aware, that these credentials are written in plain text into this file and can be retrieved by malware attacks. However, if you operate a station inside a home network and set up a strong ssh authentication (see above), you should be relatively safe.&lt;br /&gt;
&lt;br /&gt;
== Start the Daemon ==&lt;br /&gt;
The daemon should be enabled and started automatically after installation and on every reboot. However, when changing items in the config file, the changes have to be made effective by a daemon restart:&lt;br /&gt;
 sudo systemctl restart muondetector-daemon.service&lt;br /&gt;
&lt;br /&gt;
To see the current status of the daemon service use following command:&lt;br /&gt;
 systemctl status muondetector-daemon.service&lt;br /&gt;
&lt;br /&gt;
It can happen that the status shows 'failed' in red, usually a restart of the daemon service resolves this.&lt;br /&gt;
&lt;br /&gt;
If the service should not enable itself by default the status shows a grey 'not loaded'. To enable the service use:&lt;br /&gt;
 sudo systemctl enable muondetector-daemon.service&lt;/div&gt;</summary>
		<author><name>Dtreffenstaedt</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.muonpi.org/index.php?title=Raspberry_Pi_Setup&amp;diff=718</id>
		<title>Raspberry Pi Setup</title>
		<link rel="alternate" type="text/html" href="https://wiki.muonpi.org/index.php?title=Raspberry_Pi_Setup&amp;diff=718"/>
		<updated>2021-07-29T20:01:07Z</updated>

		<summary type="html">&lt;p&gt;Dtreffenstaedt: /* Initial Setup */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This article will introduce to you, how to set up a Raspberry Pi from scratch with all software needed to run the detector hardware.&lt;br /&gt;
&lt;br /&gt;
DISCLAIMER: If not stated otherwise, this tutorial is developed on Raspian 10 Buster.&lt;br /&gt;
&lt;br /&gt;
__TOC__&lt;br /&gt;
&lt;br /&gt;
= Initial Setup =&lt;br /&gt;
(Requirements: Raspberry Pi Versions 0, 2, 3, 4 (with 40-pin GPIO connector) )&lt;br /&gt;
&lt;br /&gt;
You should have a fully configured RaspberryPi OS system and are ready-to-go to set up the MuonPi after following these steps:&lt;br /&gt;
== Basic ==&lt;br /&gt;
# Create a fresh install of RaspberryPi OS according to the [https://www.raspberrypi.org/documentation/installation/installing-images/ tutorial]&lt;br /&gt;
# Update your system: &amp;lt;code&amp;gt;sudo apt update &amp;amp;&amp;amp; sudo apt upgrade&amp;lt;/code&amp;gt;&lt;br /&gt;
# Change the default password of the user &amp;lt;code&amp;gt;pi&amp;lt;/code&amp;gt;: &amp;lt;code&amp;gt;passwd&amp;lt;/code&amp;gt;&lt;br /&gt;
# (Optional) For an headless install (without monitor and mouse/keyboard), we recommend following this [https://www.raspberrypi.org/documentation/configuration/wireless/headless.md guide].&lt;br /&gt;
== Interfaces ==&lt;br /&gt;
# '''Enable the serial interface''' (UART) and '''disable the login shell''' via the UART. In terminal: &amp;lt;code&amp;gt;sudo raspi-config&amp;lt;/code&amp;gt; &amp;lt;br&amp;gt; &amp;lt;code&amp;gt; 3 Interface Options -&amp;gt; P6 Serial Port -&amp;gt; No (login shell over serial) -&amp;gt; Yes (serial port)&amp;lt;/code&amp;gt;&lt;br /&gt;
# Enable I2C Interface: In terminal: &amp;lt;code&amp;gt;sudo raspi-config&amp;lt;/code&amp;gt; &amp;lt;br&amp;gt; &amp;lt;code&amp;gt; 3 Interface Options -&amp;gt; P5 I2C -&amp;gt; Yes (enable)&amp;lt;/code&amp;gt;&lt;br /&gt;
# (Optional) '''Enable SSH''': In a terminal: &amp;lt;code&amp;gt;sudo raspi-config&amp;lt;/code&amp;gt; &amp;lt;br&amp;gt; &amp;lt;code&amp;gt; 3 Interface Options -&amp;gt; P2 SSH -&amp;gt; Yes (enable) &amp;lt;/code&amp;gt;&lt;br /&gt;
== Network ==&lt;br /&gt;
By default, the RPi is configured to automatically obtain an IP address when a connection is available and DHCP in your local network is active (this should be the case for most local/home networks).&lt;br /&gt;
If you prefer a fixed IP address in a local network: edit the file /etc/dhcpcd.conf. Use the template and uncomment the &amp;quot;Example Static IP Configuration&amp;quot; section with your desired IP address.&lt;br /&gt;
If network access should be established via WiFi, either configure it via the network configuration wizard in the graphical desktop environment (usually network icon in the system bar), or manually following these steps (either method is fine):&lt;br /&gt;
# Make sure that the wpa_supplicant package is installed:&amp;lt;code&amp;gt;sudo apt install wpasupplicant&amp;lt;/code&amp;gt;&lt;br /&gt;
# edit the file /etc/wpa_supplicant/wpa_supplicant.conf:&amp;lt;code&amp;gt;sudo nano /etc/wpa_supplicant/wpa_supplicant.conf&amp;lt;/code&amp;gt; &amp;lt;br&amp;gt; the configuration should look like this (non-relevant lines not shown):&lt;br /&gt;
 update_config=1&lt;br /&gt;
 country=DE&amp;lt;/br&amp;gt;&lt;br /&gt;
 network={&lt;br /&gt;
        ssid=&amp;quot;&amp;lt;your network ssid&amp;gt;&amp;quot;&lt;br /&gt;
        psk=&amp;quot;&amp;lt;your wifi password&amp;gt;&amp;quot;&lt;br /&gt;
        key_mgmt=WPA-PSK&lt;br /&gt;
 }&lt;br /&gt;
Enter your WiFi's SSID and password in the indicated fields.&lt;br /&gt;
Finally, restart the system that the changes take effect.&lt;br /&gt;
&lt;br /&gt;
= MuonPi Setup =&lt;br /&gt;
(Requirements: a MuonPi board plugged onto the GPIO connector of the RPi)&lt;br /&gt;
* First, add the MuonPi apt repository to your system:&lt;br /&gt;
 sudo sh -c &amp;quot;curl https://archive.muonpi.org/muondetector.public.key | gpg --dearmor &amp;gt; /etc/apt/trusted.gpg.d/muondetector.gpg&amp;quot;&lt;br /&gt;
&lt;br /&gt;
 sudo sh -c &amp;quot;echo deb &amp;lt;nowiki&amp;gt;https://archive.muonpi.org/raspbian buster main&amp;lt;/nowiki&amp;gt; &amp;gt; /etc/apt/sources.list.d/muondetector.list&amp;quot;&lt;br /&gt;
* Update the repositories:&lt;br /&gt;
 sudo apt update&lt;br /&gt;
* Install the muondetector-daemon package and it's dependencies:&lt;br /&gt;
 sudo apt install muondetector-daemon&lt;br /&gt;
* Optional: install the Graphical User Interface (GUI) program to monitor and control the MuonPi locally.&lt;br /&gt;
 sudo apt install muondetector-gui&lt;br /&gt;
{{Note|Note that if you want to use the gui on the raspberrypi, it is recommended to use the Raspberrypi OS with Desktop preinstalled.|reminder}}&lt;br /&gt;
&lt;br /&gt;
* The GUI can connect to the MuonPi over network as well, so it can be installed on other computers in the local network. Currently, binary packages for Raspbian, Ubuntu and Windows are available. The Linux-based versions can be installed from the package repositories (execute steps 1,2 and 4 from this list). The Windows program can be downloaded directly from https://archive.muonpi.org and installed by simply unpacking the zip-archive.&lt;br /&gt;
&lt;br /&gt;
= Configuration and Start =&lt;br /&gt;
&lt;br /&gt;
Now the installation of the muondetector-daemon should be adapted to your setup:&lt;br /&gt;
&lt;br /&gt;
== Configuration ==&lt;br /&gt;
Edit the configuration file /etc/muondetector/muondetector.conf: &amp;lt;code&amp;gt;nano /etc/muondetector/muondetector.conf&amp;lt;/code&amp;gt;.&lt;br /&gt;
Change the settings according to your needs or leave them untouched, if unsure. The comments in the config file should guide you through any required modifications. One option, however, describes the placement of your detector. If you like, choose a stationID descriptor, eg.:&amp;lt;/br&amp;gt;&lt;br /&gt;
(file: &amp;lt;code&amp;gt;/etc/muondetector/muondetector.conf&amp;lt;/code&amp;gt;)&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;#&amp;lt;/nowiki&amp;gt; A unique identifier of the user's station&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;#&amp;lt;/nowiki&amp;gt; leave on default when the user operates a single station&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;#&amp;lt;/nowiki&amp;gt; all detectors of the user are distinguishable on the basis of this id&lt;br /&gt;
 stationID = &amp;quot;HomeOffice&amp;quot;&lt;br /&gt;
&lt;br /&gt;
(anything which best describes the location of your detector like e.g. &amp;quot;GarageSW&amp;quot;, &amp;quot;Bldg16Lab105&amp;quot;, &amp;quot;AtticNE&amp;quot;). If you operate only one stationary detector, it may as well be left on the default ID which is &amp;quot;0&amp;quot; (zero).&lt;br /&gt;
&lt;br /&gt;
'''Important''': When operating multiple detectors (under the same user account, see below) the stationID descriptor '''must''' be unique for each detector.&lt;br /&gt;
&lt;br /&gt;
== Login with your user credentials (only once) ==&lt;br /&gt;
&lt;br /&gt;
Before taking the MuonPi detector into operation, you have to set your credentials for publishing data messages to the server via [http://mqtt.org/ MQTT] protocol on first start. This can be managed in two ways, one secure and one where your credentials appear as plain text in the config file:&lt;br /&gt;
==== The Recommended Method ====&lt;br /&gt;
In a bash shell on the MuonPi, run the command &amp;lt;code&amp;gt;muondetector-login&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
'''Note that for the software version 2.0.0 the command to run is &amp;lt;code&amp;gt;sudo runuser -u muonuser -- muondetector-login&amp;lt;/code&amp;gt; instead.'''&lt;br /&gt;
&lt;br /&gt;
When asked for sudo access, enter the password of your raspberry pi user.&lt;br /&gt;
When asked for your user name and password, enter the credentials supplied to you by a MounPi.org official. The credentials are stored (not in clear text) for all further telemetry connections.&lt;br /&gt;
&lt;br /&gt;
==== Alternative Method ====&lt;br /&gt;
Uncomment the &amp;lt;code&amp;gt;mqtt_user&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;mqtt_password&amp;lt;/code&amp;gt; options in &amp;lt;code&amp;gt;/etc/muondetector/muondetector.conf&amp;lt;/code&amp;gt; and type your personal username and password into these fields between the quotation marks. Be aware, that these credentials are written in plain text into this file and can be retrieved by malware attacks. However, if you operate a station inside a home network and set up a strong ssh authentication (see above), you should be relatively safe.&lt;br /&gt;
&lt;br /&gt;
== Start the Daemon ==&lt;br /&gt;
The daemon should be enabled and started automatically after installation and on every reboot. However, when changing items in the config file, the changes have to be made effective by a daemon restart:&lt;br /&gt;
 sudo systemctl restart muondetector-daemon.service&lt;br /&gt;
&lt;br /&gt;
To see the current status of the daemon service use following command:&lt;br /&gt;
 systemctl status muondetector-daemon.service&lt;br /&gt;
&lt;br /&gt;
It can happen that the status shows 'failed' in red, usually a restart of the daemon service resolves this.&lt;br /&gt;
&lt;br /&gt;
If the service should not enable itself by default the status shows a grey 'not loaded'. To enable the service use:&lt;br /&gt;
 sudo systemctl enable muondetector-daemon.service&lt;/div&gt;</summary>
		<author><name>Dtreffenstaedt</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.muonpi.org/index.php?title=Raspberry_Pi_Setup&amp;diff=717</id>
		<title>Raspberry Pi Setup</title>
		<link rel="alternate" type="text/html" href="https://wiki.muonpi.org/index.php?title=Raspberry_Pi_Setup&amp;diff=717"/>
		<updated>2021-07-29T19:52:14Z</updated>

		<summary type="html">&lt;p&gt;Dtreffenstaedt: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This article will introduce to you, how to set up a Raspberry Pi from scratch with all software needed to run the detector hardware.&lt;br /&gt;
&lt;br /&gt;
DISCLAIMER: If not stated otherwise, this tutorial is developed on Raspian 10 Buster.&lt;br /&gt;
&lt;br /&gt;
__TOC__&lt;br /&gt;
&lt;br /&gt;
= Initial Setup =&lt;br /&gt;
(Requirements: Raspberry Pi Versions 0, 2, 3, 4 (with 40-pin GPIO connector) )&lt;br /&gt;
# Create a fresh install of Raspbian Buster operating system e.g. from [https://www.raspberrypi.org/downloads/raspberry-pi-os/ here] on microSD card (any version with or without desktop). For an headless install (without monitor and mouse/keyboard), we recommend following this [https://www.raspberrypi.org/documentation/configuration/wireless/headless.md guide].&lt;br /&gt;
* Change the default password of the user &amp;quot;pi&amp;quot;. This is strongly recommended, since connections through ssh will be enabled in the next step which should always have a strong authentication metric. Change it with &amp;lt;code&amp;gt;sudo raspi-config&amp;lt;/code&amp;gt; &amp;gt;&amp;gt; Change User Password or on the command line with &amp;lt;code&amp;gt;passwd&amp;lt;/code&amp;gt;&lt;br /&gt;
* '''Enable the serial interface''' (UART) and '''disable the login shell''' via the UART. In terminal: &amp;lt;code&amp;gt;sudo raspi-config&amp;lt;/code&amp;gt; &amp;gt;&amp;gt; Interfacing Options &amp;gt;&amp;gt; Serial &amp;gt;&amp;gt; Login shell over serial: No &amp;gt;&amp;gt; Enable serial hardware: Yes&lt;br /&gt;
* Enable I2C Interface: In terminal: &amp;lt;code&amp;gt;sudo raspi-config&amp;lt;/code&amp;gt; &amp;gt;&amp;gt; Interfacing Options &amp;gt;&amp;gt; I2C &amp;gt;&amp;gt; Enable: Yes &amp;gt;&amp;gt; Reboot optional&lt;br /&gt;
* Enable SSH: The SSH protocol is needed if you want to remotely configure your headless Raspberry Pi. In a terminal: &amp;lt;code&amp;gt;sudo raspi-config&amp;lt;/code&amp;gt; &amp;gt;&amp;gt; Interfacing Options &amp;gt;&amp;gt; SSH &amp;gt;&amp;gt; Enable: Yes &amp;gt;&amp;gt; Reboot&lt;br /&gt;
* Configure the network connection: By default, the RPi is configured to automatically obtain an IP address when a connection is available and DHCP in your local network is active (this should be the case for most local/home networks).&lt;br /&gt;
* If you prefer a fixed IP address in a local network: edit the file /etc/dhcpcd.conf. Use the template and uncomment the &amp;quot;Example Static IP Configuration&amp;quot; section with your desired IP address.&lt;br /&gt;
* If network access should be established via WiFi, either configure it via the network configuration wizard in the graphical desktop environment (usually network icon in the system bar), or manually following these steps (either method is fine):&lt;br /&gt;
** Make sure that the wpa_supplicant package is installed:&amp;lt;code&amp;gt;sudo apt install wpasupplicant&amp;lt;/code&amp;gt;&lt;br /&gt;
** edit the file /etc/wpa_supplicant/wpa_supplicant.conf:&amp;lt;code&amp;gt;sudo nano /etc/wpa_supplicant/wpa_supplicant.conf&amp;lt;/code&amp;gt;&lt;br /&gt;
the configuration should look like this (non-relevant lines not shown):&lt;br /&gt;
&lt;br /&gt;
 update_config=1&lt;br /&gt;
 country=DE&amp;lt;/br&amp;gt;&lt;br /&gt;
 network={&lt;br /&gt;
        ssid=&amp;quot;&amp;lt;your network ssid&amp;gt;&amp;quot;&lt;br /&gt;
        psk=&amp;quot;&amp;lt;your wifi password&amp;gt;&amp;quot;&lt;br /&gt;
        key_mgmt=WPA-PSK&lt;br /&gt;
 }&lt;br /&gt;
Enter your WiFi's SSID and password in the indicated fields.&lt;br /&gt;
Finally, restart the system that the changes take effect.&lt;br /&gt;
Optionally, update your system by:&lt;br /&gt;
 sudo apt update &amp;amp;&amp;amp; sudo apt upgrade&lt;br /&gt;
&lt;br /&gt;
You should have a fully configured Raspbian system by now and are ready-to-go to set up the MuonPi in the next step.&lt;br /&gt;
&lt;br /&gt;
= MuonPi Setup =&lt;br /&gt;
(Requirements: a MuonPi board plugged onto the GPIO connector of the RPi)&lt;br /&gt;
* First, add the MuonPi apt repository to your system:&lt;br /&gt;
 sudo sh -c &amp;quot;curl https://archive.muonpi.org/muondetector.public.key | gpg --dearmor &amp;gt; /etc/apt/trusted.gpg.d/muondetector.gpg&amp;quot;&lt;br /&gt;
&lt;br /&gt;
 sudo sh -c &amp;quot;echo deb &amp;lt;nowiki&amp;gt;https://archive.muonpi.org/raspbian buster main&amp;lt;/nowiki&amp;gt; &amp;gt; /etc/apt/sources.list.d/muondetector.list&amp;quot;&lt;br /&gt;
* Update the repositories:&lt;br /&gt;
 sudo apt update&lt;br /&gt;
* Install the muondetector-daemon package and it's dependencies:&lt;br /&gt;
 sudo apt install muondetector-daemon&lt;br /&gt;
* Optional: install the Graphical User Interface (GUI) program to monitor and control the MuonPi locally.&lt;br /&gt;
 sudo apt install muondetector-gui&lt;br /&gt;
{{Note|Note that if you want to use the gui on the raspberrypi, it is recommended to use the Raspberrypi OS with Desktop preinstalled.|reminder}}&lt;br /&gt;
&lt;br /&gt;
* The GUI can connect to the MuonPi over network as well, so it can be installed on other computers in the local network. Currently, binary packages for Raspbian, Ubuntu and Windows are available. The Linux-based versions can be installed from the package repositories (execute steps 1,2 and 4 from this list). The Windows program can be downloaded directly from https://archive.muonpi.org and installed by simply unpacking the zip-archive.&lt;br /&gt;
&lt;br /&gt;
= Configuration and Start =&lt;br /&gt;
&lt;br /&gt;
Now the installation of the muondetector-daemon should be adapted to your setup:&lt;br /&gt;
&lt;br /&gt;
== Configuration ==&lt;br /&gt;
Edit the configuration file /etc/muondetector/muondetector.conf: &amp;lt;code&amp;gt;nano /etc/muondetector/muondetector.conf&amp;lt;/code&amp;gt;.&lt;br /&gt;
Change the settings according to your needs or leave them untouched, if unsure. The comments in the config file should guide you through any required modifications. One option, however, describes the placement of your detector. If you like, choose a stationID descriptor, eg.:&amp;lt;/br&amp;gt;&lt;br /&gt;
(file: &amp;lt;code&amp;gt;/etc/muondetector/muondetector.conf&amp;lt;/code&amp;gt;)&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;#&amp;lt;/nowiki&amp;gt; A unique identifier of the user's station&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;#&amp;lt;/nowiki&amp;gt; leave on default when the user operates a single station&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;#&amp;lt;/nowiki&amp;gt; all detectors of the user are distinguishable on the basis of this id&lt;br /&gt;
 stationID = &amp;quot;HomeOffice&amp;quot;&lt;br /&gt;
&lt;br /&gt;
(anything which best describes the location of your detector like e.g. &amp;quot;GarageSW&amp;quot;, &amp;quot;Bldg16Lab105&amp;quot;, &amp;quot;AtticNE&amp;quot;). If you operate only one stationary detector, it may as well be left on the default ID which is &amp;quot;0&amp;quot; (zero).&lt;br /&gt;
&lt;br /&gt;
'''Important''': When operating multiple detectors (under the same user account, see below) the stationID descriptor '''must''' be unique for each detector.&lt;br /&gt;
&lt;br /&gt;
== Login with your user credentials (only once) ==&lt;br /&gt;
&lt;br /&gt;
Before taking the MuonPi detector into operation, you have to set your credentials for publishing data messages to the server via [http://mqtt.org/ MQTT] protocol on first start. This can be managed in two ways, one secure and one where your credentials appear as plain text in the config file:&lt;br /&gt;
==== The Recommended Method ====&lt;br /&gt;
In a bash shell on the MuonPi, run the command &amp;lt;code&amp;gt;muondetector-login&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
'''Note that for the software version 2.0.0 the command to run is &amp;lt;code&amp;gt;sudo runuser -u muonuser -- muondetector-login&amp;lt;/code&amp;gt; instead.'''&lt;br /&gt;
&lt;br /&gt;
When asked for sudo access, enter the password of your raspberry pi user.&lt;br /&gt;
When asked for your user name and password, enter the credentials supplied to you by a MounPi.org official. The credentials are stored (not in clear text) for all further telemetry connections.&lt;br /&gt;
&lt;br /&gt;
==== Alternative Method ====&lt;br /&gt;
Uncomment the &amp;lt;code&amp;gt;mqtt_user&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;mqtt_password&amp;lt;/code&amp;gt; options in &amp;lt;code&amp;gt;/etc/muondetector/muondetector.conf&amp;lt;/code&amp;gt; and type your personal username and password into these fields between the quotation marks. Be aware, that these credentials are written in plain text into this file and can be retrieved by malware attacks. However, if you operate a station inside a home network and set up a strong ssh authentication (see above), you should be relatively safe.&lt;br /&gt;
&lt;br /&gt;
== Start the Daemon ==&lt;br /&gt;
The daemon should be enabled and started automatically after installation and on every reboot. However, when changing items in the config file, the changes have to be made effective by a daemon restart:&lt;br /&gt;
 sudo systemctl restart muondetector-daemon.service&lt;br /&gt;
&lt;br /&gt;
To see the current status of the daemon service use following command:&lt;br /&gt;
 systemctl status muondetector-daemon.service&lt;br /&gt;
&lt;br /&gt;
It can happen that the status shows 'failed' in red, usually a restart of the daemon service resolves this.&lt;br /&gt;
&lt;br /&gt;
If the service should not enable itself by default the status shows a grey 'not loaded'. To enable the service use:&lt;br /&gt;
 sudo systemctl enable muondetector-daemon.service&lt;/div&gt;</summary>
		<author><name>Dtreffenstaedt</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.muonpi.org/index.php?title=Detector_Status&amp;diff=691</id>
		<title>Detector Status</title>
		<link rel="alternate" type="text/html" href="https://wiki.muonpi.org/index.php?title=Detector_Status&amp;diff=691"/>
		<updated>2021-04-11T07:34:08Z</updated>

		<summary type="html">&lt;p&gt;Dtreffenstaedt: /* Reliability */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= Real-Time Analysis =&lt;br /&gt;
The incoming data from all detectors is analysed in real-time before being written to the database.&lt;br /&gt;
&lt;br /&gt;
This analysis consists of the calculation of coincidences between all possible detector pairs. Additionally each individual and total coincidence detection rate is determined.&lt;br /&gt;
&lt;br /&gt;
In order to ensure the validity of the data at all times, each detectors reliability is judged.&lt;br /&gt;
&lt;br /&gt;
=== Reliability ===&lt;br /&gt;
&lt;br /&gt;
Determining factors include e.g. quality of GNSS signal, effective [https://en.wikipedia.org/wiki/Dilution_of_precision_(navigation) DOP] or the steadieness of detection rate.&lt;br /&gt;
&lt;br /&gt;
For a detailed view, you can check out the relevant code at [https://github.com/MuonPi/muondetector-cluster/blob/3797637b2c475c91296d52ffc5f9debdd865369f/src/analysis/detectorstation.cpp#L148-L166 our github].&lt;br /&gt;
&lt;br /&gt;
Additionally to the standard requirements, individual events can cause an instant unreliability mark due to exceptionally bad time resolution or no valid GNSS fix. Those events are automatically rejected.&lt;br /&gt;
&lt;br /&gt;
Compare [https://github.com/MuonPi/muondetector-cluster/blob/3797637b2c475c91296d52ffc5f9debdd865369f/src/analysis/detectorstation.cpp#L116-L120 the code] to see the detailed requirements.&lt;br /&gt;
&lt;br /&gt;
=== Possible detector status ===&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! Status !! Data is processed !! Description&lt;br /&gt;
|-&lt;br /&gt;
| offline || no || The detector is not connected or experiences network problems&lt;br /&gt;
|-&lt;br /&gt;
| online ||  no || The detector is recently connected&lt;br /&gt;
|-&lt;br /&gt;
| reliable || yes || The detector is connected and all parameters are deemed good&lt;br /&gt;
|-&lt;br /&gt;
| unreliable || no || The detector is connected but experiences network problems or has sub-optimal runtime parameters&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=== Possible reasons ===&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! reason !! Description&lt;br /&gt;
|-&lt;br /&gt;
| miscellaneous || No reason has been specified&lt;br /&gt;
|-&lt;br /&gt;
| time_accuracy || The mean time accuracy of the detector was outside the specifications&lt;br /&gt;
|-&lt;br /&gt;
| time_accuracy_extreme || The time accuracy of a single event reached an extreme value&lt;br /&gt;
|-&lt;br /&gt;
| location_precision || The mean location precision of the detector was outside the specifications&lt;br /&gt;
|-&lt;br /&gt;
| rate_unstable || The standard deviation of the event rate was too large compared to the mean&lt;br /&gt;
|-&lt;br /&gt;
| missed_log_interval || The detector missed a log interval (One for unreliable, Three intervals for offline)&lt;br /&gt;
|}&lt;/div&gt;</summary>
		<author><name>Dtreffenstaedt</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.muonpi.org/index.php?title=Detector_Status&amp;diff=690</id>
		<title>Detector Status</title>
		<link rel="alternate" type="text/html" href="https://wiki.muonpi.org/index.php?title=Detector_Status&amp;diff=690"/>
		<updated>2021-04-11T07:32:30Z</updated>

		<summary type="html">&lt;p&gt;Dtreffenstaedt: /* Possible reasons */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= Real-Time Analysis =&lt;br /&gt;
The incoming data from all detectors is analysed in real-time before being written to the database.&lt;br /&gt;
&lt;br /&gt;
This analysis consists of the calculation of coincidences between all possible detector pairs. Additionally each individual and total coincidence detection rate is determined.&lt;br /&gt;
&lt;br /&gt;
In order to ensure the validity of the data at all times, each detectors reliability is judged.&lt;br /&gt;
&lt;br /&gt;
=== Reliability ===&lt;br /&gt;
&lt;br /&gt;
Determining factors include e.g. quality of GNSS signal, effective [https://en.wikipedia.org/wiki/Dilution_of_precision_(navigation) DOP] or the steadieness of detection rate.&lt;br /&gt;
&lt;br /&gt;
For a detailed view, you can check out the relevant code at [https://github.com/MuonPi/muondetector-cluster/blob/929145e792dc84eb80b28bf62f8d37236fb681cf/src/detector.cpp#L139-L147 our github].&lt;br /&gt;
&lt;br /&gt;
Additionally to the standard requirements, individual events can cause an instant unreliability mark due to exceptionally bad time resolution or no valid GNSS fix. Those events are automatically rejected.&lt;br /&gt;
&lt;br /&gt;
Compare [https://github.com/MuonPi/muondetector-cluster/blob/929145e792dc84eb80b28bf62f8d37236fb681cf/src/detector.cpp#L107-L111 the code] to see the detailed requirements.&lt;br /&gt;
&lt;br /&gt;
=== Possible detector status ===&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! Status !! Data is processed !! Description&lt;br /&gt;
|-&lt;br /&gt;
| offline || no || The detector is not connected or experiences network problems&lt;br /&gt;
|-&lt;br /&gt;
| online ||  no || The detector is recently connected&lt;br /&gt;
|-&lt;br /&gt;
| reliable || yes || The detector is connected and all parameters are deemed good&lt;br /&gt;
|-&lt;br /&gt;
| unreliable || no || The detector is connected but experiences network problems or has sub-optimal runtime parameters&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=== Possible reasons ===&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! reason !! Description&lt;br /&gt;
|-&lt;br /&gt;
| miscellaneous || No reason has been specified&lt;br /&gt;
|-&lt;br /&gt;
| time_accuracy || The mean time accuracy of the detector was outside the specifications&lt;br /&gt;
|-&lt;br /&gt;
| time_accuracy_extreme || The time accuracy of a single event reached an extreme value&lt;br /&gt;
|-&lt;br /&gt;
| location_precision || The mean location precision of the detector was outside the specifications&lt;br /&gt;
|-&lt;br /&gt;
| rate_unstable || The standard deviation of the event rate was too large compared to the mean&lt;br /&gt;
|-&lt;br /&gt;
| missed_log_interval || The detector missed a log interval (One for unreliable, Three intervals for offline)&lt;br /&gt;
|}&lt;/div&gt;</summary>
		<author><name>Dtreffenstaedt</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.muonpi.org/index.php?title=Detector_Status&amp;diff=689</id>
		<title>Detector Status</title>
		<link rel="alternate" type="text/html" href="https://wiki.muonpi.org/index.php?title=Detector_Status&amp;diff=689"/>
		<updated>2021-04-11T07:08:47Z</updated>

		<summary type="html">&lt;p&gt;Dtreffenstaedt: /* Real-Time Analysis */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= Real-Time Analysis =&lt;br /&gt;
The incoming data from all detectors is analysed in real-time before being written to the database.&lt;br /&gt;
&lt;br /&gt;
This analysis consists of the calculation of coincidences between all possible detector pairs. Additionally each individual and total coincidence detection rate is determined.&lt;br /&gt;
&lt;br /&gt;
In order to ensure the validity of the data at all times, each detectors reliability is judged.&lt;br /&gt;
&lt;br /&gt;
=== Reliability ===&lt;br /&gt;
&lt;br /&gt;
Determining factors include e.g. quality of GNSS signal, effective [https://en.wikipedia.org/wiki/Dilution_of_precision_(navigation) DOP] or the steadieness of detection rate.&lt;br /&gt;
&lt;br /&gt;
For a detailed view, you can check out the relevant code at [https://github.com/MuonPi/muondetector-cluster/blob/929145e792dc84eb80b28bf62f8d37236fb681cf/src/detector.cpp#L139-L147 our github].&lt;br /&gt;
&lt;br /&gt;
Additionally to the standard requirements, individual events can cause an instant unreliability mark due to exceptionally bad time resolution or no valid GNSS fix. Those events are automatically rejected.&lt;br /&gt;
&lt;br /&gt;
Compare [https://github.com/MuonPi/muondetector-cluster/blob/929145e792dc84eb80b28bf62f8d37236fb681cf/src/detector.cpp#L107-L111 the code] to see the detailed requirements.&lt;br /&gt;
&lt;br /&gt;
=== Possible detector status ===&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! Status !! Data is processed !! Description&lt;br /&gt;
|-&lt;br /&gt;
| offline || no || The detector is not connected or experiences network problems&lt;br /&gt;
|-&lt;br /&gt;
| online ||  no || The detector is recently connected&lt;br /&gt;
|-&lt;br /&gt;
| reliable || yes || The detector is connected and all parameters are deemed good&lt;br /&gt;
|-&lt;br /&gt;
| unreliable || no || The detector is connected but experiences network problems or has sub-optimal runtime parameters&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=== Possible reasons ===&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! reason !! Description&lt;br /&gt;
|-&lt;br /&gt;
| miscellaneous || No reason has been specified&lt;br /&gt;
|-&lt;br /&gt;
| time_accuracy || The mean time accuracy of the detector was outside the specifications&lt;br /&gt;
|-&lt;br /&gt;
| time_accuracy_extreme || The time accuracy of a single event reached an extreme value&lt;br /&gt;
|-&lt;br /&gt;
| location_precision || The mean location precision of the detector was outside the specifications&lt;br /&gt;
|-&lt;br /&gt;
| rate_unstable || The standard deviation of the event rate was too large compared to the mean&lt;br /&gt;
|-&lt;br /&gt;
| missed_log_interval || The detector missed a log interval (for unreliable. Three intervals for offline)&lt;br /&gt;
|}&lt;/div&gt;</summary>
		<author><name>Dtreffenstaedt</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.muonpi.org/index.php?title=Detector_Status&amp;diff=687</id>
		<title>Detector Status</title>
		<link rel="alternate" type="text/html" href="https://wiki.muonpi.org/index.php?title=Detector_Status&amp;diff=687"/>
		<updated>2021-04-01T15:15:45Z</updated>

		<summary type="html">&lt;p&gt;Dtreffenstaedt: /* Reliability */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= Real-Time Analysis =&lt;br /&gt;
The incoming data from all detectors is analysed in real-time before being written to the database.&lt;br /&gt;
&lt;br /&gt;
This analysis consists of the calculation of coincidences between all possible detector pairs. Additionally each individual and total coincidence detection rate is determined.&lt;br /&gt;
&lt;br /&gt;
In order to ensure the validity of the data at all times, each detectors reliability is judged.&lt;br /&gt;
&lt;br /&gt;
=== Reliability ===&lt;br /&gt;
&lt;br /&gt;
Determining factors include e.g. quality of GNSS signal, effective [https://en.wikipedia.org/wiki/Dilution_of_precision_(navigation) DOP] or the steadieness of detection rate.&lt;br /&gt;
&lt;br /&gt;
For a detailed view, you can check out the relevant code at [https://github.com/MuonPi/muondetector-cluster/blob/929145e792dc84eb80b28bf62f8d37236fb681cf/src/detector.cpp#L139-L147 our github].&lt;br /&gt;
&lt;br /&gt;
Additionally to the standard requirements, individual events can cause an instant unreliability mark due to exceptionally bad time resolution or no valid GNSS fix. Those events are automatically rejected.&lt;br /&gt;
&lt;br /&gt;
Compare [https://github.com/MuonPi/muondetector-cluster/blob/929145e792dc84eb80b28bf62f8d37236fb681cf/src/detector.cpp#L107-L111 the code] to see the detailed requirements.&lt;br /&gt;
&lt;br /&gt;
=== Possible detector status ===&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! Status !! Data is processed !! Description&lt;br /&gt;
|-&lt;br /&gt;
| offline || no || The detector is not connected or experiences network problems&lt;br /&gt;
|-&lt;br /&gt;
| online ||  no || The detector is recently connected&lt;br /&gt;
|-&lt;br /&gt;
| reliable || yes || The detector is connected and all parameters are deemed good&lt;br /&gt;
|-&lt;br /&gt;
| unreliable || no || The detector is connected but experiences network problems or has sub-optimal runtime parameters&lt;br /&gt;
|}&lt;/div&gt;</summary>
		<author><name>Dtreffenstaedt</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.muonpi.org/index.php?title=Detector_Status&amp;diff=686</id>
		<title>Detector Status</title>
		<link rel="alternate" type="text/html" href="https://wiki.muonpi.org/index.php?title=Detector_Status&amp;diff=686"/>
		<updated>2021-04-01T15:15:23Z</updated>

		<summary type="html">&lt;p&gt;Dtreffenstaedt: Created page with &amp;quot;= Real-Time Analysis = The incoming data from all detectors is analysed in real-time before being written to the database.  This analysis consists of the calculation of coinci...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= Real-Time Analysis =&lt;br /&gt;
The incoming data from all detectors is analysed in real-time before being written to the database.&lt;br /&gt;
&lt;br /&gt;
This analysis consists of the calculation of coincidences between all possible detector pairs. Additionally each individual and total coincidence detection rate is determined.&lt;br /&gt;
&lt;br /&gt;
In order to ensure the validity of the data at all times, each detectors reliability is judged.&lt;br /&gt;
&lt;br /&gt;
=== Reliability ===&lt;br /&gt;
&lt;br /&gt;
Determining factors include e.g. quality of GNSS signal, effective [https://en.wikipedia.org/wiki/Dilution_of_precision_(navigation) DOP] or the steadieness of detection rate.&lt;br /&gt;
&lt;br /&gt;
For a detailed view, you can check out the relevant code at [https://github.com/MuonPi/muondetector-cluster/blob/929145e792dc84eb80b28bf62f8d37236fb681cf/src/detector.cpp#L139-L147 our github].&lt;br /&gt;
&lt;br /&gt;
Additionally to the standard requirements, individual events can cause an instant unreliability mark due to exceptionally bad time resolution or no valid GNSS fix. Those events are automatically rejected.&lt;br /&gt;
&lt;br /&gt;
Compare [https://github.com/MuonPi/muondetector-cluster/blob/929145e792dc84eb80b28bf62f8d37236fb681cf/src/detector.cpp#L107-L111] to see the detailed requirements.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Possible detector status ===&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! Status !! Data is processed !! Description&lt;br /&gt;
|-&lt;br /&gt;
| offline || no || The detector is not connected or experiences network problems&lt;br /&gt;
|-&lt;br /&gt;
| online ||  no || The detector is recently connected&lt;br /&gt;
|-&lt;br /&gt;
| reliable || yes || The detector is connected and all parameters are deemed good&lt;br /&gt;
|-&lt;br /&gt;
| unreliable || no || The detector is connected but experiences network problems or has sub-optimal runtime parameters&lt;br /&gt;
|}&lt;/div&gt;</summary>
		<author><name>Dtreffenstaedt</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.muonpi.org/index.php?title=Raspberry_Pi_Setup&amp;diff=612</id>
		<title>Raspberry Pi Setup</title>
		<link rel="alternate" type="text/html" href="https://wiki.muonpi.org/index.php?title=Raspberry_Pi_Setup&amp;diff=612"/>
		<updated>2021-01-30T08:14:48Z</updated>

		<summary type="html">&lt;p&gt;Dtreffenstaedt: /* MuonPi Setup */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This article will introduce to you, how to set up a Raspberry Pi from scratch with all software needed to run the detector hardware.&lt;br /&gt;
&lt;br /&gt;
DISCLAIMER: If not stated otherwise, this tutorial is developed on Raspian 10 Buster.&lt;br /&gt;
&lt;br /&gt;
__TOC__&lt;br /&gt;
&lt;br /&gt;
= Initial Setup =&lt;br /&gt;
(Requirements: Raspberry Pi Versions 0, 2, 3, 4 (with 40-pin GPIO connector) )&lt;br /&gt;
* Create a fresh install of Raspbian Buster operating system e.g. from [https://www.raspberrypi.org/downloads/raspberry-pi-os/ here] on microSD card (any version with or without desktop). For an headless install (without monitor and mouse/keyboard), we recommend following this [https://www.raspberrypi.org/documentation/configuration/wireless/headless.md guide].&lt;br /&gt;
* Change the default password of the user &amp;quot;pi&amp;quot;. This is strongly recommended, since connections through ssh will be enabled in the next step which should always have a strong authentication metric. Change it with &amp;lt;code&amp;gt;sudo raspi-config&amp;lt;/code&amp;gt; &amp;gt;&amp;gt; Change User Password or on the command line with &amp;lt;code&amp;gt;passwd&amp;lt;/code&amp;gt;&lt;br /&gt;
* '''Enable the serial interface''' (UART) and '''disable the login shell''' via the UART. In terminal: &amp;lt;code&amp;gt;sudo raspi-config&amp;lt;/code&amp;gt; &amp;gt;&amp;gt; Interfacing Options &amp;gt;&amp;gt; Serial &amp;gt;&amp;gt; Login shell over serial: No &amp;gt;&amp;gt; Enable serial hardware: Yes&lt;br /&gt;
* Enable I2C Interface: In terminal: &amp;lt;code&amp;gt;sudo raspi-config&amp;lt;/code&amp;gt; &amp;gt;&amp;gt; Interfacing Options &amp;gt;&amp;gt; I2C &amp;gt;&amp;gt; Enable: Yes &amp;gt;&amp;gt; Reboot optional&lt;br /&gt;
* Enable SSH: The SSH protocol is needed if you want to remotely configure your headless Raspberry Pi. In a terminal: &amp;lt;code&amp;gt;sudo raspi-config&amp;lt;/code&amp;gt; &amp;gt;&amp;gt; Interfacing Options &amp;gt;&amp;gt; SSH &amp;gt;&amp;gt; Enable: Yes &amp;gt;&amp;gt; Reboot&lt;br /&gt;
* Configure the network connection: By default, the RPi is configured to automatically obtain an IP address when a connection is available and DHCP in your local network is active (this should be the case for most local/home networks).&lt;br /&gt;
* If you prefer a fixed IP address in a local network: edit the file /etc/dhcpcd.conf. Use the template and uncomment the &amp;quot;Example Static IP Configuration&amp;quot; section with your desired IP address.&lt;br /&gt;
* If network access should be established via WiFi, either configure it via the network configuration wizard in the graphical desktop environment (usually network icon in the system bar), or manually following these steps (either method is fine):&lt;br /&gt;
** Make sure that the wpa_supplicant package is installed:&amp;lt;code&amp;gt;sudo apt install wpasupplicant&amp;lt;/code&amp;gt;&lt;br /&gt;
** edit the file /etc/wpa_supplicant/wpa_supplicant.conf:&amp;lt;code&amp;gt;sudo nano /etc/wpa_supplicant/wpa_supplicant.conf&amp;lt;/code&amp;gt;&lt;br /&gt;
the configuration should look like this (non-relevant lines not shown):&lt;br /&gt;
&lt;br /&gt;
 update_config=1&lt;br /&gt;
 country=DE&amp;lt;/br&amp;gt;&lt;br /&gt;
 network={&lt;br /&gt;
        ssid=&amp;quot;&amp;lt;your network ssid&amp;gt;&amp;quot;&lt;br /&gt;
        psk=&amp;quot;&amp;lt;your wifi password&amp;gt;&amp;quot;&lt;br /&gt;
        key_mgmt=WPA-PSK&lt;br /&gt;
 }&lt;br /&gt;
Enter your WiFi's SSID and password in the indicated fields.&lt;br /&gt;
Finally, restart the system that the changes take effect.&lt;br /&gt;
Optionally, update your system by:&lt;br /&gt;
 sudo apt update &amp;amp;&amp;amp; sudo apt upgrade&lt;br /&gt;
&lt;br /&gt;
You should have a fully configured Raspbian system by now and are ready-to-go to set up the MuonPi in the next step.&lt;br /&gt;
&lt;br /&gt;
= MuonPi Setup =&lt;br /&gt;
(Requirements: a MuonPi board plugged onto the GPIO connector of the RPi)&lt;br /&gt;
* First, add the MuonPi apt repository to your system:&lt;br /&gt;
 sudo sh -c &amp;quot;curl https://archive.muonpi.org/muondetector.public.key | gpg --dearmor &amp;gt; /etc/apt/trusted.gpg.d/muondetector.gpg&amp;quot;&lt;br /&gt;
&lt;br /&gt;
 sudo sh -c &amp;quot;echo deb &amp;lt;nowiki&amp;gt;https://archive.muonpi.org/raspbian buster main&amp;lt;/nowiki&amp;gt; &amp;gt; /etc/apt/sources.list.d/muondetector.list&amp;quot;&lt;br /&gt;
* Update the repositories:&lt;br /&gt;
 sudo apt update&lt;br /&gt;
* Install the muondetector-daemon package and it's dependencies:&lt;br /&gt;
 sudo apt install muondetector-daemon&lt;br /&gt;
* Optional: install the Graphical User Interface (GUI) program to monitor and control the MuonPi locally.&lt;br /&gt;
 sudo apt install muondetector-gui&lt;br /&gt;
{{Note|Note that if you want to use the gui on the raspberrypi, it is recommended to use the Raspberrypi OS with Desktop preinstalled.|reminder}}&lt;br /&gt;
&lt;br /&gt;
* The GUI can connect to the MuonPi over network as well, so it can be installed on other computers in the local network. Currently, binary packages for Raspbian, Ubuntu and Windows are available. The Linux-based versions can be installed from the package repositories (execute steps 1,2 and 4 from this list). The Windows program can be downloaded directly from https://archive.muonpi.org and installed by simply unpacking the zip-archive.&lt;br /&gt;
&lt;br /&gt;
= Configuration and Start =&lt;br /&gt;
&lt;br /&gt;
Now the installation of the muondetector-daemon should be adapted to your setup:&lt;br /&gt;
&lt;br /&gt;
== Configuration ==&lt;br /&gt;
Edit the configuration file /etc/muondetector/muondetector.conf: &amp;lt;code&amp;gt;nano /etc/muondetector/muondetector.conf&amp;lt;/code&amp;gt;.&lt;br /&gt;
Change the settings according to your needs or leave them untouched, if unsure. The comments in the config file should guide you through any required modifications. One option, however, describes the placement of your detector. If you like, choose a stationID descriptor, eg.:&amp;lt;/br&amp;gt;&lt;br /&gt;
(file: &amp;lt;code&amp;gt;/etc/muondetector/muondetector.conf&amp;lt;/code&amp;gt;)&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;#&amp;lt;/nowiki&amp;gt; A unique identifier of the user's station&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;#&amp;lt;/nowiki&amp;gt; leave on default when the user operates a single station&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;#&amp;lt;/nowiki&amp;gt; all detectors of the user are distinguishable on the basis of this id&lt;br /&gt;
 stationID = &amp;quot;HomeOffice&amp;quot;&lt;br /&gt;
&lt;br /&gt;
(anything which best describes the location of your detector like e.g. &amp;quot;GarageSW&amp;quot;, &amp;quot;Bldg16Lab105&amp;quot;, &amp;quot;AtticNE&amp;quot;). If you operate only one stationary detector, it may as well be left on the default ID which is &amp;quot;0&amp;quot; (zero).&lt;br /&gt;
&lt;br /&gt;
'''Important''': When operating multiple detectors (under the same user account, see below) the stationID descriptor '''must''' be unique for each detector.&lt;br /&gt;
&lt;br /&gt;
== Login with your user credentials (only once) ==&lt;br /&gt;
&lt;br /&gt;
Before taking the MuonPi detector into operation, you have to set your credentials for publishing data messages to the server via [http://mqtt.org/ MQTT] protocol on first start. This can be managed in two ways, one secure and one where your credentials appear as plain text in the config file:&lt;br /&gt;
==== The Recommended Method ====&lt;br /&gt;
In a bash shell on the MuonPi, run the command &amp;lt;code&amp;gt;muondetector-login&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
'''Note that for the software version 2.0.0 the command to run is &amp;lt;code&amp;gt;sudo runuser -u muonuser -- muondetector-login&amp;lt;/code&amp;gt; instead.'''&lt;br /&gt;
&lt;br /&gt;
When asked for sudo access, enter the password of your raspberry pi user.&lt;br /&gt;
When asked for your user name and password, enter the credentials supplied to you by a MounPi.org official. The credentials are stored (not in clear text) for all further telemetry connections.&lt;br /&gt;
&lt;br /&gt;
==== Alternative Method ====&lt;br /&gt;
Uncomment the &amp;lt;code&amp;gt;mqtt_user&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;mqtt_password&amp;lt;/code&amp;gt; options in &amp;lt;code&amp;gt;/etc/muondetector/muondetector.conf&amp;lt;/code&amp;gt; and type your personal username and password into these fields between the quotation marks. Be aware, that these credentials are written in plain text into this file and can be retrieved by malware attacks. However, if you operate a station inside a home network and set up a strong ssh authentication (see above), you should be relatively safe.&lt;br /&gt;
&lt;br /&gt;
== Start the Daemon ==&lt;br /&gt;
The daemon should be enabled and started automatically after installation and on every reboot. However, when changing items in the config file, the changes have to be made effective by a daemon restart:&lt;br /&gt;
 sudo systemctl restart muondetector-daemon.service&lt;br /&gt;
&lt;br /&gt;
To see the current status of the daemon service use following command:&lt;br /&gt;
 systemctl status muondetector-daemon.service&lt;br /&gt;
&lt;br /&gt;
It can happen that the status shows 'failed' in red, usually a restart of the daemon service resolves this.&lt;br /&gt;
&lt;br /&gt;
If the service should not enable itself by default the status shows a grey 'not loaded'. To enable the service use:&lt;br /&gt;
 sudo systemctl enable muondetector-daemon.service&lt;/div&gt;</summary>
		<author><name>Dtreffenstaedt</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.muonpi.org/index.php?title=Raspberry_Pi_Setup&amp;diff=611</id>
		<title>Raspberry Pi Setup</title>
		<link rel="alternate" type="text/html" href="https://wiki.muonpi.org/index.php?title=Raspberry_Pi_Setup&amp;diff=611"/>
		<updated>2021-01-30T08:04:22Z</updated>

		<summary type="html">&lt;p&gt;Dtreffenstaedt: /* MuonPi Setup */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This article will introduce to you, how to set up a Raspberry Pi from scratch with all software needed to run the detector hardware.&lt;br /&gt;
&lt;br /&gt;
DISCLAIMER: If not stated otherwise, this tutorial is developed on Raspian 10 Buster.&lt;br /&gt;
&lt;br /&gt;
__TOC__&lt;br /&gt;
&lt;br /&gt;
= Initial Setup =&lt;br /&gt;
(Requirements: Raspberry Pi Versions 0, 2, 3, 4 (with 40-pin GPIO connector) )&lt;br /&gt;
* Create a fresh install of Raspbian Buster operating system e.g. from [https://www.raspberrypi.org/downloads/raspberry-pi-os/ here] on microSD card (any version with or without desktop). For an headless install (without monitor and mouse/keyboard), we recommend following this [https://www.raspberrypi.org/documentation/configuration/wireless/headless.md guide].&lt;br /&gt;
* Change the default password of the user &amp;quot;pi&amp;quot;. This is strongly recommended, since connections through ssh will be enabled in the next step which should always have a strong authentication metric. Change it with &amp;lt;code&amp;gt;sudo raspi-config&amp;lt;/code&amp;gt; &amp;gt;&amp;gt; Change User Password or on the command line with &amp;lt;code&amp;gt;passwd&amp;lt;/code&amp;gt;&lt;br /&gt;
* '''Enable the serial interface''' (UART) and '''disable the login shell''' via the UART. In terminal: &amp;lt;code&amp;gt;sudo raspi-config&amp;lt;/code&amp;gt; &amp;gt;&amp;gt; Interfacing Options &amp;gt;&amp;gt; Serial &amp;gt;&amp;gt; Login shell over serial: No &amp;gt;&amp;gt; Enable serial hardware: Yes&lt;br /&gt;
* Enable I2C Interface: In terminal: &amp;lt;code&amp;gt;sudo raspi-config&amp;lt;/code&amp;gt; &amp;gt;&amp;gt; Interfacing Options &amp;gt;&amp;gt; I2C &amp;gt;&amp;gt; Enable: Yes &amp;gt;&amp;gt; Reboot optional&lt;br /&gt;
* Enable SSH: The SSH protocol is needed if you want to remotely configure your headless Raspberry Pi. In a terminal: &amp;lt;code&amp;gt;sudo raspi-config&amp;lt;/code&amp;gt; &amp;gt;&amp;gt; Interfacing Options &amp;gt;&amp;gt; SSH &amp;gt;&amp;gt; Enable: Yes &amp;gt;&amp;gt; Reboot&lt;br /&gt;
* Configure the network connection: By default, the RPi is configured to automatically obtain an IP address when a connection is available and DHCP in your local network is active (this should be the case for most local/home networks).&lt;br /&gt;
* If you prefer a fixed IP address in a local network: edit the file /etc/dhcpcd.conf. Use the template and uncomment the &amp;quot;Example Static IP Configuration&amp;quot; section with your desired IP address.&lt;br /&gt;
* If network access should be established via WiFi, either configure it via the network configuration wizard in the graphical desktop environment (usually network icon in the system bar), or manually following these steps (either method is fine):&lt;br /&gt;
** Make sure that the wpa_supplicant package is installed:&amp;lt;code&amp;gt;sudo apt install wpasupplicant&amp;lt;/code&amp;gt;&lt;br /&gt;
** edit the file /etc/wpa_supplicant/wpa_supplicant.conf:&amp;lt;code&amp;gt;sudo nano /etc/wpa_supplicant/wpa_supplicant.conf&amp;lt;/code&amp;gt;&lt;br /&gt;
the configuration should look like this (non-relevant lines not shown):&lt;br /&gt;
&lt;br /&gt;
 update_config=1&lt;br /&gt;
 country=DE&amp;lt;/br&amp;gt;&lt;br /&gt;
 network={&lt;br /&gt;
        ssid=&amp;quot;&amp;lt;your network ssid&amp;gt;&amp;quot;&lt;br /&gt;
        psk=&amp;quot;&amp;lt;your wifi password&amp;gt;&amp;quot;&lt;br /&gt;
        key_mgmt=WPA-PSK&lt;br /&gt;
 }&lt;br /&gt;
Enter your WiFi's SSID and password in the indicated fields.&lt;br /&gt;
Finally, restart the system that the changes take effect.&lt;br /&gt;
Optionally, update your system by:&lt;br /&gt;
 sudo apt update &amp;amp;&amp;amp; sudo apt upgrade&lt;br /&gt;
&lt;br /&gt;
You should have a fully configured Raspbian system by now and are ready-to-go to set up the MuonPi in the next step.&lt;br /&gt;
&lt;br /&gt;
= MuonPi Setup =&lt;br /&gt;
(Requirements: a MuonPi board plugged onto the GPIO connector of the RPi)&lt;br /&gt;
* First, add the MuonPi apt repository to your system:&lt;br /&gt;
 sudo sh -c &amp;quot;curl https://archive.muonpi.org/muondetector.public.key | gpg --dearmor &amp;gt; /etc/apt/trusted.gpg.d/muondetector.gpg&amp;quot;&lt;br /&gt;
&lt;br /&gt;
 sudo sh -c &amp;quot;echo deb &amp;lt;nowiki&amp;gt;https://archive.muonpi.org/raspbian buster main&amp;lt;/nowiki&amp;gt; &amp;gt; /etc/apt/sources.list.d/muondetector.list&amp;quot;&lt;br /&gt;
* Update the repositories:&lt;br /&gt;
 sudo apt update&lt;br /&gt;
* Install the muondetector-daemon package and it's dependencies:&lt;br /&gt;
 sudo apt install muondetector-daemon&lt;br /&gt;
* Optional: install the Graphical User Interface (GUI) program to monitor and control the MuonPi locally&lt;br /&gt;
 sudo apt install muondetector-gui&lt;br /&gt;
* The GUI can connect to the MuonPi over network as well, so it can be installed on other computers in the local network. Currently, binary packages for Raspbian, Ubuntu and Windows are available. The Linux-based versions can be installed from the package repositories (execute steps 1,2 and 4 from this list). The Windows program can be downloaded directly from https://archive.muonpi.org and installed by simply unpacking the zip-archive.&lt;br /&gt;
&lt;br /&gt;
= Configuration and Start =&lt;br /&gt;
&lt;br /&gt;
Now the installation of the muondetector-daemon should be adapted to your setup:&lt;br /&gt;
&lt;br /&gt;
== Configuration ==&lt;br /&gt;
Edit the configuration file /etc/muondetector/muondetector.conf: &amp;lt;code&amp;gt;nano /etc/muondetector/muondetector.conf&amp;lt;/code&amp;gt;.&lt;br /&gt;
Change the settings according to your needs or leave them untouched, if unsure. The comments in the config file should guide you through any required modifications. One option, however, describes the placement of your detector. If you like, choose a stationID descriptor, eg.:&amp;lt;/br&amp;gt;&lt;br /&gt;
(file: &amp;lt;code&amp;gt;/etc/muondetector/muondetector.conf&amp;lt;/code&amp;gt;)&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;#&amp;lt;/nowiki&amp;gt; A unique identifier of the user's station&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;#&amp;lt;/nowiki&amp;gt; leave on default when the user operates a single station&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;#&amp;lt;/nowiki&amp;gt; all detectors of the user are distinguishable on the basis of this id&lt;br /&gt;
 stationID = &amp;quot;HomeOffice&amp;quot;&lt;br /&gt;
&lt;br /&gt;
(anything which best describes the location of your detector like e.g. &amp;quot;GarageSW&amp;quot;, &amp;quot;Bldg16Lab105&amp;quot;, &amp;quot;AtticNE&amp;quot;). If you operate only one stationary detector, it may as well be left on the default ID which is &amp;quot;0&amp;quot; (zero).&lt;br /&gt;
&lt;br /&gt;
'''Important''': When operating multiple detectors (under the same user account, see below) the stationID descriptor '''must''' be unique for each detector.&lt;br /&gt;
&lt;br /&gt;
== Login with your user credentials (only once) ==&lt;br /&gt;
&lt;br /&gt;
Before taking the MuonPi detector into operation, you have to set your credentials for publishing data messages to the server via [http://mqtt.org/ MQTT] protocol on first start. This can be managed in two ways, one secure and one where your credentials appear as plain text in the config file:&lt;br /&gt;
==== The Recommended Method ====&lt;br /&gt;
In a bash shell on the MuonPi, run the command &amp;lt;code&amp;gt;muondetector-login&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
'''Note that for the software version 2.0.0 the command to run is &amp;lt;code&amp;gt;sudo runuser -u muonuser -- muondetector-login&amp;lt;/code&amp;gt; instead.'''&lt;br /&gt;
&lt;br /&gt;
When asked for sudo access, enter the password of your raspberry pi user.&lt;br /&gt;
When asked for your user name and password, enter the credentials supplied to you by a MounPi.org official. The credentials are stored (not in clear text) for all further telemetry connections.&lt;br /&gt;
&lt;br /&gt;
==== Alternative Method ====&lt;br /&gt;
Uncomment the &amp;lt;code&amp;gt;mqtt_user&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;mqtt_password&amp;lt;/code&amp;gt; options in &amp;lt;code&amp;gt;/etc/muondetector/muondetector.conf&amp;lt;/code&amp;gt; and type your personal username and password into these fields between the quotation marks. Be aware, that these credentials are written in plain text into this file and can be retrieved by malware attacks. However, if you operate a station inside a home network and set up a strong ssh authentication (see above), you should be relatively safe.&lt;br /&gt;
&lt;br /&gt;
== Start the Daemon ==&lt;br /&gt;
The daemon should be enabled and started automatically after installation and on every reboot. However, when changing items in the config file, the changes have to be made effective by a daemon restart:&lt;br /&gt;
 sudo systemctl restart muondetector-daemon.service&lt;br /&gt;
&lt;br /&gt;
To see the current status of the daemon service use following command:&lt;br /&gt;
 systemctl status muondetector-daemon.service&lt;br /&gt;
&lt;br /&gt;
It can happen that the status shows 'failed' in red, usually a restart of the daemon service resolves this.&lt;br /&gt;
&lt;br /&gt;
If the service should not enable itself by default the status shows a grey 'not loaded'. To enable the service use:&lt;br /&gt;
 sudo systemctl enable muondetector-daemon.service&lt;/div&gt;</summary>
		<author><name>Dtreffenstaedt</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.muonpi.org/index.php?title=Raspberry_Pi_Setup&amp;diff=606</id>
		<title>Raspberry Pi Setup</title>
		<link rel="alternate" type="text/html" href="https://wiki.muonpi.org/index.php?title=Raspberry_Pi_Setup&amp;diff=606"/>
		<updated>2021-01-29T13:46:54Z</updated>

		<summary type="html">&lt;p&gt;Dtreffenstaedt: /* The Recommended Method */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This article will introduce to you, how to set up a Raspberry Pi from scratch with all software needed to run the detector hardware.&lt;br /&gt;
&lt;br /&gt;
DISCLAIMER: If not stated otherwise, this tutorial is developed on Raspian 10 Buster.&lt;br /&gt;
&lt;br /&gt;
__TOC__&lt;br /&gt;
&lt;br /&gt;
= Initial Setup =&lt;br /&gt;
(Requirements: Raspberry Pi Versions 0, 2, 3, 4 (with 40-pin GPIO connector) )&lt;br /&gt;
* Create a fresh install of Raspbian Buster operating system e.g. from [https://www.raspberrypi.org/downloads/raspberry-pi-os/ here] on microSD card (any version with or without desktop). For an headless install (without monitor and mouse/keyboard), we recommend following this [https://www.raspberrypi.org/documentation/configuration/wireless/headless.md guide].&lt;br /&gt;
* Change the default password of the user &amp;quot;pi&amp;quot;. This is strongly recommended, since connections through ssh will be enabled in the next step which should always have a strong authentication metric. Change it with &amp;lt;code&amp;gt;sudo raspi-config&amp;lt;/code&amp;gt; &amp;gt;&amp;gt; Change User Password or on the command line with &amp;lt;code&amp;gt;passwd&amp;lt;/code&amp;gt;&lt;br /&gt;
* Enable the serial interface (UART) and disable the login shell via the UART. In terminal: &amp;lt;code&amp;gt;sudo raspi-config&amp;lt;/code&amp;gt; &amp;gt;&amp;gt; Interfacing Options &amp;gt;&amp;gt; Serial &amp;gt;&amp;gt; Login shell over serial: No &amp;gt;&amp;gt; Enable serial hardware: Yes&lt;br /&gt;
* Enable I2C Interface: In terminal: &amp;lt;code&amp;gt;sudo raspi-config&amp;lt;/code&amp;gt; &amp;gt;&amp;gt; Interfacing Options &amp;gt;&amp;gt; I2C &amp;gt;&amp;gt; Enable: Yes &amp;gt;&amp;gt; Reboot optional&lt;br /&gt;
* Enable SSH: The SSH protocol is needed if you want to remotely configure your headless Raspberry Pi. In a terminal: &amp;lt;code&amp;gt;sudo raspi-config&amp;lt;/code&amp;gt; &amp;gt;&amp;gt; Interfacing Options &amp;gt;&amp;gt; SSH &amp;gt;&amp;gt; Enable: Yes &amp;gt;&amp;gt; Reboot&lt;br /&gt;
* Configure the network connection: By default, the RPi is configured to automatically obtain an IP address when a connection is available and DHCP in your local network is active (this should be the case for most local/home networks).&lt;br /&gt;
* If you prefer a fixed IP address in a local network: edit the file /etc/dhcpcd.conf. Use the template and uncomment the &amp;quot;Example Static IP Configuration&amp;quot; section with your desired IP address.&lt;br /&gt;
* If network access should be established via WiFi, either configure it via the network configuration wizard in the graphical desktop environment (usually network icon in the system bar), or manually following these steps (either method is fine):&lt;br /&gt;
** Make sure that the wpa_supplicant package is installed:&amp;lt;code&amp;gt;sudo apt install wpasupplicant&amp;lt;/code&amp;gt;&lt;br /&gt;
** edit the file /etc/wpa_supplicant/wpa_supplicant.conf:&amp;lt;code&amp;gt;sudo nano /etc/wpa_supplicant/wpa_supplicant.conf&amp;lt;/code&amp;gt;&lt;br /&gt;
the configuration should look like this (non-relevant lines not shown):&lt;br /&gt;
&lt;br /&gt;
 update_config=1&lt;br /&gt;
 country=DE&amp;lt;/br&amp;gt;&lt;br /&gt;
 network={&lt;br /&gt;
        ssid=&amp;quot;&amp;lt;your network ssid&amp;gt;&amp;quot;&lt;br /&gt;
        psk=&amp;quot;&amp;lt;your wifi password&amp;gt;&amp;quot;&lt;br /&gt;
        key_mgmt=WPA-PSK&lt;br /&gt;
 }&lt;br /&gt;
Enter your WiFi's SSID and password in the indicated fields.&lt;br /&gt;
Finally, restart the system that the changes take effect.&lt;br /&gt;
Optionally, update your system by:&lt;br /&gt;
 sudo apt update &amp;amp;&amp;amp; sudo apt upgrade&lt;br /&gt;
&lt;br /&gt;
You should have a fully configured Raspbian system by now and are ready-to-go to set up the MuonPi in the next step.&lt;br /&gt;
&lt;br /&gt;
= MuonPi Setup =&lt;br /&gt;
(Requirements: a MuonPi board plugged onto the GPIO connector of the RPi)&lt;br /&gt;
* First, add the MuonPi apt repository to your system:&lt;br /&gt;
 wget -qO - &amp;lt;nowiki&amp;gt;https://archive.muonpi.org/muondetector.public.key&amp;lt;/nowiki&amp;gt; | sudo apt-key add - &lt;br /&gt;
&lt;br /&gt;
 sudo sh -c &amp;quot;echo deb &amp;lt;nowiki&amp;gt;https://archive.muonpi.org/raspbian buster main&amp;lt;/nowiki&amp;gt; &amp;gt; /etc/apt/sources.list.d/muondetector.list&amp;quot;&lt;br /&gt;
* Update the repositories:&lt;br /&gt;
 sudo apt update&lt;br /&gt;
* Install the muondetector-daemon package and it's dependencies:&lt;br /&gt;
 sudo apt install muondetector-daemon&lt;br /&gt;
* Optional: install the Graphical User Interface (GUI) program to monitor and control the MuonPi locally&lt;br /&gt;
 sudo apt install muondetector-gui&lt;br /&gt;
* The GUI can connect to the MuonPi over network as well, so it can be installed on other computers in the local network. Currently, binary packages for Raspbian, Ubuntu and Windows are available. The Linux-based versions can be installed from the package repositories (execute steps 1,2 and 4 from this list). The Windows program can be downloaded directly from https://archive.muonpi.org and installed by simply unpacking the zip-archive.&lt;br /&gt;
&lt;br /&gt;
= Configuration and Start =&lt;br /&gt;
&lt;br /&gt;
Now the installation of the muondetector-daemon should be adapted to your setup:&lt;br /&gt;
&lt;br /&gt;
== Configuration ==&lt;br /&gt;
Edit the configuration file /etc/muondetector/muondetector.conf: &amp;lt;code&amp;gt;nano /etc/muondetector/muondetector.conf&amp;lt;/code&amp;gt;.&lt;br /&gt;
Change the settings according to your needs or leave them untouched, if unsure. The comments in the config file should guide you through any required modifications. One option, however, describes the placement of your detector. If you like, choose a stationID descriptor, eg.:&amp;lt;/br&amp;gt;&lt;br /&gt;
(file: &amp;lt;code&amp;gt;/etc/muondetector/muondetector.conf&amp;lt;/code&amp;gt;)&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;#&amp;lt;/nowiki&amp;gt; A unique identifier of the user's station&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;#&amp;lt;/nowiki&amp;gt; leave on default when the user operates a single station&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;#&amp;lt;/nowiki&amp;gt; all detectors of the user are distinguishable on the basis of this id&lt;br /&gt;
 stationID = &amp;quot;HomeOffice&amp;quot;&lt;br /&gt;
&lt;br /&gt;
(anything which best describes the location of your detector like e.g. &amp;quot;GarageSW&amp;quot;, &amp;quot;Bldg16Lab105&amp;quot;, &amp;quot;AtticNE&amp;quot;). If you operate only one stationary detector, it may as well be left on the default ID which is &amp;quot;0&amp;quot; (zero).&lt;br /&gt;
&lt;br /&gt;
'''Important''': When operating multiple detectors (under the same user account, see below) the stationID descriptor '''must''' be unique for each detector.&lt;br /&gt;
&lt;br /&gt;
== Login with your user credentials (only once) ==&lt;br /&gt;
&lt;br /&gt;
Before taking the MuonPi detector into operation, you have to set your credentials for publishing data messages to the server via [http://mqtt.org/ MQTT] protocol on first start. This can be managed in two ways, one secure and one where your credentials appear as plain text in the config file:&lt;br /&gt;
==== The Recommended Method ====&lt;br /&gt;
In a bash shell on the MuonPi, run the command &amp;lt;code&amp;gt;muondetector-login&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
'''Note that for the software version 2.0.0 the command to run is &amp;lt;code&amp;gt;sudo runuser -u muonuser -- muondetector-login&amp;lt;/code&amp;gt; instead.'''&lt;br /&gt;
&lt;br /&gt;
When asked for sudo access, enter the password of your raspberry pi user.&lt;br /&gt;
When asked for your user name and password, enter the credentials supplied to you by a MounPi.org official. The credentials are stored (not in clear text) for all further telemetry connections.&lt;br /&gt;
&lt;br /&gt;
==== Alternative Method ====&lt;br /&gt;
Uncomment the &amp;lt;code&amp;gt;mqtt_user&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;mqtt_password&amp;lt;/code&amp;gt; options in &amp;lt;code&amp;gt;/etc/muondetector/muondetector.conf&amp;lt;/code&amp;gt; and type your personal username and password into these fields between the quotation marks. Be aware, that these credentials are written in plain text into this file and can be retrieved by malware attacks. However, if you operate a station inside a home network and set up a strong ssh authentication (see above), you should be relatively safe.&lt;br /&gt;
&lt;br /&gt;
== Start the Daemon ==&lt;br /&gt;
The daemon should be enabled and started automatically after installation and on every reboot. However, when changing items in the config file, the changes have to be made effective by a daemon restart:&lt;br /&gt;
 sudo systemctl restart muondetector-daemon.service&lt;br /&gt;
&lt;br /&gt;
To see the current status of the daemon service use following command:&lt;br /&gt;
 systemctl status muondetector-daemon.service&lt;br /&gt;
&lt;br /&gt;
It can happen that the status shows 'failed' in red, usually a restart of the daemon service resolves this.&lt;br /&gt;
&lt;br /&gt;
If the service should not enable itself by default the status shows a grey 'not loaded'. To enable the service use:&lt;br /&gt;
 sudo systemctl enable muondetector-daemon.service&lt;/div&gt;</summary>
		<author><name>Dtreffenstaedt</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.muonpi.org/index.php?title=Raspberry_Pi_Setup&amp;diff=605</id>
		<title>Raspberry Pi Setup</title>
		<link rel="alternate" type="text/html" href="https://wiki.muonpi.org/index.php?title=Raspberry_Pi_Setup&amp;diff=605"/>
		<updated>2021-01-29T13:45:50Z</updated>

		<summary type="html">&lt;p&gt;Dtreffenstaedt: /* The Recommended Method */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This article will introduce to you, how to set up a Raspberry Pi from scratch with all software needed to run the detector hardware.&lt;br /&gt;
&lt;br /&gt;
DISCLAIMER: If not stated otherwise, this tutorial is developed on Raspian 10 Buster.&lt;br /&gt;
&lt;br /&gt;
__TOC__&lt;br /&gt;
&lt;br /&gt;
= Initial Setup =&lt;br /&gt;
(Requirements: Raspberry Pi Versions 0, 2, 3, 4 (with 40-pin GPIO connector) )&lt;br /&gt;
* Create a fresh install of Raspbian Buster operating system e.g. from [https://www.raspberrypi.org/downloads/raspberry-pi-os/ here] on microSD card (any version with or without desktop). For an headless install (without monitor and mouse/keyboard), we recommend following this [https://www.raspberrypi.org/documentation/configuration/wireless/headless.md guide].&lt;br /&gt;
* Change the default password of the user &amp;quot;pi&amp;quot;. This is strongly recommended, since connections through ssh will be enabled in the next step which should always have a strong authentication metric. Change it with &amp;lt;code&amp;gt;sudo raspi-config&amp;lt;/code&amp;gt; &amp;gt;&amp;gt; Change User Password or on the command line with &amp;lt;code&amp;gt;passwd&amp;lt;/code&amp;gt;&lt;br /&gt;
* Enable the serial interface (UART) and disable the login shell via the UART. In terminal: &amp;lt;code&amp;gt;sudo raspi-config&amp;lt;/code&amp;gt; &amp;gt;&amp;gt; Interfacing Options &amp;gt;&amp;gt; Serial &amp;gt;&amp;gt; Login shell over serial: No &amp;gt;&amp;gt; Enable serial hardware: Yes&lt;br /&gt;
* Enable I2C Interface: In terminal: &amp;lt;code&amp;gt;sudo raspi-config&amp;lt;/code&amp;gt; &amp;gt;&amp;gt; Interfacing Options &amp;gt;&amp;gt; I2C &amp;gt;&amp;gt; Enable: Yes &amp;gt;&amp;gt; Reboot optional&lt;br /&gt;
* Enable SSH: The SSH protocol is needed if you want to remotely configure your headless Raspberry Pi. In a terminal: &amp;lt;code&amp;gt;sudo raspi-config&amp;lt;/code&amp;gt; &amp;gt;&amp;gt; Interfacing Options &amp;gt;&amp;gt; SSH &amp;gt;&amp;gt; Enable: Yes &amp;gt;&amp;gt; Reboot&lt;br /&gt;
* Configure the network connection: By default, the RPi is configured to automatically obtain an IP address when a connection is available and DHCP in your local network is active (this should be the case for most local/home networks).&lt;br /&gt;
* If you prefer a fixed IP address in a local network: edit the file /etc/dhcpcd.conf. Use the template and uncomment the &amp;quot;Example Static IP Configuration&amp;quot; section with your desired IP address.&lt;br /&gt;
* If network access should be established via WiFi, either configure it via the network configuration wizard in the graphical desktop environment (usually network icon in the system bar), or manually following these steps (either method is fine):&lt;br /&gt;
** Make sure that the wpa_supplicant package is installed:&amp;lt;code&amp;gt;sudo apt install wpasupplicant&amp;lt;/code&amp;gt;&lt;br /&gt;
** edit the file /etc/wpa_supplicant/wpa_supplicant.conf:&amp;lt;code&amp;gt;sudo nano /etc/wpa_supplicant/wpa_supplicant.conf&amp;lt;/code&amp;gt;&lt;br /&gt;
the configuration should look like this (non-relevant lines not shown):&lt;br /&gt;
&lt;br /&gt;
 update_config=1&lt;br /&gt;
 country=DE&amp;lt;/br&amp;gt;&lt;br /&gt;
 network={&lt;br /&gt;
        ssid=&amp;quot;&amp;lt;your network ssid&amp;gt;&amp;quot;&lt;br /&gt;
        psk=&amp;quot;&amp;lt;your wifi password&amp;gt;&amp;quot;&lt;br /&gt;
        key_mgmt=WPA-PSK&lt;br /&gt;
 }&lt;br /&gt;
Enter your WiFi's SSID and password in the indicated fields.&lt;br /&gt;
Finally, restart the system that the changes take effect.&lt;br /&gt;
Optionally, update your system by:&lt;br /&gt;
 sudo apt update &amp;amp;&amp;amp; sudo apt upgrade&lt;br /&gt;
&lt;br /&gt;
You should have a fully configured Raspbian system by now and are ready-to-go to set up the MuonPi in the next step.&lt;br /&gt;
&lt;br /&gt;
= MuonPi Setup =&lt;br /&gt;
(Requirements: a MuonPi board plugged onto the GPIO connector of the RPi)&lt;br /&gt;
* First, add the MuonPi apt repository to your system:&lt;br /&gt;
 wget -qO - &amp;lt;nowiki&amp;gt;https://archive.muonpi.org/muondetector.public.key&amp;lt;/nowiki&amp;gt; | sudo apt-key add - &lt;br /&gt;
&lt;br /&gt;
 sudo sh -c &amp;quot;echo deb &amp;lt;nowiki&amp;gt;https://archive.muonpi.org/raspbian buster main&amp;lt;/nowiki&amp;gt; &amp;gt; /etc/apt/sources.list.d/muondetector.list&amp;quot;&lt;br /&gt;
* Update the repositories:&lt;br /&gt;
 sudo apt update&lt;br /&gt;
* Install the muondetector-daemon package and it's dependencies:&lt;br /&gt;
 sudo apt install muondetector-daemon&lt;br /&gt;
* Optional: install the Graphical User Interface (GUI) program to monitor and control the MuonPi locally&lt;br /&gt;
 sudo apt install muondetector-gui&lt;br /&gt;
* The GUI can connect to the MuonPi over network as well, so it can be installed on other computers in the local network. Currently, binary packages for Raspbian, Ubuntu and Windows are available. The Linux-based versions can be installed from the package repositories (execute steps 1,2 and 4 from this list). The Windows program can be downloaded directly from https://archive.muonpi.org and installed by simply unpacking the zip-archive.&lt;br /&gt;
&lt;br /&gt;
= Configuration and Start =&lt;br /&gt;
&lt;br /&gt;
Now the installation of the muondetector-daemon should be adapted to your setup:&lt;br /&gt;
&lt;br /&gt;
== Configuration ==&lt;br /&gt;
Edit the configuration file /etc/muondetector/muondetector.conf: &amp;lt;code&amp;gt;nano /etc/muondetector/muondetector.conf&amp;lt;/code&amp;gt;.&lt;br /&gt;
Change the settings according to your needs or leave them untouched, if unsure. The comments in the config file should guide you through any required modifications. One option, however, describes the placement of your detector. If you like, choose a stationID descriptor, eg.:&amp;lt;/br&amp;gt;&lt;br /&gt;
(file: &amp;lt;code&amp;gt;/etc/muondetector/muondetector.conf&amp;lt;/code&amp;gt;)&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;#&amp;lt;/nowiki&amp;gt; A unique identifier of the user's station&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;#&amp;lt;/nowiki&amp;gt; leave on default when the user operates a single station&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;#&amp;lt;/nowiki&amp;gt; all detectors of the user are distinguishable on the basis of this id&lt;br /&gt;
 stationID = &amp;quot;HomeOffice&amp;quot;&lt;br /&gt;
&lt;br /&gt;
(anything which best describes the location of your detector like e.g. &amp;quot;GarageSW&amp;quot;, &amp;quot;Bldg16Lab105&amp;quot;, &amp;quot;AtticNE&amp;quot;). If you operate only one stationary detector, it may as well be left on the default ID which is &amp;quot;0&amp;quot; (zero).&lt;br /&gt;
&lt;br /&gt;
'''Important''': When operating multiple detectors (under the same user account, see below) the stationID descriptor '''must''' be unique for each detector.&lt;br /&gt;
&lt;br /&gt;
== Login with your user credentials (only once) ==&lt;br /&gt;
&lt;br /&gt;
Before taking the MuonPi detector into operation, you have to set your credentials for publishing data messages to the server via [http://mqtt.org/ MQTT] protocol on first start. This can be managed in two ways, one secure and one where your credentials appear as plain text in the config file:&lt;br /&gt;
==== The Recommended Method ====&lt;br /&gt;
In a bash shell on the MuonPi, run the command &amp;lt;code&amp;gt;muondetector-login&amp;lt;/code&amp;gt;.&lt;br /&gt;
'''Note that for the software version 2.0.0 the command to run is &amp;lt;code&amp;gt;sudo runuser -u muonuser -- muondetector-login&amp;lt;/code&amp;gt; instead.'''&lt;br /&gt;
When asked for sudo access, enter the password of your raspberry pi user.&lt;br /&gt;
When asked for your user name and password, enter the credentials supplied to you by a MounPi.org official. The credentials are stored (not in clear text) for all further telemetry connections.&lt;br /&gt;
&lt;br /&gt;
==== Alternative Method ====&lt;br /&gt;
Uncomment the &amp;lt;code&amp;gt;mqtt_user&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;mqtt_password&amp;lt;/code&amp;gt; options in &amp;lt;code&amp;gt;/etc/muondetector/muondetector.conf&amp;lt;/code&amp;gt; and type your personal username and password into these fields between the quotation marks. Be aware, that these credentials are written in plain text into this file and can be retrieved by malware attacks. However, if you operate a station inside a home network and set up a strong ssh authentication (see above), you should be relatively safe.&lt;br /&gt;
&lt;br /&gt;
== Start the Daemon ==&lt;br /&gt;
The daemon should be enabled and started automatically after installation and on every reboot. However, when changing items in the config file, the changes have to be made effective by a daemon restart:&lt;br /&gt;
 sudo systemctl restart muondetector-daemon.service&lt;br /&gt;
&lt;br /&gt;
To see the current status of the daemon service use following command:&lt;br /&gt;
 systemctl status muondetector-daemon.service&lt;br /&gt;
&lt;br /&gt;
It can happen that the status shows 'failed' in red, usually a restart of the daemon service resolves this.&lt;br /&gt;
&lt;br /&gt;
If the service should not enable itself by default the status shows a grey 'not loaded'. To enable the service use:&lt;br /&gt;
 sudo systemctl enable muondetector-daemon.service&lt;/div&gt;</summary>
		<author><name>Dtreffenstaedt</name></author>
		
	</entry>
</feed>