debian.rst
author Oleksandr Gavenko <gavenkoa@gmail.com>
Tue, 24 Apr 2012 11:44:07 +0300
changeset 1251 afd95ccfcbe9
parent 1124 020a9bc396a0
child 1286 21e761949f80
permissions -rw-r--r--
Fix misspelling.

.. -*- coding: utf-8; -*-

=========
 Debian.
=========
.. contents::

Installing Debian.
==================

 * Download Debian iso CD/DVD image no. 1.
 * Burn it to CD/DVD.
 * Boot from this media.
 * Follow instructions.

Configuring new system.
=======================

Installing additional packages.
-------------------------------

They need to install drivers, browsing file system, editing file etc:

 * menu
 * emacs
 * mc
 * sudo
 * gcc
 * make
 * linux-headers
 * xserver
 * xterm
 * fvwm

Become sudouser.
----------------
::

  $ su
  ...
  $ emacs /etc/sudoers
  ...
  $ grep -v "^#" /etc/sudoers
  Defaults  env_reset

  root      ALL=(ALL) ALL
  user      ALL=(ALL) ALL
  $ ^D

List existed partitions.
------------------------
::

  $ sudo /sbin/sfdisk -l
  ...

Mount additional partitions.
----------------------------

Partition mounting by hands::

  $ sudo mkdir /mnt/wininst
  $ sudo mount -t ntfs -o ro /dev/sdb2 /mnt/wininst

Automatic partition mounting::

  $ sudo addgroup win
  $ sudo addgroup user win
  $ sudo emacs /etc/fstab
  ...
  $ cat /etc/fstab
  # /etc/fstab: static file system information.
  # <file system> <mount point>   <type>  <options>       <dump>  <pass>
  /dev/sdc1       /               ext3    defaults,errors=remount-ro 0       1
  /dev/hda        /media/cdrom0   udf,iso9660 user,noauto     0       0
  /dev/sdb1       /mnt/winsys     ntfs    ro,nls=utf8,gid=win,dmask=222,fmask=337  0       0
  /dev/sdb2       /mnt/wininst    ntfs    ro,nls=utf8,gid=win,dmask=222,fmask=337  0       0
  # /dev/sdb3     /mnt/winbin       ntfs-3g rw,utf8,force,gid=win,dmask=002,fmask=113 0    0
  /dev/sdb3       /mnt/winbin     ntfs    rw,utf8,nls=utf8,gid=win,umask=000       0       0
  /dev/sdc2       /mnt/fat        vfat    rw,utf8,gid=win,dmask=222,fmask=337      0       0
  /dev/sda5       /mnt/music      ntfs    ro,nls=utf8,gid=win,dmask=222,fmask=337  0       0
  /dev/sdd1       /mnt/usb        vfat    rw,shortname=winnt,utf8,quiet,gid=win,dmask=002,fmask=111  0  0

Installing and configuring documentation.
=========================================

Documentation packages end with ``-doc`` suffix.

To browse all docs in HTML form install::

  $ sudo apt-get install dhelp info2www man2html swish++