raspberry-pi-tools/README.md

59 lines
1.8 KiB
Markdown
Raw Normal View History

2018-06-29 14:10:03 +02:00
# Raspberry Pi sdc tools
This repository contains some shell scripts to install Arch Linux for the Raspberry Pi on a SD-Card and to backup a SD-Card.
2020-04-30 00:04:01 +02:00
## Todo
- Implement ssh configuration
- Implement wifi automation
2020-04-30 17:43:27 +02:00
2020-04-29 21:44:50 +02:00
## Setup
2020-04-29 23:33:37 +02:00
### SD-Card
#### Guided
2020-04-29 21:44:50 +02:00
To install a Linux distribution manually on a SD card type in:
2017-03-13 17:56:51 +01:00
2018-06-29 14:10:03 +02:00
```bash
2020-04-29 18:35:35 +02:00
bash ./sd_setup.sh
2018-06-29 14:10:03 +02:00
```
2020-04-29 23:33:37 +02:00
#### Piped
2020-04-29 21:44:50 +02:00
To pase the configuration to the program use this syntax:
```bash
(
2020-04-30 16:50:51 +02:00
echo "$USER" # | The username
echo "mmcblk1" # | The device
2020-04-30 17:31:30 +02:00
echo "3" # | The raspberry pi number
echo "arch" # | The operation system
2020-04-30 16:50:51 +02:00
echo "n" # | Force image download
echo "n" # | Transfer image
#echo "n" # ├── Overwrite device before copying
2020-04-30 17:31:30 +02:00
echo "test12345" # | The user password
echo "test12345" # | The root password
2020-04-30 17:42:37 +02:00
echo "example-host" # | The hostname
echo "y" # | Setup Wifi on target system
2020-04-29 21:44:50 +02:00
)| sudo bash ./sd_setup.sh
```
2020-04-29 23:33:37 +02:00
### System
#### Arch
```bash
pacman-key --init
pacman-key --populate archlinuxarm
2020-04-30 00:04:01 +02:00
install -m640 /etc/netctl/examples/wireless-wpa domo-de-kosmopolitoj-wpa
nano domo-de-kosmopolitoj-wpa
netctl start domo-de-kosmopolitoj-wpa
netctl enable domo-de-kosmopolitoj-wpa
2020-04-29 23:33:37 +02:00
```
#### Ubuntu\\Debian
```bash
sudo apt update
sudo apt upgrade
```
2020-04-29 21:44:50 +02:00
## Backup
2018-06-29 14:10:03 +02:00
To backup a SD card type in:
2017-03-13 17:56:51 +01:00
2018-06-29 14:10:03 +02:00
```bash
bash ./sd_backup.sh
```
2017-03-13 17:56:51 +01:00
2018-06-29 14:10:03 +02:00
## License
2017-03-13 17:56:51 +01:00
2018-06-29 14:10:03 +02:00
<a rel="license" href="http://creativecommons.org/licenses/by-nc/4.0/"><img alt="Creative Commons License" style="border-width:0" src="https://i.creativecommons.org/l/by-nc/4.0/88x31.png" /></a><br />This work is licensed under a <a rel="license" href="http://creativecommons.org/licenses/by-nc/4.0/">Creative Commons Attribution-NonCommercial 4.0 International License</a>.