<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-GB">
	<id>https://wiki.muonpi.org/index.php?action=history&amp;feed=atom&amp;title=Raspberry_Pi_Setup_de</id>
	<title>Raspberry Pi Setup de - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.muonpi.org/index.php?action=history&amp;feed=atom&amp;title=Raspberry_Pi_Setup_de"/>
	<link rel="alternate" type="text/html" href="https://wiki.muonpi.org/index.php?title=Raspberry_Pi_Setup_de&amp;action=history"/>
	<updated>2026-04-21T04:02:14Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.34.1</generator>
	<entry>
		<id>https://wiki.muonpi.org/index.php?title=Raspberry_Pi_Setup_de&amp;diff=582&amp;oldid=prev</id>
		<title>Kim at 11:50, 7 January 2021</title>
		<link rel="alternate" type="text/html" href="https://wiki.muonpi.org/index.php?title=Raspberry_Pi_Setup_de&amp;diff=582&amp;oldid=prev"/>
		<updated>2021-01-07T11:50:13Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en-GB&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;Revision as of 11:50, 7 January 2021&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l1&quot; &gt;Line 1:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 1:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;In diesem Artikel wird erklärt, wie man einen Raspberry Pi von Grund auf mit der notwendigen Software für die Detektorhardware einrichtet.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;In diesem Artikel wird erklärt, wie man einen Raspberry Pi von Grund auf mit der notwendigen Software für die Detektorhardware einrichtet.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;DISCLAIMER: Wenn nicht anders angegeben, wurde dieses Tutorial &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;auf &lt;/del&gt;Raspian 10 Buster entwickelt.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;DISCLAIMER: Wenn nicht anders angegeben, wurde dieses Tutorial &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;für &lt;/ins&gt;Raspian 10 Buster entwickelt.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;__TOC__&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;__TOC__&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Kim</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.muonpi.org/index.php?title=Raspberry_Pi_Setup_de&amp;diff=581&amp;oldid=prev</id>
		<title>Kim at 11:48, 7 January 2021</title>
		<link rel="alternate" type="text/html" href="https://wiki.muonpi.org/index.php?title=Raspberry_Pi_Setup_de&amp;diff=581&amp;oldid=prev"/>
		<updated>2021-01-07T11:48:05Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;a href=&quot;https://wiki.muonpi.org/index.php?title=Raspberry_Pi_Setup_de&amp;amp;diff=581&amp;amp;oldid=580&quot;&gt;Show changes&lt;/a&gt;</summary>
		<author><name>Kim</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.muonpi.org/index.php?title=Raspberry_Pi_Setup_de&amp;diff=580&amp;oldid=prev</id>
		<title>Kim: Created page with &quot;This article will introduce to you, how to set up a Raspberry Pi from scratch with all software needed to run the detector hardware.  DISCLAIMER: If not stated otherwise, this...&quot;</title>
		<link rel="alternate" type="text/html" href="https://wiki.muonpi.org/index.php?title=Raspberry_Pi_Setup_de&amp;diff=580&amp;oldid=prev"/>
		<updated>2021-01-07T10:59:19Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;This article will introduce to you, how to set up a Raspberry Pi from scratch with all software needed to run the detector hardware.  DISCLAIMER: If not stated otherwise, this...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&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 version 2 or above (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)&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.sh&amp;lt;/code&amp;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>Kim</name></author>
		
	</entry>
</feed>