User Tools

Site Tools


packet:linbpq_pi_installation

Differences

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

Link to this comparison view

Next revision
Previous revision
packet:linbpq_pi_installation [2023/04/03 22:10] – created m0ltepacket:linbpq_pi_installation [2023/10/01 22:20] (current) – [Installing LinBPQ on a Raspberry Pi] m0lte
Line 2: Line 2:
  
 This is a document which describes the general case of installing and configuring LinBPQ on a Pi - this is probably not the instructions to establish a node specific to the OARC national packet project network. This is a document which describes the general case of installing and configuring LinBPQ on a Pi - this is probably not the instructions to establish a node specific to the OARC national packet project network.
 +
 +**NB this process has now been superseded since one of our members has kindly established an apt repo containing a build of LinBPQ.\\ 
 +See [[packet:linbpq-apt-installation]] for a guide.**
  
 ===== Assumptions ===== ===== Assumptions =====
Line 100: Line 103:
      Active: active (running) since Thu 2023-01-05 10:49:04 GMT; 1min 34s ago      Active: active (running) since Thu 2023-01-05 10:49:04 GMT; 1min 34s ago
 \\ \\
 +
 +===== Suggestion: run as non-root =====
 +The script above runs bpq as the root user, which is generally considered to be bad practise.  I made the following changes to make it run as my normal pi user (szymon):
 +
 +1. Run the following command to stop the bpq service:
 +<code>
 +sudo systemctl stop bpq
 +</code>
 +2. Run the following command to change ownership of all the configuration files:
 +<code>
 +sudo chown -R szymon:szymon ~/linbpq
 +</code>
 +3. Edit the systemd configuration for bpq using sudo, for example with:
 +<code>
 +sudo nano /lib/systemd/system/bpq.service
 +</code>
 +and update the file to include user and group information in the **[Service]** section:
 +<code>
 +[Service]
 +User=szymon
 +Group=szymon
 +</code>
 +4. Run the setcap command to allow access to lower ports and captures as needed:
 +<code>
 +sudo setcap "CAP_NET_ADMIN=ep CAP_NET_RAW=ep CAP_NET_BIND_SERVICE=ep" ~/linbpq/linbpq
 +</code>
 +5. Restart the bpq service:
 +<code>
 +sudo systemctl start bpq
 +</code>
  
 ===== What Next? Access your node ===== ===== What Next? Access your node =====
packet/linbpq_pi_installation.1680559834.txt.gz · Last modified: 2023/04/03 22:10 by m0lte