07.06.2014 Views

2 - Raspberry PI Community Projects

2 - Raspberry PI Community Projects

2 - Raspberry PI Community Projects

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

which are stored in /etc/init.d/. The administrator can fine tune the services available in<br />

each runlevel by re-running update-rc.d with adjusted parameters. The update-rc.d(1) manual<br />

page describes the syntax in detail. Please note that removing all symbolic links (with the<br />

remove parameter) is not a good method to disable a service. Instead you should simply configure<br />

it to not start in the desired runlevel (while preserving the corresponding calls to stop it in<br />

the event that the service runs in the previous runlevel). Since update-rc.d has a somewhat<br />

convoluted interface, you may prefer using rcconf (from the rcconf package) which provides a<br />

more user-friendly interface.<br />

DEBIAN POLICY<br />

Restarting services<br />

The maintainer scripts for Debian packages will sometimes restart certain<br />

services to ensure their availability or get them to take certain options into<br />

account. The command that controls a service — /etc/init.d/service<br />

operation — doesn't take runlevel into consideration, assumes (wrongly) that<br />

the service is currently being used, and may thus initiate incorrect operations<br />

(starting a service that was deliberately stopped, or stopping a service that is<br />

already stopped, etc.). Debian therefore introduced the invoke-rc.d program:<br />

this program must be used by maintainer scripts to run services initialization<br />

scripts and it will only execute the necessary commands. Note that, contrary<br />

to common usage, the .d suffix is used here in a program name, and not in a<br />

directory.<br />

Finally, init starts control programs for various virtual consoles (getty). It displays a prompt,<br />

waiting for a username, then executes login user to initiate a session.<br />

VOCABULARY<br />

Console and terminal<br />

The first computers were usually separated into several, very large parts: the<br />

storage enclosure and the central processing unit were separate from the peripheral<br />

devices used by the operators to control them. These were part of<br />

a separate furniture, the “console”. This term was retained, but its meaning<br />

has changed. It has become more or less synonymous with “terminal”, being<br />

a keyboard and a screen.<br />

With the development of computers, operating systems have offered several<br />

virtual consoles to allow for several independent sessions at the same time,<br />

even if there is only one keyboard and screen. Most GNU/Linux systems offer<br />

six virtual consoles (in text mode), accessible by typing the key combinations<br />

Control+Alt+F1 through Control+Alt+F6.<br />

By extension, the terms “console” and “terminal” can also refer to a terminal<br />

emulator in a graphical X11 session (such as xterm, gnome-terminal or kons<br />

ole).<br />

9.2. Remote Login<br />

It is essential for an administrator to be able to connect to a computer remotely. Servers, confined<br />

in their own room, are rarely equipped with permanent keyboards and monitors — but<br />

they are connected to the network.<br />

188 The Debian Administrator's Handbook

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!