author | Oleksandr Gavenko <gavenkoa@gmail.com> |
Mon, 19 Oct 2015 17:04:52 +0300 | |
changeset 1769 | cadd23f8127f |
parent 1362 | e37c86581fab |
child 1905 | fba288d59662 |
permissions | -rw-r--r-- |
1122
3f5ef267ee85
Convert to RST syntax.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
899
diff
changeset
|
1 |
.. -*- coding: utf-8; -*- |
1334
9bf0d5a1f0cf
Include common header with quick links.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1290
diff
changeset
|
2 |
.. include:: HEADER.rst |
0 | 3 |
|
1122
3f5ef267ee85
Convert to RST syntax.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
899
diff
changeset
|
4 |
========= |
3f5ef267ee85
Convert to RST syntax.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
899
diff
changeset
|
5 |
Debian. |
3f5ef267ee85
Convert to RST syntax.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
899
diff
changeset
|
6 |
========= |
1124 | 7 |
.. contents:: |
1122
3f5ef267ee85
Convert to RST syntax.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
899
diff
changeset
|
8 |
|
3f5ef267ee85
Convert to RST syntax.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
899
diff
changeset
|
9 |
Installing Debian. |
3f5ef267ee85
Convert to RST syntax.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
899
diff
changeset
|
10 |
================== |
0 | 11 |
|
12 |
* Download Debian iso CD/DVD image no. 1. |
|
13 |
* Burn it to CD/DVD. |
|
14 |
* Boot from this media. |
|
15 |
* Follow instructions. |
|
16 |
||
1286
21e761949f80
Uninstalling unused packages.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1251
diff
changeset
|
17 |
Uninstalling unused packages. |
21e761949f80
Uninstalling unused packages.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1251
diff
changeset
|
18 |
============================= |
21e761949f80
Uninstalling unused packages.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1251
diff
changeset
|
19 |
:: |
21e761949f80
Uninstalling unused packages.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1251
diff
changeset
|
20 |
|
21e761949f80
Uninstalling unused packages.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1251
diff
changeset
|
21 |
$ sudo apt-get install deborphan |
21e761949f80
Uninstalling unused packages.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1251
diff
changeset
|
22 |
$ deborphan |
21e761949f80
Uninstalling unused packages.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1251
diff
changeset
|
23 |
... |
21e761949f80
Uninstalling unused packages.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1251
diff
changeset
|
24 |
$ sudo apt-get purge `deborphan` |
21e761949f80
Uninstalling unused packages.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1251
diff
changeset
|
25 |
|
21e761949f80
Uninstalling unused packages.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1251
diff
changeset
|
26 |
Also you can use console GUI wrapper around above command:: |
21e761949f80
Uninstalling unused packages.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1251
diff
changeset
|
27 |
|
1287 | 28 |
$ sudo orphaner |
1286
21e761949f80
Uninstalling unused packages.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1251
diff
changeset
|
29 |
|
1290
59855e9ef4c2
About 'cruft' utils.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1288
diff
changeset
|
30 |
Another tools is cruft (check for cruft in your system):: |
59855e9ef4c2
About 'cruft' utils.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1288
diff
changeset
|
31 |
|
59855e9ef4c2
About 'cruft' utils.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1288
diff
changeset
|
32 |
$ sudo apt-get install cruft |
59855e9ef4c2
About 'cruft' utils.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1288
diff
changeset
|
33 |
$ cruft |
59855e9ef4c2
About 'cruft' utils.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1288
diff
changeset
|
34 |
|
1122
3f5ef267ee85
Convert to RST syntax.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
899
diff
changeset
|
35 |
Become sudouser. |
3f5ef267ee85
Convert to RST syntax.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
899
diff
changeset
|
36 |
---------------- |
3f5ef267ee85
Convert to RST syntax.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
899
diff
changeset
|
37 |
:: |
0 | 38 |
|
39 |
$ su |
|
40 |
... |
|
41 |
$ emacs /etc/sudoers |
|
42 |
... |
|
43 |
$ grep -v "^#" /etc/sudoers |
|
44 |
Defaults env_reset |
|
45 |
||
46 |
root ALL=(ALL) ALL |
|
224 | 47 |
user ALL=(ALL) ALL |
0 | 48 |
$ ^D |
49 |
||
1122
3f5ef267ee85
Convert to RST syntax.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
899
diff
changeset
|
50 |
List existed partitions. |
3f5ef267ee85
Convert to RST syntax.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
899
diff
changeset
|
51 |
------------------------ |
3f5ef267ee85
Convert to RST syntax.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
899
diff
changeset
|
52 |
:: |
0 | 53 |
|
54 |
$ sudo /sbin/sfdisk -l |
|
55 |
... |
|
56 |
||
1122
3f5ef267ee85
Convert to RST syntax.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
899
diff
changeset
|
57 |
Mount additional partitions. |
3f5ef267ee85
Convert to RST syntax.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
899
diff
changeset
|
58 |
---------------------------- |
3f5ef267ee85
Convert to RST syntax.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
899
diff
changeset
|
59 |
|
3f5ef267ee85
Convert to RST syntax.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
899
diff
changeset
|
60 |
Partition mounting by hands:: |
0 | 61 |
|
62 |
$ sudo mkdir /mnt/wininst |
|
63 |
$ sudo mount -t ntfs -o ro /dev/sdb2 /mnt/wininst |
|
64 |
||
1122
3f5ef267ee85
Convert to RST syntax.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
899
diff
changeset
|
65 |
Automatic partition mounting:: |
0 | 66 |
|
67 |
$ sudo addgroup win |
|
68 |
$ sudo addgroup user win |
|
69 |
$ sudo emacs /etc/fstab |
|
70 |
... |
|
71 |
$ cat /etc/fstab |
|
72 |
# /etc/fstab: static file system information. |
|
73 |
# <file system> <mount point> <type> <options> <dump> <pass> |
|
74 |
/dev/sdc1 / ext3 defaults,errors=remount-ro 0 1 |
|
75 |
/dev/hda /media/cdrom0 udf,iso9660 user,noauto 0 0 |
|
76 |
/dev/sdb1 /mnt/winsys ntfs ro,nls=utf8,gid=win,dmask=222,fmask=337 0 0 |
|
77 |
/dev/sdb2 /mnt/wininst ntfs ro,nls=utf8,gid=win,dmask=222,fmask=337 0 0 |
|
1122
3f5ef267ee85
Convert to RST syntax.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
899
diff
changeset
|
78 |
# /dev/sdb3 /mnt/winbin ntfs-3g rw,utf8,force,gid=win,dmask=002,fmask=113 0 0 |
3f5ef267ee85
Convert to RST syntax.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
899
diff
changeset
|
79 |
/dev/sdb3 /mnt/winbin ntfs rw,utf8,nls=utf8,gid=win,umask=000 0 0 |
0 | 80 |
/dev/sdc2 /mnt/fat vfat rw,utf8,gid=win,dmask=222,fmask=337 0 0 |
81 |
/dev/sda5 /mnt/music ntfs ro,nls=utf8,gid=win,dmask=222,fmask=337 0 0 |
|
1122
3f5ef267ee85
Convert to RST syntax.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
899
diff
changeset
|
82 |
/dev/sdd1 /mnt/usb vfat rw,shortname=winnt,utf8,quiet,gid=win,dmask=002,fmask=111 0 0 |
1123
ea73f55d679d
Installing and configuting documentation.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1122
diff
changeset
|
83 |
|
1251 | 84 |
Installing and configuring documentation. |
1124 | 85 |
========================================= |
1123
ea73f55d679d
Installing and configuting documentation.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1122
diff
changeset
|
86 |
|
ea73f55d679d
Installing and configuting documentation.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1122
diff
changeset
|
87 |
Documentation packages end with ``-doc`` suffix. |
ea73f55d679d
Installing and configuting documentation.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1122
diff
changeset
|
88 |
|
ea73f55d679d
Installing and configuting documentation.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1122
diff
changeset
|
89 |
To browse all docs in HTML form install:: |
ea73f55d679d
Installing and configuting documentation.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1122
diff
changeset
|
90 |
|
ea73f55d679d
Installing and configuting documentation.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1122
diff
changeset
|
91 |
$ sudo apt-get install dhelp info2www man2html swish++ |
ea73f55d679d
Installing and configuting documentation.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1122
diff
changeset
|
92 |
|
1362
e37c86581fab
Debian runlevels. Show curent runlevel. Switching runlevels.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1334
diff
changeset
|
93 |
Debian runlevels. |
e37c86581fab
Debian runlevels. Show curent runlevel. Switching runlevels.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1334
diff
changeset
|
94 |
================= |
e37c86581fab
Debian runlevels. Show curent runlevel. Switching runlevels.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1334
diff
changeset
|
95 |
|
e37c86581fab
Debian runlevels. Show curent runlevel. Switching runlevels.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1334
diff
changeset
|
96 |
* 0 System Halt |
e37c86581fab
Debian runlevels. Show curent runlevel. Switching runlevels.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1334
diff
changeset
|
97 |
* 1 Single user |
e37c86581fab
Debian runlevels. Show curent runlevel. Switching runlevels.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1334
diff
changeset
|
98 |
* 2 Full multi-user mode (Default) |
e37c86581fab
Debian runlevels. Show curent runlevel. Switching runlevels.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1334
diff
changeset
|
99 |
* 3-5 Same as 2 |
e37c86581fab
Debian runlevels. Show curent runlevel. Switching runlevels.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1334
diff
changeset
|
100 |
* 6 System Reboot |
e37c86581fab
Debian runlevels. Show curent runlevel. Switching runlevels.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1334
diff
changeset
|
101 |
|
e37c86581fab
Debian runlevels. Show curent runlevel. Switching runlevels.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1334
diff
changeset
|
102 |
Show curent runlevel. |
e37c86581fab
Debian runlevels. Show curent runlevel. Switching runlevels.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1334
diff
changeset
|
103 |
===================== |
e37c86581fab
Debian runlevels. Show curent runlevel. Switching runlevels.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1334
diff
changeset
|
104 |
:: |
e37c86581fab
Debian runlevels. Show curent runlevel. Switching runlevels.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1334
diff
changeset
|
105 |
|
e37c86581fab
Debian runlevels. Show curent runlevel. Switching runlevels.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1334
diff
changeset
|
106 |
$ /sbin/runlevel |
e37c86581fab
Debian runlevels. Show curent runlevel. Switching runlevels.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1334
diff
changeset
|
107 |
|
e37c86581fab
Debian runlevels. Show curent runlevel. Switching runlevels.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1334
diff
changeset
|
108 |
Switching runlevels. |
e37c86581fab
Debian runlevels. Show curent runlevel. Switching runlevels.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1334
diff
changeset
|
109 |
==================== |
e37c86581fab
Debian runlevels. Show curent runlevel. Switching runlevels.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1334
diff
changeset
|
110 |
:: |
e37c86581fab
Debian runlevels. Show curent runlevel. Switching runlevels.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1334
diff
changeset
|
111 |
|
e37c86581fab
Debian runlevels. Show curent runlevel. Switching runlevels.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1334
diff
changeset
|
112 |
$ sudo telinit 2 |
e37c86581fab
Debian runlevels. Show curent runlevel. Switching runlevels.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1334
diff
changeset
|
113 |