Startup scripts

Contents

This part covers the steps involved in getting a Linux system booted, and the various customisations possible.

Booting

init boot (old style)

upstart boot

This is the replacement method used by Ubuntu upto 14.04 http://upstart.ubuntu.com/)

Systemd

This is the method now used by Fedora 15+ (see http://fedoraproject.org/wiki/Systemd) and future versions of Debian and Ubuntu

Boot layers

Linux initialisation: setting the hostname

Service intialisation: Network file systems

User startup scripts

/etc/profile

~/.bash_profile

/etc/bash.bashrc

~/.bashrc

Examples

Changing runlevel

Conclusion

Booting up a Linux system requires starting hardware and software to manage this hardware. Logging in a user requires setting various parameters both from system files and from user overrides. Fedora, Debian and other systems accomplish the same results but have minor variations in how they do it.