Linux Devices
In Linux various special files can be found under the directory
/dev. These files are called device files and
behave unlike ordinary files. The most common types of device files
are for block devices and character devices. These files are an
interface to the actual driver (part of the Linux kernel) which in
turn accesses the hardware. Another, less common, type of device file
is the named pipe.
The most important device files are listed in the tables below.
fd0
First Floppy Drive
fd1
Second Floppy Drive
hda
IDE Hard disk / CD-ROM on the first IDE port (Master)
hdb
IDE Hard disk / CD-ROM on the first IDE port (Slave)
hdc
IDE Hard disk / CD-ROM on the second IDE port (Master)
hdd
IDE Hard disk / CD-ROM on the second IDE port (Slave)
hda1
First partition of the first IDE hard disk
hdd15
Fifteenth partition of the fourth IDE hard disk
sda
SCSI Hard disk with lowest SCSI ID (e.g. 0)
sdb
SCSI Hard disk with next higher SCSI ID (e.g. 1)
sdc
SCSI Hard disk with next higher SCSI ID (e.g. 2)
sda1
First partition of the first SCSI hard disk
sdd10
Tenth partition of the fourth SCSI hard disk
sr0
SCSI CD-ROM with the lowest SCSI ID
sr1
SCSI CD-ROM with the next higher SCSI ID
ttyS0
Serial port 0, COM1 under MS-DOS
ttyS1
Serial port 1, COM2 under MS-DOS
psaux
PS/2 mouse device
gpmdata
Pseudo device, repeater data from GPM (mouse) daemon
cdrom
Symbolic link to the CD-ROM drive
mouse
Symbolic link to the mouse device file
null
Anything written to this device will disappear
zero
One can endlessly read zeros out of this device
Setting Up Your Mouse
The mouse can be used in both the Linux console (with gpm) and the X
window environment. Normally, this is a simple matter of installing
gpm and the X server itself. Both should be
configured to use /dev/input/mice as the mouse
device. The correct mouse protocol is named exps2
in gpm, and ExplorerPS/2 in X. The respective
configuration files are /etc/gpm.conf and
/etc/X11/xorg.conf.
Certain kernel modules must be loaded in order for your mouse to work.
In most cases the correct modules are autodetected, but not always for
old-style serial and bus mice
Serial mice usually have a 9-hole D-shaped connector; bus mice have an
8-pin round connector, not to be confused with the 6-pin round connector
of a PS/2 mouse or the 4-pin round connector of an ADB mouse.
, which are quite rare except on very old computers. Summary
of Linux kernel modules needed for different mouse types:
Module
Description
psmouse
PS/2 mice (should be autodetected)
usbhid
USB mice (should be autodetected)
sermouse
Most serial mice
logibm
Bus mouse connected to Logitech adapter card
inport
Bus mouse connected to ATI or Microsoft InPort card
To load a mouse driver module, you can use the modconf
command (from the package with the same name) and look in the category
kernel/drivers/input/mouse.
Modern kernels give you the capability to emulate a three-button mouse
when your mouse only has one button. Just add the following lines to
/etc/sysctl.conf file.
# 3-button mouse emulation
# turn on emulation
/dev/mac_hid/mouse_button_emulation = 1
# Send middle mouse button signal with the F11 key
/dev/mac_hid/mouse_button2_keycode = 87
# Send right mouse button signal with the F12 key
/dev/mac_hid/mouse_button3_keycode = 88
# For different keys, use showkey to tell you what the code is.
Disk Space Needed for Tasks
A standard installation for the amd64 architecture, including all standard
packages and using the default 2.6 kernel, takes up &std-system-size;MB of disk space.
A minimal base installation, without the Standard system
task selected, will take &base-system-size;MB.
In both cases this is the actual disk space used after
the installation is finished and any temporary files deleted. It also does
not take into account overhead used by the file system, for example for
journal files. This means that significantly more disk space is needed both
during the installation and for normal system use.
The following table lists sizes reported by aptitude for the tasks listed
in tasksel. Note that some tasks have overlapping constituents, so the
total installed size for two tasks together may be less than the total
obtained by adding up the numbers.
By default the installer will install the GNOME desktop environment, but
alternative desktop environments can be selected either by using one
of the special CD images, or by specifying the desired desktop environment
when the installer is booted (see ).
Note that you will need to add the sizes listed in the table to the size
of the standard installation when determining the size of partitions.
Most of the size listed as Installed size
will end up in
/usr and in /lib;
the size listed as Download size
is (temporarily) required in /var.
Task
Installed size (MB)
Download size (MB)
Space needed to install (MB)
Desktop environment
• GNOME (default)
&task-desktop-gnome-inst;
&task-desktop-gnome-dl;
&task-desktop-gnome-tot;
• KDE
&task-desktop-kde-inst;
&task-desktop-kde-dl;
&task-desktop-kde-tot;
• Xfce
&task-desktop-xfce-inst;
&task-desktop-xfce-dl;
&task-desktop-xfce-tot;
• LXDE
&task-desktop-lxde-inst;
&task-desktop-lxde-dl;
&task-desktop-lxde-tot;
Laptop
There is some overlap of the Laptop task with the Desktop environment task.
If you install both, the Laptop task will only require a few MB additional
disk space.
&task-laptop-inst;
&task-laptop-dl;
&task-laptop-tot;
Web server
&task-web-inst;
&task-web-dl;
&task-web-tot;
Print server
&task-print-inst;
&task-print-dl;
&task-print-tot;
DNS server
&task-dns-inst;
&task-dns-dl;
&task-dns-tot;
File server
&task-file-inst;
&task-file-dl;
&task-file-tot;
Mail server
&task-mail-inst;
&task-mail-dl;
&task-mail-tot;
SQL database
&task-sql-inst;
&task-sql-dl;
&task-sql-tot;
If you install in a language other than English, tasksel
may automatically install a localization task, if one
is available for your language. Space requirements differ per language;
you should allow up to 350MB in total for download and installation.