- A linux machine with a SD card slot.
- Installed
tar
andfdisk
.
1. Download this repository
git clone https://github.com/art1415926535/Raspberry-Pi-scripts.git && cd Raspberry-Pi-scripts
**2. Set the permissions** ``` chmod +x setup_sdcard.sh && chmod +x write_image.sh ```
**3. Run scripts** ``` ./setup_sdcard.sh && ./write_image.sh ``` * `` - path to SD Card * `` - number of version Raspberry Pi or path to image Arch Linux
example:
./setup_sdcard.sh /dev/mmcblk0 && ./write_image.sh 2
Download this repository
git clone https://github.com/art1415926535/Raspberry-Pi-scripts.git
cd Raspberry-Pi-scripts
Make setup_sdcard.sh and write_image.sh executable:
chmod +x setup_sdcard.sh && chmod +x write_image.sh
- setup_sdcard.sh - formate the SD card with fdisk and create filesystems.
- write_image.sh - download the image from the website (if you want) and write the files onto the SD Card.
./setup_sdcard.sh /dev/mmcblk0
Wait message:
Done! To continue run write_image.sh
If you already downloaded image go to step 3.1.
./write_image.sh 1
- for Raspberry Pi 1./write_image.sh 2
- for Raspberry Pi 2
If directory already contain image you you will get a question:
Re-download the image from the website [yes/no]?
After write image onto the SD Card go to step 4.
./write_image.sh <path_to_image>
Use the serial console or SSH to the IP address given to the board by your router.
Login as the default user alarm
with the password alarm
.
The default root
password is root
.