Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/kounch/argonone

Argon One Service and Control Scripts por Raspberry Pi 3B/3B+
https://github.com/kounch/argonone

Last synced: about 1 month ago
JSON representation

Argon One Service and Control Scripts por Raspberry Pi 3B/3B+

Awesome Lists containing this project

README

        

# ArgonOne

*** THIS CODE IS ARCHIVED AND NO LONGER MAINTAINED ***

This Arch Linux Package installs all needed scripts and services and configures a Raspberry Pi 3B/3B+ for [Argon ONE Mini Computer Case](https://www.argon40.com/argon1.html). Raspberry Pi 4B is also supported, but you need use a different [branch](https://github.com/kounch/argonone/tree/feature/RaspberryPi4), which has been patched just for this SBC (scroll down to check out notes).

## Raspberry Pi 3B/3B+ notes
Here are some notes about the Raspberry Pi 3B/3B+ installation procedure.

### How to use

1. Clone the repository or just download [PKGBUILD](https://raw.githubusercontent.com/kounch/argonone/master/PKGBUILD) and [argonone.install](https://raw.githubusercontent.com/kounch/argonone/master/argonone.install) files
2. ```makepkg --install```

### What this package installer does

These are the steps that the installation takes

#### Packages needed

Install:

```bash
pacman -S --needed i2c-tools lm_sensors
```

#### System Configuration

Edit ```/boot/config.txt``` and add (if needed):

```bash
dtparam=i2c_arm=on
dtparam=i2c-1=on
```

Edit ```/etc/modules-load.d/raspberrypi.conf```and add (if needed):

```bash
i2c-dev
i2c-bcm2835
```

You must reboot for these changes to take effect.

#### Virtual Environment Configuration

Create a new Python virtual environment (version 3.3 or higher):

```bash
python -m venv --clear /opt/argonone
source /opt/argonone/bin/activate
pip install pysmbus RPi.GPIO
deactivate
```

#### Files

##### Config Script

Create and then add permissions:

```bash
chmod 755 /usr/bin/argonone-config
```

#### Shutdown Script

Create and then add permissions:

```bash
chmod 755 /lib/systemd/system-shutdown/argononed-poweroff.py
```

##### Daemon Config File

Create and then add permissions:

```bash
chmod 666 /etc/argononed.conf
```

#### Power Button Script

Create and then add permissions:

```bash
chmod 755 /opt/argonone/bin/argononed.py
```

#### Daemon Fan Service

Create and then add permissions:

```bash
chmod 644 /lib/systemd/system/argononed.service
```

Enable to launch automatically:

```bash
systemctl daemon-reload
systemctl enable argononed.service
```
## Raspberry Pi 4 notes & support
There's already a [branch](https://github.com/kounch/argonone/tree/feature/RaspberryPi4) patched for Raspberry Pi 4 in this repository.
Special thanks to [@Elrondo46](https://github.com/Elrondo46) for maintaining fork, which has been already merged to [/feature/RaspberryPi4](https://github.com/kounch/argonone/tree/feature/RaspberryPi4) branch.