Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mazkdevf/raspberrypi3b-usb-formatter
https://github.com/mazkdevf/raspberrypi3b-usb-formatter
bash format formatter python raspberry raspberry-pi-3 usb
Last synced: 27 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/mazkdevf/raspberrypi3b-usb-formatter
- Owner: mazkdevf
- License: mit
- Created: 2023-07-31T15:44:23.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-03-13T02:45:18.000Z (8 months ago)
- Last Synced: 2024-09-28T10:20:58.087Z (about 1 month ago)
- Topics: bash, format, formatter, python, raspberry, raspberry-pi-3, usb
- Language: Python
- Homepage:
- Size: 17.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# raspberrypi3b-usb-formatter
## Skriptin installaus
- Pythoni tarvitaan!1. sudo pip install rpi_ws281x adafruit-circuitpython-neopixel
### Daemon startup skripti:
1.
```
sudo nano /etc/systemd/system/usbf.service
```2.
```bash
[Unit]
Description=USB Formatoija
After=multi-user.target[Service]
ExecStart=/bin/bash -c "sudo /usr/bin/python3 /home/rasp/usbf/format.py"
WorkingDirectory=/home/rasp/usbf
User=root
Restart=always
Environment="SUDO_COMMAND=/usr/bin/python3 /home/rasp/usbf/format.py"[Install]
WantedBy=multi-user.target
```3. CTRL + X + Y + ENTER
4. Restarttaus
```bash
sudo systemctl daemon-reload
sudo systemctl restart usbf.service
```5. Status
```bash
sudo systemctl status usbf.service
```![kuva](https://github.com/mazkdevf/raspberrypi3b-usb-formatter/assets/79049205/c7461e8e-4052-471b-987e-ed7ff4444b51)