##// END OF EJS Templates
Update README.md...
drtyhlpr -
r12:6886714e1942
parent child
Show More
@@ -1,10 +1,86
1 # rpi2-gen-image
1 # rpi2-gen-image
2 Advanced debian "jessie" bootstrap script for RPi2
2 ## Introduction
3 `rpi2-gen-image.sh` is an advanced Debian Linux bootstrapping shell script for generating Debian OS images for the Raspberry 2 (RPi2) computer. The script at this time only supports the bootstrapping of the current stable Debian 8 "jessie" release.
3
4
4 # examples
5 ## Build dependencies
6 The following list of Debian packages must be installed on the build system because they are essentially required for the bootstrapping process. The script will check if all required packages are installed and missing packages will be installed automatically if confirmed by the user.
7
8 ```debootstrap debian-archive-keyring qemu-user-static dosfstools rsync bmap-tools whois git-core```
9
10 ## Command-line parameters
11 The script accepts certain command-line parameters to enable or disable specific OS features, services and configuration settings. These parameters are passed to the `rpi2-gen-image.sh` script via (simple) shell-variables. Unlike enviroment shell-variables (simple) shell-variables are defined at the beginning of the command-line call of the `rpi2-gen-image.sh` script.
12
13 #####Command-line examples:
5 ```shell
14 ```shell
6 ENABLE_UBOOT=true ./rpi2-gen-image.sh
15 ENABLE_UBOOT=true ./rpi2-gen-image.sh
7 ENABLE_CONSOLE=false ENABLE_IPV6=false ./rpi2-gen-image.sh
16 ENABLE_CONSOLE=false ENABLE_IPV6=false ./rpi2-gen-image.sh
8 ENABLE_HARDNET=true ENABLE_IPTABLES=true /rpi2-gen-image.sh
17 ENABLE_HARDNET=true ENABLE_IPTABLES=true /rpi2-gen-image.sh
9 APT_SERVER=ftp.de.debian.org APT_PROXY="http://127.0.0.1:3142/" ./rpi2-gen-image.sh
18 APT_SERVER=ftp.de.debian.org APT_PROXY="http://127.0.0.1:3142/" ./rpi2-gen-image.sh
10 ```
19 ```
20
21 #### APT settings:
22 ##### `APT_SERVER`="ftp.debian.org"
23 Set Debian packages server address. Choose a server from the list of Debian wordwide [mirror sites](https://www.debian.org/mirror/list). Using a nearby server will probably speed-up all required downloads within the bootstrapping process.
24
25 ##### `APT_PROXY`=""
26 Set Proxy server address. Using a local Proxy-Cache like `apt-cacher-ng` will speed-up the bootstrapping process because all required Debian packages will only be downloaded from the Debian mirror site once.
27
28 #### General system settings:
29 ##### `HOSTNAME`="rpi2-jessie"
30 Set system host name. It is recommended that the host name is unique in the corresponding subnet.
31
32 ##### `PASSWORD`="raspberry"
33 Set system root password. It is **STRONGLY** recommended that you choose a custom password.
34
35 ##### `DEFLOCAL`="en_US.UTF-8"
36 Set default system locale and keyboard layout. This setting can also be changed inside the running OS using the `dpkg-reconfigure locales` command.
37
38 ##### `TIMEZONE`="Europe/Berlin"
39 Set default system timezone. All available timezones can be found in the `/usr/share/zoneinfo/` directory. This setting can also be changed inside the running OS using the `dpkg-reconfigure tzdata` command.
40
41 #### Basic system features:
42 ##### `ENABLE_CONSOLE`=true
43 Enable console output
44
45 ##### `ENABLE_IPV6`=true
46 Enable IPv6 support
47
48 ##### `ENABLE_SSHD`=true
49 Install and enable OpenSSH service
50
51 ##### `ENABLE_SOUND`=true
52 Enable sound hardware and install Advanced Linux Sound Architecture
53
54 ##### `ENABLE_HWRANDOM`=true
55 Enable Hardware Random Number Generator
56
57 ##### `ENABLE_MINGPU`=false
58 Minimize the amount of shared memory reserverd for the GPU
59
60 ##### `ENABLE_DBUS`=true
61 Install and enable D-Bus message bus
62
63 ##### `ENABLE_XORG`=false
64 Install Xorg open-source X Window System
65
66 ##### `ENABLE_FLUXBOX`=false
67 Install Fluxbox window manager for the X Window System
68
69 #### Advanced sytem features:
70 ##### `ENABLE_UBOOT`=false
71 Replace default RPi bootloader with U-Boot bootloader
72
73 ##### `ENABLE_IPTABLES`=false
74 Enable iptables IPv4/IPv6 firewall
75
76 ##### `ENABLE_HARDNET`=false
77 Enable IPv4/IPv6 network stack hardening settings
78
79 ## Flashing the image file
80 After the image file was succesfully created by the `rpi2-gen-image.sh` script it can be copied to the microSD card that will be used by the RPi2 computer. This can be performed by using the tools `bmaptool` or `dd`. Using `bmaptool` will probably speed-up the copy process because `bmaptool` copies more wisely than `dd`.
81
82 #####Flashing examples:
83 ```shell
84 bmaptool copy ./images/jessie/2015-12-13-debian-jessie.img /dev/mmcblk0
85 dd bs=4M if=./images/jessie/2015-12-13-debian-jessie.img of=/dev/mmcblk
86 ```
General Comments 0
Vous devez vous connecter pour laisser un commentaire. Se connecter maintenant