Difference between revisions of "Raspberry Pi Init Scripts"
Chris Tyler (talk | contribs) (Created page with '{{Raspberry Pi Fedora Remix}} There are two init scripts for the Raspberry Pi used in the Raspberry Pi Fedora Remix 14: == raspberrypi-firstboot == This is a simple shell s…') |
|||
(3 intermediate revisions by one other user not shown) | |||
Line 1: | Line 1: | ||
+ | {{Admon/obsolete}} | ||
{{Raspberry Pi Fedora Remix}} | {{Raspberry Pi Fedora Remix}} | ||
There are two init scripts for the Raspberry Pi used in the [[Raspberry Pi Fedora Remix 14]]: | There are two init scripts for the Raspberry Pi used in the [[Raspberry Pi Fedora Remix 14]]: | ||
Line 20: | Line 21: | ||
Note: It is strongly recommended that you change the root password, create a normal user account for everyday use, and disable remote root logins. | Note: It is strongly recommended that you change the root password, create a normal user account for everyday use, and disable remote root logins. | ||
− | This script will be replaced in later releases with [[:fedora:FirstBoot|FirstBoot]] modules. | + | This script will be replaced in later releases with [[:fedora:FirstBoot|FirstBoot]] modules; these modules are necessary because the Raspberry Pi software is not installed by an interactive Anaconda session, so some of the customization choices that would be made at installation time on other platforms need to be made at first boot instead. |
== raspberrypi-resize == | == raspberrypi-resize == | ||
Line 27: | Line 28: | ||
This script runs only if: | This script runs only if: | ||
− | + | * the file <code>/.autoresize</code> is present | |
− | This script will be replaced in later releases with a systemd | + | Short images are used in order to: |
+ | * reduce download times | ||
+ | * avoid writing "empty" data to the SD card | ||
+ | * accommodate a wide range of SD card sizes | ||
+ | |||
+ | This script will be replaced in later releases with a systemd unit file plus a shell script. |
Latest revision as of 18:24, 23 January 2014
There are two init scripts for the Raspberry Pi used in the Raspberry Pi Fedora Remix 14:
raspberrypi-firstboot
This is a simple shell script that prompts to set four pieces of information:
- the root password
- a user account
- the system timezone
- text mode or graphical operation (runlevel 3 or 5)
The script runs only if:
- the file
/etc/reconfigSys
exists, and - some input devices (mouse or keyboard) are detected (there are devices in
/dev/input
)
If the Raspberry Pi is booted headless (no input devices), the system will configure the ethernet interface via IPv4 dhcp, and the system may be accessed via ssh. The default login information is:
- User ID: root
- Password: fedoraarm
Note: It is strongly recommended that you change the root password, create a normal user account for everyday use, and disable remote root logins.
This script will be replaced in later releases with FirstBoot modules; these modules are necessary because the Raspberry Pi software is not installed by an interactive Anaconda session, so some of the customization choices that would be made at installation time on other platforms need to be made at first boot instead.
raspberrypi-resize
The Raspberry Pi Fedora Remix is distributed as a short image -- that is, an image that is shorter than a 2GB SD card. On first boot, this script will attempt to resize the second (last) partition on the SD card to completely fill the card.
This script runs only if:
- the file
/.autoresize
is present
Short images are used in order to:
- reduce download times
- avoid writing "empty" data to the SD card
- accommodate a wide range of SD card sizes
This script will be replaced in later releases with a systemd unit file plus a shell script.