debian.rst
author Oleksandr Gavenko <gavenkoa@gmail.com>
Sat, 02 Jun 2012 12:01:17 +0300
changeset 1286 21e761949f80
parent 1251 afd95ccfcbe9
child 1287 1006031d4f57
permissions -rw-r--r--
Uninstalling unused packages.

.. -*- 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

Uninstalling unused packages.
=============================
::

  $ sudo apt-get install deborphan
  $ deborphan
  ...
  $ sudo apt-get purge `deborphan`

Also you can use console GUI wrapper around above command::

  $ orphaner

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++